We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaff730 commit 44ec62aCopy full SHA for 44ec62a
.husky/_/pre-commit
@@ -0,0 +1,12 @@
1
+#!/bin/sh
2
+
3
+if [ "$SKIP_SIMPLE_GIT_HOOKS" = "1" ]; then
4
+ echo "[INFO] SKIP_SIMPLE_GIT_HOOKS is set to 1, skipping hook."
5
+ exit 0
6
+fi
7
8
+if [ -f "$SIMPLE_GIT_HOOKS_RC" ]; then
9
+ . "$SIMPLE_GIT_HOOKS_RC"
10
11
12
+npm run pre-commit-hook
scripts/prepare-publish.mjs
@@ -80,5 +80,7 @@ const main = async () => {
80
81
main().catch((error) => {
82
console.error("Failed to prepare dist package:", error);
83
- process.exitCode = 1;
+ if (globalThis.process) {
84
+ globalThis.process.exitCode = 1;
85
+ }
86
});
0 commit comments