fix(manifest-writer): don't wrap lines in pnpm-workspace.yaml

This commit is contained in:
Zoltan Kochan
2025-04-05 14:44:21 +02:00
parent c85aaf87c9
commit ead11ad8ec
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/workspace.manifest-writer": patch
---
Don't wrap lines in `pnpm-workspace.yaml`.

View File

@@ -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,
})
}