mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 14:37:26 +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",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"license": "MIT",
|
"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": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json",
|
"build": "tsc -p tsconfig.json",
|
||||||
"test": "vitest run src --passWithNoTests",
|
"test": "vitest run src --passWithNoTests",
|
||||||
"demo": "node examples/server.mjs"
|
"demo": "node examples/server.mjs",
|
||||||
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@langchain/langgraph": "*",
|
"@langchain/langgraph": "*",
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "dist"
|
"outDir": "dist"
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts"]
|
"include": ["src/**/*.ts"],
|
||||||
|
"exclude": ["src/**/*.test.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue