Skip to content

Commit 7898ead

Browse files
committed
build: remove postinstall script from the published package
This is as per Husky v5 documentation instructions: https://typicode.github.io/husky/#/?id=install. Closes #142.
1 parent f9baaa7 commit 7898ead

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

package-lock.json

+61
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
@@ -9,6 +9,8 @@
99
],
1010
"scripts": {
1111
"postinstall": "husky install .github/husky",
12+
"prepublishOnly": "pinst --disable",
13+
"postpublish": "pinst --enable",
1214
"lint": "run-p format:check lint-es",
1315
"lint:fix": "run-s format lint-es:fix",
1416
"lint-es": "eslint --ext .ts,.tsx,.js,.jsx,.json .",
@@ -76,6 +78,7 @@
7678
"jest": "26.6.3",
7779
"lint-staged": "10.5.4",
7880
"npm-run-all": "4.1.5",
81+
"pinst": "2.1.4",
7982
"prettier": "2.2.1",
8083
"semantic-release": "17.3.9",
8184
"ts-jest": "26.5.1",

0 commit comments

Comments
 (0)