From d9b0499f27cb1b18af62dfffb8e24d6a7d06dcbb Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 31 Mar 2021 16:22:45 +0300 Subject: [PATCH] Remove old hooks file before husky add (otherwise lint-staged runs several times after several 'npm ci') (#3045) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fb5eacf5..f950bbcf 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "instrument": "nyc instrument cvat-ui cvat-ui_cov && nyc instrument cvat-canvas cvat-canvas_cov && nyc instrument cvat-data cvat-data_cov && nyc instrument cvat-core cvat-core_cov", "cp": "cp -r cvat-ui_cov/* cvat-ui && cp -r cvat-canvas_cov/* cvat-canvas && cp -r cvat-data_cov/* cvat-data && cp -r cvat-core_cov/* cvat-core", "rm": "rm -rf cvat-ui_cov cvat-canvas_cov cvat-data_cov cvat-core_cov", - "prepare": "husky install && npx husky add .husky/pre-commit \"npx lint-staged\"", + "prepare": "husky install && rm .husky/pre-commit && npx husky add .husky/pre-commit \"npx lint-staged\"", "precommit:cvat-data": "cd cvat-ui && eslint --fix", "precommit:cvat-core": "cd cvat-ui && eslint --fix", "precommit:cvat-canvas": "cd cvat-ui && eslint --fix",