Skip to content

Commit d7cfc96

Browse files
committed
chore: prevent husky to get installed in CI
1 parent e34a18c commit d7cfc96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"test:watch": "npm run test -- --watch",
4040
"type-check": "tsc --noEmit",
4141
"semantic-release": "semantic-release",
42-
"prepare": "husky install"
42+
"prepare": "is-ci || husky install"
4343
},
4444
"dependencies": {
4545
"@typescript-eslint/experimental-utils": "^4.24.0"
@@ -62,6 +62,7 @@
6262
"eslint-plugin-prettier": "^3.4.0",
6363
"eslint-plugin-promise": "^5.1.0",
6464
"husky": "^7.0.0",
65+
"is-ci": "^3.0.0",
6566
"jest": "^27.0.4",
6667
"lint-staged": "^11.1.1",
6768
"prettier": "2.3.2",

0 commit comments

Comments
 (0)