build: refine husky configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 22 Sep 2023 18:44:11 +0000 (20:44 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 22 Sep 2023 18:44:11 +0000 (20:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.husky/pre-commit
skip-preinstall.cjs

index d24fdfc601b9ffe8ccc3fca5d3b873109dc56c4a..cf0c46b936c647a48c38cfbf9d837b280fcbb754 100755 (executable)
@@ -1,4 +1,4 @@
 #!/usr/bin/env sh
 . "$(dirname -- "$0")/_/husky.sh"
 
-npx lint-staged
+npx --no-install lint-staged
index 6181e5cf63ec7804635203cc560e65c1b41c7204..8ec526bccf5fd1212c59edaa39f0f04907927850 100644 (file)
@@ -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);