|
19 | 19 | "mcp" |
20 | 20 | ], |
21 | 21 | "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" |
24 | 24 | }, |
25 | 25 | "exports": { |
26 | 26 | ".": { |
|
53 | 53 | "scripts": { |
54 | 54 | "prepare": "npm run build", |
55 | 55 | "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", |
57 | 57 | "build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json", |
58 | 58 | "build:esm:w": "npm run build:esm -- -w", |
59 | 59 | "build:cjs": "mkdir -p dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && tsc -p tsconfig.cjs.json", |
60 | 60 | "build:cjs:w": "npm run build:cjs -- -w", |
61 | 61 | "examples:simple-server:w": "tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth", |
62 | 62 | "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", |
63 | 65 | "prepack": "npm run build:esm && npm run build:cjs", |
64 | 66 | "lint": "eslint src/", |
65 | 67 | "test": "npm run fetch:spec-types && jest", |
|
98 | 100 | "eslint": "^9.8.0", |
99 | 101 | "jest": "^29.7.0", |
100 | 102 | "json-schema-to-zod": "^2.6.1", |
| 103 | + "shx": "^0.4.0", |
101 | 104 | "supertest": "^7.0.0", |
102 | 105 | "ts-jest": "^29.2.4", |
103 | 106 | "tsx": "^4.16.5", |
|
0 commit comments