From 74a699e6e1228ce33b18475379eb6725acaacc69 Mon Sep 17 00:00:00 2001 From: Neo Ryo Date: Fri, 12 Apr 2024 14:50:15 +0200 Subject: [PATCH] only build and remove husky hooks not working from package.json --- package.json | 3 +-- prepareHusky.mjs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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!');