Skip to content

Commit

Permalink
fix(package): install husky only out of production
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 3, 2023
1 parent 98a3490 commit c6bba57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"packageManager": "pnpm@7.21.0",
"scripts": {
"lint": "eslint --ext .js,.cjs .",
"prepare": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks",
"prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks; fi",
"test": "node src/generator.cjs -p test/example_stack -v"
},
"dependencies": {
Expand Down

0 comments on commit c6bba57

Please sign in to comment.