From 69d1cb501a021bc921127f7e4e91ba6dcfaccf66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 22 Sep 2023 20:44:11 +0200 Subject: [PATCH] build: refine husky configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .husky/pre-commit | 2 +- skip-preinstall.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1