Skip to content

Commit 80c6c4a

Browse files
authored
fix: do not reset hidden lockfile data before saving (#5907)
1 parent da6cf30 commit 80c6c4a

File tree

1 file changed

+0
-4
lines changed
  • workspaces/arborist/lib/arborist

1 file changed

+0
-4
lines changed

workspaces/arborist/lib/arborist/reify.js

-4
Original file line numberDiff line numberDiff line change
@@ -1531,16 +1531,12 @@ module.exports = cls => class Reifier extends cls {
15311531
this.idealTree.meta.filename =
15321532
this.idealTree.realpath + '/node_modules/.package-lock.json'
15331533
this.idealTree.meta.hiddenLockfile = true
1534-
const resetMeta = this.idealTree.meta && this.idealTree.meta.lockfileVersion !== defaultLockfileVersion
15351534
this.idealTree.meta.lockfileVersion = defaultLockfileVersion
15361535

15371536
this.actualTree = this.idealTree
15381537
this.idealTree = null
15391538

15401539
if (!this[_global]) {
1541-
if (resetMeta) {
1542-
await this.actualTree.meta.reset()
1543-
}
15441540
await this.actualTree.meta.save()
15451541
const ignoreScripts = !!this.options.ignoreScripts
15461542
// if we aren't doing a dry run or ignoring scripts and we actually made changes to the dep

0 commit comments

Comments
 (0)