Skip to content

Commit f426f89

Browse files
committed
fix(package.json): Skip prepare script if installing from tarball
Fixes #287
1 parent e14ab23 commit f426f89

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
@@ -38,7 +38,7 @@
3838
"knip": "knip --config knip.config.js",
3939
"hooks:pre-push": "npm run lint:commit && npm run lint && npm run knip",
4040
"lint:commit": "commitlint -e",
41-
"prepare": "node ./.husky/skip.js || husky",
41+
"prepare": "test -f ./.husky/skip.js && node ./.husky/skip.js || test -d ./.git && husky || true",
4242
"clean-coverage": "rimraf coverage",
4343
"clean-lib": "rimraf lib",
4444
"clean-test-tmp": "rimraf test/tmp",

0 commit comments

Comments
 (0)