Skip to content

Commit 939d161

Browse files
committed
Patch simple-git-hooks
1 parent a057083 commit 939d161

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"wxt": "workspace:*"
5353
},
5454
"patchedDependencies": {
55-
"markdown-it-footnote@4.0.0": "patches/markdown-it-footnote.patch"
55+
"markdown-it-footnote@4.0.0": "patches/markdown-it-footnote.patch",
56+
"simple-git-hooks@2.13.1": "patches/simple-git-hooks@2.13.1.patch"
5657
},
5758
"simple-git-hooks": {
5859
"pre-commit": "bun run lint-staged"

patches/simple-git-hooks@2.13.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manually apply PR: https://github.com/toplenboren/simple-git-hooks/pull/136
2+
3+
Can be removed after >=2.13.2 is released.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/simple-git-hooks.js b/simple-git-hooks.js
2+
index 093890d21800c9feb34cb6da5b997b947da812cd..3b11e62bbfcbdf7d2dc8f553237750a220ecae6f 100644
3+
--- a/simple-git-hooks.js
4+
+++ b/simple-git-hooks.js
5+
@@ -100,6 +100,10 @@ function getProjectRootDirectoryFromNodeModules(projectPath) {
6+
if (indexOfDenoDir > -1) {
7+
return projDir.slice(0, indexOfDenoDir - 1).join('/');
8+
}
9+
+ const indexOfBunDir = projDir.indexOf('.bun')
10+
+ if (indexOfBunDir > -1) {
11+
+ return projDir.slice(0, indexOfBunDir - 1).join('/');
12+
+ }
13+
14+
const indexOfStoreDir = projDir.indexOf('.store')
15+
if (indexOfStoreDir > -1) {

0 commit comments

Comments
 (0)