File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 77 "type" : " commonjs" ,
88 "scripts" : {
99 "build" : " tsc" ,
10- "lint" : " eslint . --ext .ts"
10+ "lint" : " npx eslint . --ext .ts" ,
11+ "prettier" : " prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore" ,
12+ "lint:fix" : " yarn run lint --fix" ,
13+ "check" : " yarn prettier && yarn lint && yarn build && yarn test"
1114 },
1215 "keywords" : [
1316 " launchdarkly" ,
Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
22import { BedrockRuntimeClient , ConverseCommand , Message } from '@aws-sdk/client-bedrock-runtime' ;
33
4- import { initAi , LDAIConfig } from '@launchdarkly/node-server-sdk-ai' ;
54import { init } from '@launchdarkly/node-server-sdk' ;
5+ import { initAi , LDAIConfig } from '@launchdarkly/node-server-sdk-ai' ;
66
77const sdkKey = process . env . LAUNCHDARKLY_SDK_KEY ;
88const aiConfigKey = process . env . LAUNCHDARKLY_AI_CONFIG_KEY ;
Original file line number Diff line number Diff line change 66 "types" : " dist/index.d.ts" ,
77 "scripts" : {
88 "build" : " tsc" ,
9- "lint" : " eslint . --ext .ts"
9+ "lint" : " npx eslint . --ext .ts" ,
10+ "prettier" : " prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore" ,
11+ "lint:fix" : " yarn run lint --fix" ,
12+ "check" : " yarn prettier && yarn lint && yarn build && yarn test"
1013 },
1114 "keywords" : [
1215 " launchdarkly" ,
Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
22import { OpenAI } from 'openai' ;
33
4- import { initAi } from '@launchdarkly/node-server-sdk-ai' ;
54import { init , LDContext } from '@launchdarkly/node-server-sdk' ;
5+ import { initAi } from '@launchdarkly/node-server-sdk-ai' ;
66
77// Environment variables
88const sdkKey = process . env . LAUNCHDARKLY_SDK_KEY ;
You can’t perform that action at this time.
0 commit comments