From ead11ad8eccf58f88c5c848bd31d771f0e4ecddc Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sat, 5 Apr 2025 14:44:21 +0200 Subject: [PATCH] fix(manifest-writer): don't wrap lines in pnpm-workspace.yaml --- .changeset/dull-ducks-melt.md | 5 +++++ workspace/manifest-writer/src/index.ts | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/dull-ducks-melt.md diff --git a/.changeset/dull-ducks-melt.md b/.changeset/dull-ducks-melt.md new file mode 100644 index 0000000000..2bffab7a15 --- /dev/null +++ b/.changeset/dull-ducks-melt.md @@ -0,0 +1,5 @@ +--- +"@pnpm/workspace.manifest-writer": patch +--- + +Don't wrap lines in `pnpm-workspace.yaml`. diff --git a/workspace/manifest-writer/src/index.ts b/workspace/manifest-writer/src/index.ts index 77d94bf4fb..576b68d0b1 100644 --- a/workspace/manifest-writer/src/index.ts +++ b/workspace/manifest-writer/src/index.ts @@ -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, + }) }