Skip to content

Commit 8887dc8

Browse files
committed
fix: use pinst for husky problem (#1)
1 parent d97c239 commit 8887dc8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

package-lock.json

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"types": "dist/types/index.d.js",
99
"scripts": {
1010
"postinstall": "husky install",
11+
"prepublishOnly": "pinst --disable",
12+
"postpublish": "pinst --enable",
1113
"build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types",
1214
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json",
1315
"build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json",
@@ -60,6 +62,7 @@
6062
"eslint-plugin-prettier": "^4.0.0",
6163
"husky": "^7.0.2",
6264
"jest": "^27.2.0",
65+
"pinst": "^2.1.6",
6366
"prettier": "^2.4.0",
6467
"ts-jest": "^27.0.5",
6568
"ts-loader": "^9.2.5",

0 commit comments

Comments
 (0)