Skip to content

Commit

Permalink
fix: install husky only if not in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Apr 11, 2023
1 parent b010039 commit 5634aac
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"package:watch": "svelte-package --watch",
"test": "echo 'test!'",
"postinstall": "svelte-kit sync",
"prepare": "husky install",
"prepare": "is-ci || husky install",
"lint": "npm run lint:prettier && npm run lint:eslint && npm run lint:css",
"lintfix": "npm run lint:prettier:fix && npm run lint:eslint:fix && npm run lint:css:fix",
"lint:js": "npm run lint:eslint && npm run lint:prettier",
Expand Down Expand Up @@ -68,6 +68,7 @@
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-svelte3": "^4.0.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^13.2.1",
"postcss-html": "^1.5.0",
"prettier": "^2.8.7",
Expand Down

0 comments on commit 5634aac

Please sign in to comment.