diff --git a/packages/sdk/ai/examples/bedrock/package.json b/packages/sdk/ai/examples/bedrock/package.json index ff371e5e1..69d24cb8a 100644 --- a/packages/sdk/ai/examples/bedrock/package.json +++ b/packages/sdk/ai/examples/bedrock/package.json @@ -7,7 +7,10 @@ "type": "commonjs", "scripts": { "build": "tsc", - "lint": "eslint . --ext .ts" + "lint": "npx eslint . --ext .ts", + "prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore", + "lint:fix": "yarn run lint --fix", + "check": "yarn prettier && yarn lint && yarn build && yarn test" }, "keywords": [ "launchdarkly", diff --git a/packages/sdk/ai/examples/bedrock/src/index.ts b/packages/sdk/ai/examples/bedrock/src/index.ts index 011a9f645..fd14dea5c 100644 --- a/packages/sdk/ai/examples/bedrock/src/index.ts +++ b/packages/sdk/ai/examples/bedrock/src/index.ts @@ -1,8 +1,8 @@ /* eslint-disable no-console */ import { BedrockRuntimeClient, ConverseCommand, Message } from '@aws-sdk/client-bedrock-runtime'; -import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai'; import { init } from '@launchdarkly/node-server-sdk'; +import { initAi, LDAIConfig } from '@launchdarkly/node-server-sdk-ai'; const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY; const aiConfigKey = process.env.LAUNCHDARKLY_AI_CONFIG_KEY; diff --git a/packages/sdk/ai/examples/openai/package.json b/packages/sdk/ai/examples/openai/package.json index f9d116ab9..b0090a434 100644 --- a/packages/sdk/ai/examples/openai/package.json +++ b/packages/sdk/ai/examples/openai/package.json @@ -6,7 +6,10 @@ "types": "dist/index.d.ts", "scripts": { "build": "tsc", - "lint": "eslint . --ext .ts" + "lint": "npx eslint . --ext .ts", + "prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore", + "lint:fix": "yarn run lint --fix", + "check": "yarn prettier && yarn lint && yarn build && yarn test" }, "keywords": [ "launchdarkly", diff --git a/packages/sdk/ai/examples/openai/src/index.ts b/packages/sdk/ai/examples/openai/src/index.ts index 1441bf3b1..eb4b3bc33 100644 --- a/packages/sdk/ai/examples/openai/src/index.ts +++ b/packages/sdk/ai/examples/openai/src/index.ts @@ -1,8 +1,8 @@ /* eslint-disable no-console */ import { OpenAI } from 'openai'; -import { initAi } from '@launchdarkly/node-server-sdk-ai'; import { init, LDContext } from '@launchdarkly/node-server-sdk'; +import { initAi } from '@launchdarkly/node-server-sdk-ai'; // Environment variables const sdkKey = process.env.LAUNCHDARKLY_SDK_KEY;