Skip to content

Commit 459a66c

Browse files
committed
Update package.json
1 parent 70843ad commit 459a66c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"mcp"
2020
],
2121
"bin": {
22-
"backfill-sampling": "./dist/esm/examples/backfill/backfillSampling.js",
23-
"example-tool-loop": "./dist/esm/bin/examples-tool-loop.js"
22+
"backfill-sampling": "./dist/backfillSampling.js",
23+
"example-tool-loop": "./dist/toolLoopSampling.js"
2424
},
2525
"exports": {
2626
".": {
@@ -53,13 +53,15 @@
5353
"scripts": {
5454
"prepare": "npm run build",
5555
"fetch:spec-types": "curl -o spec.types.ts https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/refs/heads/main/schema/draft/schema.ts",
56-
"build": "npm run build:esm && npm run build:cjs",
56+
"build": "npm run build:esm && npm run build:cjs && npm run build:backfill-sampling && npm run build:example-tool-loop",
5757
"build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json",
5858
"build:esm:w": "npm run build:esm -- -w",
5959
"build:cjs": "mkdir -p dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && tsc -p tsconfig.cjs.json",
6060
"build:cjs:w": "npm run build:cjs -- -w",
6161
"examples:simple-server:w": "tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth",
6262
"examples:tool-loop": "tsx examples/backfill/backfillSampling.ts tsx examples/server/toolLoopSampling.ts",
63+
"build:backfill-sampling": "bun build examples/backfill/backfillSampling.ts --outdir=dist --banner '#!/usr/bin/env node' --target=node --minify && shx chmod +x dist/backfillSampling.js",
64+
"build:example-tool-loop": "bun build examples/server/toolLoopSampling.ts --outdir=dist --banner '#!/usr/bin/env node' --target=node --minify && shx chmod +x dist/toolLoopSampling.js",
6365
"prepack": "npm run build:esm && npm run build:cjs",
6466
"lint": "eslint src/",
6567
"test": "npm run fetch:spec-types && jest",
@@ -98,6 +100,7 @@
98100
"eslint": "^9.8.0",
99101
"jest": "^29.7.0",
100102
"json-schema-to-zod": "^2.6.1",
103+
"shx": "^0.4.0",
101104
"supertest": "^7.0.0",
102105
"ts-jest": "^29.2.4",
103106
"tsx": "^4.16.5",

0 commit comments

Comments
 (0)