mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
fix: all pnpm-workspace.yaml settings are sorted by key (#9701)
This commit is contained in:
6
.changeset/gold-eggs-check.md
Normal file
6
.changeset/gold-eggs-check.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/workspace.manifest-writer": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Sort keys in `pnpm-workspace.yaml` with deep [#9701](https://github.com/pnpm/pnpm/pull/9701).
|
||||
@@ -11,7 +11,7 @@ import { sortKeysByPriority } from '@pnpm/object.key-sorting'
|
||||
async function writeManifestFile (dir: string, manifest: Partial<WorkspaceManifest>): Promise<void> {
|
||||
manifest = sortKeysByPriority({
|
||||
priority: { packages: 0 },
|
||||
deep: false,
|
||||
deep: true,
|
||||
}, manifest)
|
||||
return writeYamlFile(path.join(dir, WORKSPACE_MANIFEST_FILENAME), manifest, {
|
||||
lineWidth: -1, // This is setting line width to never wrap
|
||||
|
||||
Reference in New Issue
Block a user