fix: never wrap lines in the lockfile

This commit is contained in:
Zoltan Kochan
2024-02-08 22:37:56 +01:00
parent 3c7c0926f6
commit f67ad31f64
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/lockfile-file": patch
---
Never wrap lines in the lockfile.

View File

@@ -25,7 +25,7 @@ async function writeFileAtomic (filename: string, data: string) {
const LOCKFILE_YAML_FORMAT = {
blankLines: true,
lineWidth: 1000,
lineWidth: -1, // This is setting line width to never wrap
noCompatMode: true,
noRefs: true,
sortKeys: false,