mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
fix(manifest-writer): don't wrap lines in pnpm-workspace.yaml
This commit is contained in:
5
.changeset/dull-ducks-melt.md
Normal file
5
.changeset/dull-ducks-melt.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/workspace.manifest-writer": patch
|
||||
---
|
||||
|
||||
Don't wrap lines in `pnpm-workspace.yaml`.
|
||||
@@ -26,5 +26,11 @@ export async function updateWorkspaceManifest (dir: string, updatedFields: Parti
|
||||
await fs.promises.rm(path.join(dir, WORKSPACE_MANIFEST_FILENAME))
|
||||
return
|
||||
}
|
||||
await writeYamlFile(path.join(dir, WORKSPACE_MANIFEST_FILENAME), manifest)
|
||||
await writeYamlFile(path.join(dir, WORKSPACE_MANIFEST_FILENAME), manifest, {
|
||||
lineWidth: -1, // This is setting line width to never wrap
|
||||
blankLines: true,
|
||||
noCompatMode: true,
|
||||
noRefs: true,
|
||||
sortKeys: false,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user