Skip to content

Commit

Permalink
feat: support more fields of packageJson as ascending order (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Mar 21, 2024
1 parent 440a035 commit f4765b1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/configs/sort.ts
Expand Up @@ -85,6 +85,22 @@ export async function sortPackageJson(): Promise<FlatConfigItem[]> {
],
pathPattern: '^exports.*$',
},
{
order: [
// client hooks only
'pre-commit',
'prepare-commit-msg',
'commit-msg',
'post-commit',
'pre-rebase',
'post-rewrite',
'post-checkout',
'post-merge',
'pre-push',
'pre-auto-gc',
],
pathPattern: '^(?:gitHooks|husky|simple-git-hooks)$',
},
],
},
},
Expand Down

0 comments on commit f4765b1

Please sign in to comment.