Skip to content

Commit 69071f1

Browse files
committed
feat: add more pnpm-package-yaml keys sorting
1 parent 3682879 commit 69071f1

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

pnpm-workspace.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ overrides:
55
'@typescript-eslint/utils': ^8.26.0
66
eslint: ^9.21.0
77
tsx: ^4.19.3
8-
onlyBuiltDependencies:
9-
- esbuild
108
catalog:
119
'@antfu/install-pkg': ^1.0.0
1210
'@antfu/ni': ^23.3.1
@@ -75,3 +73,5 @@ catalog:
7573
vue: ^3.5.13
7674
vue-eslint-parser: ^10.1.1
7775
yaml-eslint-parser: ^1.3.0
76+
onlyBuiltDependencies:
77+
- esbuild

src/configs/yaml.ts

+15
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,23 @@ export async function yaml(
7878
{
7979
order: [
8080
'packages',
81+
'overrides',
82+
'patchedDependencies',
83+
'hoistPattern',
8184
'catalog',
8285
'catalogs',
86+
87+
'allowedDeprecatedVersions',
88+
'allowNonAppliedPatches',
89+
'configDependencies',
90+
'ignoredBuiltDependencies',
91+
'ignoredOptionalDependencies',
92+
'neverBuiltDependencies',
93+
'onlyBuiltDependencies',
94+
'onlyBuiltDependenciesFile',
95+
'packageExtensions',
96+
'peerDependencyRules',
97+
'supportedArchitectures',
8398
],
8499
pathPattern: '^$',
85100
},

0 commit comments

Comments
 (0)