Skip to content

Commit bd7a4f9

Browse files
committed
fix: use prepack instead of prepublishOnly
prepack runs on both npm publish and npm pack (and when installing from git/tarball), whereas prepublishOnly only runs on npm publish. Since dist/ is gitignored, installing directly from git would produce a broken package without this change. Addresses CodeRabbit nitpick comment on PR #36
1 parent ce22030 commit bd7a4f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"check:jsdoc-coverage": "bun scripts/check-jsdoc-coverage.mjs",
7171
"lint": "bun --bun eslint .",
7272
"typecheck": "tsc --noEmit",
73-
"prepublishOnly": "bun run build"
73+
"prepack": "bun run build"
7474
},
7575
"type": "module",
7676
"version": "0.8.0"

0 commit comments

Comments
 (0)