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