mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 22:37:29 +00:00
chore(agentswarm): make package publishable to npm
Add files/publishConfig(public)/repository/keywords + prepublishOnly build; exclude *.test.ts from the tsc build so dist (and the published tarball) ships only library code. Package size 17 kB, 38/38 tests still green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
0e5a13f5fb
commit
6e7f44612a
2 changed files with 14 additions and 2 deletions
|
|
@ -6,10 +6,21 @@
|
|||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"license": "MIT",
|
||||
"files": ["dist", "README.md"],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/profullstack/logicsrc.git",
|
||||
"directory": "packages/agentswarm"
|
||||
},
|
||||
"keywords": ["agents", "deepagents", "swarm", "llm", "x402", "logicsrc"],
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"test": "vitest run src --passWithNoTests",
|
||||
"demo": "node examples/server.mjs"
|
||||
"demo": "node examples/server.mjs",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@langchain/langgraph": "*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue