refactor: pretty stringify newLockFileContent before returning

This commit is contained in:
Rhys Arkins 2021-03-01 14:25:40 +01:00
parent 3be63784ef
commit f788845742

View file

@ -157,7 +157,7 @@ export async function updateLockedDependency(
delete dependency.resolved; delete dependency.resolved;
delete dependency.integrity; delete dependency.integrity;
} }
let newLockFileContent = JSON.stringify(packageLockJson); let newLockFileContent = JSON.stringify(packageLockJson, null, 2);
// iterate through the parent updates first // iterate through the parent updates first
for (const parentUpdate of parentUpdates) { for (const parentUpdate of parentUpdates) {
const parentUpdateConfig = { const parentUpdateConfig = {