Skip to content

Commit fb8f398

Browse files
fix: disable postinstall on user machine
1 parent 2d19a2c commit fb8f398

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

package-lock.json

+52-1
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
},
99
"scripts": {
1010
"postinstall": "husky install",
11+
"prepublishOnly": "pinst --disable",
12+
"postpublish": "pinst --enable",
1113
"clean": "rimraf ./dist",
1214
"build": "npm run clean && tsc",
1315
"lint": "prettier --check .",
@@ -40,6 +42,7 @@
4042
"fastify": "^3.13.0",
4143
"husky": "^5.1.3",
4244
"jest": "^26.6.3",
45+
"pinst": "^2.1.6",
4346
"prettier": "^2.2.1",
4447
"rimraf": "^3.0.2",
4548
"semantic-release": "^17.4.1",

0 commit comments

Comments
 (0)