From: Jérôme Benoit Date: Fri, 22 Sep 2023 18:44:11 +0000 (+0200) Subject: build: refine husky configuration X-Git-Tag: v1.2.23~32 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=69d1cb501a021bc921127f7e4e91ba6dcfaccf66;p=e-mobility-charging-stations-simulator.git build: refine husky configuration Signed-off-by: Jérôme Benoit --- diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc6..cf0c46b9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npx lint-staged +npx --no-install lint-staged diff --git a/skip-preinstall.cjs b/skip-preinstall.cjs index 6181e5cf..8ec526bc 100644 --- a/skip-preinstall.cjs +++ b/skip-preinstall.cjs @@ -1,7 +1,7 @@ const skipPreinstall = process.env.SKIP_PREINSTALL || process.env.VCAP_APPLICATION !== undefined; if (skipPreinstall) { // eslint-disable-next-line n/no-process-exit - process.exit(0); + process.exit(); } else { // eslint-disable-next-line n/no-process-exit process.exit(1);