We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b252164 commit c61e037Copy full SHA for c61e037
workspaces/arborist/lib/arborist/reify.js
@@ -1423,8 +1423,7 @@ module.exports = cls => class Reifier extends cls {
1423
for (const tree of updatedTrees) {
1424
// refresh the edges so they have the correct specs
1425
tree.package = tree.package
1426
- const pkgJson = await PackageJson.load(tree.path)
1427
- .catch(() => new PackageJson(tree.path))
+ const pkgJson = await PackageJson.load(tree.path, { create: true })
1428
const {
1429
dependencies = {},
1430
devDependencies = {},
0 commit comments