Skip to content

Commit f4765b1

Browse files
authoredMar 21, 2024··
feat: support more fields of packageJson as ascending order (#359)
1 parent 440a035 commit f4765b1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎src/configs/sort.ts

+16
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,22 @@ export async function sortPackageJson(): Promise<FlatConfigItem[]> {
8585
],
8686
pathPattern: '^exports.*$',
8787
},
88+
{
89+
order: [
90+
// client hooks only
91+
'pre-commit',
92+
'prepare-commit-msg',
93+
'commit-msg',
94+
'post-commit',
95+
'pre-rebase',
96+
'post-rewrite',
97+
'post-checkout',
98+
'post-merge',
99+
'pre-push',
100+
'pre-auto-gc',
101+
],
102+
pathPattern: '^(?:gitHooks|husky|simple-git-hooks)$',
103+
},
88104
],
89105
},
90106
},

0 commit comments

Comments
 (0)
Please sign in to comment.