Skip to content

Commit 00f3880

Browse files
committed
update lock file
1 parent 05cb7c3 commit 00f3880

File tree

6 files changed

+138
-969
lines changed

6 files changed

+138
-969
lines changed

.husky/_/pre-commit

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/bin/sh
2+
3+
if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
4+
set -x
5+
fi
6+
7+
if [ "$LEFTHOOK" = "0" ]; then
8+
exit 0
9+
fi
10+
11+
call_lefthook()
12+
{
13+
if test -n "$LEFTHOOK_BIN"
14+
then
15+
"$LEFTHOOK_BIN" "$@"
16+
elif lefthook.exe -h >/dev/null 2>&1
17+
then
18+
lefthook.exe "$@"
19+
elif lefthook.bat -h >/dev/null 2>&1
20+
then
21+
lefthook.bat "$@"
22+
else
23+
dir="$(git rev-parse --show-toplevel)"
24+
osArch=$(uname | tr '[:upper:]' '[:lower:]')
25+
cpuArch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/x64/')
26+
if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe"
27+
then
28+
"$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" "$@"
29+
elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe"
30+
then
31+
"$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" "$@"
32+
elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe"
33+
then
34+
"$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" "$@"
35+
elif test -f "$dir/node_modules/lefthook/bin/index.js"
36+
then
37+
"$dir/node_modules/lefthook/bin/index.js" "$@"
38+
39+
elif go tool lefthook -h >/dev/null 2>&1
40+
then
41+
go tool lefthook "$@"
42+
elif bundle exec lefthook -h >/dev/null 2>&1
43+
then
44+
bundle exec lefthook "$@"
45+
elif yarn lefthook -h >/dev/null 2>&1
46+
then
47+
yarn lefthook "$@"
48+
elif pnpm lefthook -h >/dev/null 2>&1
49+
then
50+
pnpm lefthook "$@"
51+
elif swift package lefthook >/dev/null 2>&1
52+
then
53+
swift package --build-path .build/lefthook --disable-sandbox lefthook "$@"
54+
elif command -v mint >/dev/null 2>&1
55+
then
56+
mint run csjones/lefthook-plugin "$@"
57+
else
58+
echo "Can't find lefthook in PATH"
59+
fi
60+
fi
61+
}
62+
63+
call_lefthook run "pre-commit" "$@"

.husky/_/prepare-commit-msg

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/bin/sh
2+
3+
if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
4+
set -x
5+
fi
6+
7+
if [ "$LEFTHOOK" = "0" ]; then
8+
exit 0
9+
fi
10+
11+
call_lefthook()
12+
{
13+
if test -n "$LEFTHOOK_BIN"
14+
then
15+
"$LEFTHOOK_BIN" "$@"
16+
elif lefthook.exe -h >/dev/null 2>&1
17+
then
18+
lefthook.exe "$@"
19+
elif lefthook.bat -h >/dev/null 2>&1
20+
then
21+
lefthook.bat "$@"
22+
else
23+
dir="$(git rev-parse --show-toplevel)"
24+
osArch=$(uname | tr '[:upper:]' '[:lower:]')
25+
cpuArch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/x64/')
26+
if test -f "$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe"
27+
then
28+
"$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook.exe" "$@"
29+
elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe"
30+
then
31+
"$dir/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook.exe" "$@"
32+
elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe"
33+
then
34+
"$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook.exe" "$@"
35+
elif test -f "$dir/node_modules/lefthook/bin/index.js"
36+
then
37+
"$dir/node_modules/lefthook/bin/index.js" "$@"
38+
39+
elif go tool lefthook -h >/dev/null 2>&1
40+
then
41+
go tool lefthook "$@"
42+
elif bundle exec lefthook -h >/dev/null 2>&1
43+
then
44+
bundle exec lefthook "$@"
45+
elif yarn lefthook -h >/dev/null 2>&1
46+
then
47+
yarn lefthook "$@"
48+
elif pnpm lefthook -h >/dev/null 2>&1
49+
then
50+
pnpm lefthook "$@"
51+
elif swift package lefthook >/dev/null 2>&1
52+
then
53+
swift package --build-path .build/lefthook --disable-sandbox lefthook "$@"
54+
elif command -v mint >/dev/null 2>&1
55+
then
56+
mint run csjones/lefthook-plugin "$@"
57+
else
58+
echo "Can't find lefthook in PATH"
59+
fi
60+
fi
61+
}
62+
63+
call_lefthook run "prepare-commit-msg" "$@"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"@types/node": "^20.12.7",
3535
"lefthook": "^1.7.2"
3636
},
37-
"packageManager": "pnpm@9.12.2",
37+
"packageManager": "pnpm@10.6.5",
3838
"engines": {
39-
"pnpm": ">=9.12.2",
39+
"pnpm": ">=10.6.5",
4040
"node": ">=20.0.0"
4141
}
42-
}
42+
}

packages/open-source-stack/package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@
4040
"bugs": {
4141
"url": "https://github.com/forge42dev/open-source-stack/issues"
4242
},
43-
"files": [
44-
"dist"
45-
],
46-
"workspaces": [
47-
".",
48-
"test-apps/*"
49-
],
43+
"files": ["dist"],
44+
"workspaces": [".", "test-apps/*"],
5045
"homepage": "https://github.com/forge42dev/open-source-stack#readme",
5146
"devDependencies": {
5247
"@arethetypeswrong/cli": "^0.15.4",
@@ -68,4 +63,4 @@
6863
"@rollup/rollup-win32-x64-msvc": "4.18.1",
6964
"@rollup/rollup-win32-x64-musl": "4.18.1"
7065
}
71-
}
66+
}

0 commit comments

Comments
 (0)