Skip to content

Commit

Permalink
Merge pull request #48 from magi-sche-org/fix/npm-script
Browse files Browse the repository at this point in the history
[修正] npm scriptsのprepareをロールバック
  • Loading branch information
xpadev-net authored Feb 27, 2024
2 parents 88640e8 + 7874cbc commit c6fc1b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .husky/install.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Skip Husky install in production and CI
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
process.exit(0)
}
(await import('husky')).install()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"format": "prettier --write \"src/**/*.{tsx,ts,js,json,css,scss}\"",
"lint": "npm run eslint&&npm run check-types",
"lint:fix": "npm run format&&npm run eslint:fix&&npm run check-types",
"prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then husky install; fi"
"prepare": "node .husky/install.mjs"
},
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

0 comments on commit c6fc1b5

Please sign in to comment.