Skip to content

Commit 3c80a66

Browse files
feat: ship only essential in published pkg (#24)
1 parent 953f883 commit 3c80a66

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

package.json

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"description": "ResilientLLM is a resilient, unified LLM interface with in-built circuit breaker, token bucket rate limiting, caching, and adaptive retry with dynamic backoff support.",
55
"main": "index.js",
66
"type": "module",
7+
"files": [
8+
"index.js",
9+
"lib/**/*.js"
10+
],
711
"engines": {
812
"node": ">=20.0.0"
913
},
@@ -12,23 +16,9 @@
1216
"test:watch": "mocha --watch 'test/**/*.test.js'",
1317
"test:coverage": "nyc mocha 'test/**/*.test.js'",
1418
"test:e2e": "mocha 'test/**/*.e2e.test.js' --timeout 60000",
15-
"example:chat": "rm -rf resilient-llm-*.tgz && npm pack --pack-destination . && mv resilient-llm-*.tgz resilient-llm-local.tgz && cd examples/chat-basic && rm -rf node_modules/resilient-llm && npm install ../../resilient-llm-local.tgz && RESILIENT_LLM_SOURCE=local npm run dev",
16-
"example:chat:npm": "cd examples/chat-basic && npm install resilient-llm@latest && npm run dev"
19+
"example:chat": "npm link && cd examples/chat-basic && npm link resilient-llm && RESILIENT_LLM_SOURCE=local npm run dev",
20+
"example:chat:npm": "cd examples/chat-basic && npm install && npm run dev"
1721
},
18-
"keywords": [
19-
"llm",
20-
"ai",
21-
"rate-limit",
22-
"fail-safe",
23-
"fault-tolerant",
24-
"failover",
25-
"retry",
26-
"throttle",
27-
"circuit-breaker",
28-
"backoff"
29-
],
30-
"author": "",
31-
"license": "MIT",
3222
"dependencies": {
3323
"js-tiktoken": "^1.0.21"
3424
},
@@ -42,5 +32,23 @@
4232
"repository": {
4333
"type": "git",
4434
"url": "https://github.com/gitcommitshow/resilient-llm"
45-
}
35+
},
36+
"keywords": [
37+
"llm",
38+
"ai",
39+
"rate-limit",
40+
"fail-safe",
41+
"fault-tolerant",
42+
"failover",
43+
"retry",
44+
"throttle",
45+
"circuit-breaker",
46+
"backoff",
47+
"resilient",
48+
"resilient-llm",
49+
"resilient-llm-js",
50+
"resilient-llm-node"
51+
],
52+
"author": "",
53+
"license": "MIT"
4654
}

0 commit comments

Comments
 (0)