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:
Anthony Ettinger 2026-06-25 17:57:32 +00:00
parent 0e5a13f5fb
commit 6e7f44612a
2 changed files with 14 additions and 2 deletions

View file

@ -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": "*",

View file

@ -4,5 +4,6 @@
"rootDir": "src", "rootDir": "src",
"outDir": "dist" "outDir": "dist"
}, },
"include": ["src/**/*.ts"] "include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"]
} }