Skip to content

Commit e6b75bc

Browse files
committed
fixup: pr review corrections
1 parent 4b9d737 commit e6b75bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

workspaces/arborist/lib/arborist/isolated-reifier.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = cls => class IsolatedReifier extends cls {
4747
parent: root,
4848
path: join(this.idealGraph.localPath, location),
4949
resolved: node.resolved,
50-
root: location,
50+
root,
5151
})
5252
root.children.set(newChild.location, newChild)
5353
root.inventory.set(newChild.location, newChild)
@@ -402,11 +402,11 @@ module.exports = cls => class IsolatedReifier extends cls {
402402
deprecated: undefined,
403403
scripts: dep.package.scripts,
404404
version: dep.package.version,
405-
optional,
406405
}
407406
const link = new IsolatedLink({
408407
location: join(nmFolder, dep.name),
409408
name: toKey,
409+
optional,
410410
parent: root,
411411
package: pkg,
412412
path: join(dep.root.localPath, nmFolder, dep.name),

0 commit comments

Comments
 (0)