Skip to content

Commit c61e037

Browse files
committed
fix: use new load/create syntax for package-json
1 parent b252164 commit c61e037

File tree

1 file changed

+1
-2
lines changed
  • workspaces/arborist/lib/arborist

1 file changed

+1
-2
lines changed

workspaces/arborist/lib/arborist/reify.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1423,8 +1423,7 @@ module.exports = cls => class Reifier extends cls {
14231423
for (const tree of updatedTrees) {
14241424
// refresh the edges so they have the correct specs
14251425
tree.package = tree.package
1426-
const pkgJson = await PackageJson.load(tree.path)
1427-
.catch(() => new PackageJson(tree.path))
1426+
const pkgJson = await PackageJson.load(tree.path, { create: true })
14281427
const {
14291428
dependencies = {},
14301429
devDependencies = {},

0 commit comments

Comments
 (0)