Skip to content

Commit

Permalink
fix(ci): skip husky installation on production environments
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Nov 9, 2023
1 parent 99f8294 commit 656610b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 352 deletions.
350 changes: 0 additions & 350 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npx eslint 'src/**/*.{js,ts,tsx}' --quiet",
"lint:fix": "npx eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
"prepare": "husky install",
"prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install",
"setupdb": "tsx scripts/setup-db.ts"
},
"author": "medicomas",
Expand All @@ -29,6 +29,7 @@
},
"license": "ISC",
"devDependencies": {
"husky": "^8.0.3",
"@types/cors": "^2.8.14",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^9.0.4",
Expand All @@ -40,7 +41,6 @@
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"openapi-types": "^12.1.3",
"prettier": "3.0.3",
Expand Down

0 comments on commit 656610b

Please sign in to comment.