@npmcli/arborist 6.1.3 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/arborist/reify.js +0 -4
- package/package.json +1 -1
package/lib/arborist/reify.js
CHANGED
|
@@ -1531,16 +1531,12 @@ module.exports = cls => class Reifier extends cls {
|
|
|
1531
1531
|
this.idealTree.meta.filename =
|
|
1532
1532
|
this.idealTree.realpath + '/node_modules/.package-lock.json'
|
|
1533
1533
|
this.idealTree.meta.hiddenLockfile = true
|
|
1534
|
-
const resetMeta = this.idealTree.meta && this.idealTree.meta.lockfileVersion !== defaultLockfileVersion
|
|
1535
1534
|
this.idealTree.meta.lockfileVersion = defaultLockfileVersion
|
|
1536
1535
|
|
|
1537
1536
|
this.actualTree = this.idealTree
|
|
1538
1537
|
this.idealTree = null
|
|
1539
1538
|
|
|
1540
1539
|
if (!this[_global]) {
|
|
1541
|
-
if (resetMeta) {
|
|
1542
|
-
await this.actualTree.meta.reset()
|
|
1543
|
-
}
|
|
1544
1540
|
await this.actualTree.meta.save()
|
|
1545
1541
|
const ignoreScripts = !!this.options.ignoreScripts
|
|
1546
1542
|
// if we aren't doing a dry run or ignoring scripts and we actually made changes to the dep
|