Skip to content

Commit

Permalink
chore: update prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Mar 1, 2021
1 parent 55700a3 commit 217b714
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
15 changes: 0 additions & 15 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:lib": "ng test ngx-editor --browsers ChromeHeadless --watch false",
"test": "npm run test:lib && npm run test:demo",
"dev": "ng build ngx-editor --watch",
"prepare": "is-ci || husky install"
"prepare": "sh ./scripts/install-husky.sh"
},
"keywords": [
"angular-editor",
Expand Down Expand Up @@ -68,7 +68,6 @@
"gh-pages": "^3.1.0",
"husky": "^5.1.2",
"inquirer": "^8.0.0",
"is-ci": "^3.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.0",
Expand Down
9 changes: 9 additions & 0 deletions scripts/install-husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ -n "$CI" ]
then
echo "Found CI. Skipping husky install...\n"
exit 0
fi

npx --no-install husky install

0 comments on commit 217b714

Please sign in to comment.