Skip to content

Commit b44768a

Browse files
committed
- Load root project `package.json` when running loadVirtual. Fix: #1690 Fix: #1693 - Fetch metadata from registry when loading tree from outdated package-lock.json file. This avoids a situation where a lockfile or shrinkwrap from npm v5 would result in deleting dependencies on install. - Preserve `package.json` and `package-lock.json` formatting in all places where these files are written. Fix: #1662
1 parent 281da6f commit b44768a

File tree

8 files changed

+130
-48
lines changed

8 files changed

+130
-48
lines changed

node_modules/.gitignore

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js

Lines changed: 58 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/lib/arborist/load-virtual.js

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/lib/arborist/reify.js

Lines changed: 18 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/lib/shrinkwrap.js

Lines changed: 19 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/arborist/package.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"./package.json": "./package.json"
4343
},
4444
"dependencies": {
45-
"@npmcli/arborist": "^0.0.16",
45+
"@npmcli/arborist": "^0.0.17",
4646
"@npmcli/ci-detect": "^1.2.0",
4747
"@npmcli/run-script": "^1.5.0",
4848
"abbrev": "~1.1.1",

0 commit comments

Comments
 (0)