Skip to content

Commit 4d384fa

Browse files
Add a prepare script so git dependencies get a build
Installing capnweb directly from git (e.g. "capnweb": "github:...") otherwise produces a package without dist/, since only prepublishOnly triggers the build and package managers don't run it for git deps. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ff1e7a1 commit 4d384fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"test:ci": "vitest run && bun test __tests__/bun.test.ts",
3939
"test:watch": "vitest",
4040
"test:types": "tsc -p __type-tests__/tsconfig.json --noEmit",
41-
"prepublishOnly": "npm run build"
41+
"prepublishOnly": "npm run build",
42+
"prepare": "npm run build"
4243
},
4344
"devDependencies": {
4445
"@changesets/changelog-github": "^0.5.2",

0 commit comments

Comments
 (0)