Skip to content

Commit 800d84f

Browse files
authored
feat: add sort support of Bun catalogs (#754)
1 parent 0cd12cc commit 800d84f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/configs/sort.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ export async function sortPackageJson(): Promise<TypedFlatConfigItem[]> {
7878
order: { type: 'asc' },
7979
pathPattern: '^(?:resolutions|overrides|pnpm.overrides)$',
8080
},
81+
{
82+
order: { type: 'asc' },
83+
pathPattern: '^workspaces\\.catalog$',
84+
},
85+
{
86+
order: { type: 'asc' },
87+
pathPattern: '^workspaces\\.catalogs\\.[^.]+$',
88+
},
8189
{
8290
order: [
8391
'types',

0 commit comments

Comments
 (0)