refactor(shrinkwrap): use a nicer YAML format for shrinkwrap.yaml

This commit is contained in:
zkochan
2017-02-12 14:19:32 +02:00
parent da6ab05f5e
commit d8a4e44403

View File

@@ -63,7 +63,11 @@ export async function read (pkgPath: string, opts: {force: boolean}): Promise<Sh
export function save (pkgPath: string, shrinkwrap: Shrinkwrap) {
const shrinkwrapPath = path.join(pkgPath, SHRINKWRAP_FILENAME)
return writeYamlFile(shrinkwrapPath, shrinkwrap, {sortKeys: true})
return writeYamlFile(shrinkwrapPath, shrinkwrap, {
sortKeys: true,
lineWidth: 1000,
noCompatMode: true,
})
}
class ShrinkwrapBreakingChangeError extends PnpmError {