Skip to content

Commit 24662c8

Browse files
committed
fix: add prepare script for GitHub installations
Enables automatic building when installing from GitHub, ensuring dist directory with TypeScript declarations is generated
1 parent eb95200 commit 24662c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"build:cjs": "mkdir -p dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && tsc -p tsconfig.cjs.json",
4343
"build:cjs:w": "npm run build:cjs -- -w",
4444
"examples:simple-server:w": "tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth",
45+
"prepare": "npm run build",
4546
"prepack": "npm run build:esm && npm run build:cjs",
4647
"lint": "eslint src/",
4748
"test": "npm run fetch:spec-types && jest",

0 commit comments

Comments
 (0)