diff --git a/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js b/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js index 2b9b4595b512b..51708ce737104 100644 --- a/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js +++ b/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js @@ -265,7 +265,11 @@ module.exports = cls => class IdealTreeBuilder extends cls { this[_global] ? this[_globalRootNode]() : rpj(this.path + '/package.json').then( pkg => this[_rootNodeFromPackage](pkg), - er => this[_rootNodeFromPackage]({}) + er => { + if (er.code === 'EJSONPARSE') + throw er + return this[_rootNodeFromPackage]({}) + } )) .then(root => this[_loadWorkspaces](root)) // ok to not have a virtual tree. probably initial install. diff --git a/node_modules/@npmcli/arborist/package.json b/node_modules/@npmcli/arborist/package.json index d8c63159af36c..ea0aea167f0f3 100644 --- a/node_modules/@npmcli/arborist/package.json +++ b/node_modules/@npmcli/arborist/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/arborist", - "version": "0.0.32", + "version": "0.0.33", "description": "Manage node_modules trees", "dependencies": { "@npmcli/installed-package-contents": "^1.0.5", diff --git a/package-lock.json b/package-lock.json index aadc2812c0c6d..951b1e669e848 100644 --- a/package-lock.json +++ b/package-lock.json @@ -76,7 +76,7 @@ ], "license": "Artistic-2.0", "dependencies": { - "@npmcli/arborist": "^0.0.32", + "@npmcli/arborist": "^0.0.33", "@npmcli/ci-detect": "^1.2.0", "@npmcli/config": "^1.2.1", "@npmcli/run-script": "^1.7.0", @@ -379,9 +379,9 @@ } }, "node_modules/@npmcli/arborist": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-0.0.32.tgz", - "integrity": "sha512-FZgrZVFaBqSPRsfr7DYAdrqFBT6ShxXpkMUBBIFZ6mm7Bgt3h5exM050s9ROD2DBOsxXJGOJj8BfdAuU0ZABXg==", + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-0.0.33.tgz", + "integrity": "sha512-yDCdhNz8+N3pli1GsKw+7qcVL9q5C+V1Lk42JlTxw6cNpgcUwKlDj3e/nDkO+B1vJQRkLMSt9IQKWZtUjZHePQ==", "inBundle": true, "dependencies": { "@npmcli/installed-package-contents": "^1.0.5", @@ -8511,9 +8511,9 @@ } }, "@npmcli/arborist": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-0.0.32.tgz", - "integrity": "sha512-FZgrZVFaBqSPRsfr7DYAdrqFBT6ShxXpkMUBBIFZ6mm7Bgt3h5exM050s9ROD2DBOsxXJGOJj8BfdAuU0ZABXg==", + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-0.0.33.tgz", + "integrity": "sha512-yDCdhNz8+N3pli1GsKw+7qcVL9q5C+V1Lk42JlTxw6cNpgcUwKlDj3e/nDkO+B1vJQRkLMSt9IQKWZtUjZHePQ==", "requires": { "@npmcli/installed-package-contents": "^1.0.5", "@npmcli/map-workspaces": "^1.0.1", diff --git a/package.json b/package.json index 403ee49272aa7..28258de946a52 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "./package.json": "./package.json" }, "dependencies": { - "@npmcli/arborist": "^0.0.32", + "@npmcli/arborist": "^0.0.33", "@npmcli/ci-detect": "^1.2.0", "@npmcli/config": "^1.2.1", "@npmcli/run-script": "^1.7.0",