Skip to content

Commit

Permalink
only build and remove husky hooks not working from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ryo committed Apr 12, 2024
1 parent 736f681 commit 74a699e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"migration:run-dev": "rm -rf dist && yarn build:server && yarn typeorm migration:run -d dist/server/utils/data-source.js || true",
"migration:revert-dev": "rm -rf dist && yarn build:server && npx typeorm migration:revert -d dist/server/utils/data-source.js || true",
"typeorm": "typeorm-ts-node-commonjs",
"prepare": "husky",
"pre-push": "yarn lint && yarn build"
"prepare": "husky"
},
"jest": {
"testEnvironment": "node",
Expand Down
2 changes: 1 addition & 1 deletion prepareHusky.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function checkHuskyFolder() {
// eslint-disable-next-line no-undef
if (err) console.log('No pre-commit file found');
});
fs.writeFile(`${pathHuskyDir}/pre-push`, 'yarn pre-push', { ovewrite: true }, function (err) {
fs.writeFile(`${pathHuskyDir}/pre-push`, 'yarn build', { ovewrite: true }, function (err) {
if (err) throw err;
// eslint-disable-next-line no-undef
console.log('Husky setup Ok!');
Expand Down

0 comments on commit 74a699e

Please sign in to comment.