diff --git a/package.json b/package.json index 424902819..fe59e9571 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/prepareHusky.mjs b/prepareHusky.mjs index 108b7f00c..aff3d15bf 100644 --- a/prepareHusky.mjs +++ b/prepareHusky.mjs @@ -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!');