|
7 | 7 | "type": "git", |
8 | 8 | "url": "https://github.com/launchdarkly/js-core.git" |
9 | 9 | }, |
10 | | - "main": "dist/index.js", |
11 | | - "types": "dist/index.d.ts", |
12 | | - "type": "commonjs", |
| 10 | + "main": "./dist/index.cjs", |
| 11 | + "module": "./dist/index.js", |
| 12 | + "types": "./dist/index.d.ts", |
| 13 | + "type": "module", |
| 14 | + "exports": { |
| 15 | + ".": { |
| 16 | + "require": { |
| 17 | + "types": "./dist/index.d.cts", |
| 18 | + "default": "./dist/index.cjs" |
| 19 | + }, |
| 20 | + "import": { |
| 21 | + "types": "./dist/index.d.ts", |
| 22 | + "default": "./dist/index.js" |
| 23 | + } |
| 24 | + } |
| 25 | + }, |
13 | 26 | "scripts": { |
14 | | - "build": "npx tsc", |
| 27 | + "build": "tsup-node", |
15 | 28 | "lint": "npx eslint . --ext .ts", |
16 | 29 | "prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore", |
17 | 30 | "lint:fix": "yarn run lint --fix", |
18 | 31 | "check": "yarn prettier && yarn lint && yarn build && yarn test", |
19 | 32 | "test": "jest" |
20 | 33 | }, |
| 34 | + "files": [ |
| 35 | + "dist" |
| 36 | + ], |
21 | 37 | "keywords": [ |
22 | 38 | "launchdarkly", |
23 | 39 | "ai", |
|
27 | 43 | "author": "LaunchDarkly", |
28 | 44 | "license": "Apache-2.0", |
29 | 45 | "devDependencies": { |
| 46 | + "@langchain/community": "^0.3.0", |
30 | 47 | "@langchain/core": "^0.3.0", |
31 | 48 | "@launchdarkly/server-sdk-ai": "^0.14.1", |
32 | 49 | "@trivago/prettier-plugin-sort-imports": "^4.1.1", |
|
44 | 61 | "langchain": "^0.3.0", |
45 | 62 | "prettier": "^3.0.0", |
46 | 63 | "ts-jest": "^29.1.1", |
| 64 | + "tsup": "^8.5.1", |
47 | 65 | "typescript": "5.1.6" |
48 | 66 | }, |
49 | 67 | "peerDependencies": { |
| 68 | + "@langchain/community": "^0.2.0 || ^0.3.0", |
50 | 69 | "@langchain/core": "^0.2.0 || ^0.3.0", |
51 | 70 | "@launchdarkly/server-sdk-ai": "^0.14.0", |
52 | 71 | "langchain": "^0.2.0 || ^0.3.0" |
|
0 commit comments