File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
workspaces/arborist/lib/arborist Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,12 @@ module.exports = cls => class IsolatedReifier extends cls {
8080 // For isolated/linked mode, only include workspaces that root explicitly declares as dependencies.
8181 // When omitting dep types, exclude those from the declared set so their workspaces aren't hoisted.
8282 const rootPkg = idealTree . package
83- this . #rootDeclaredDeps = new Set ( [
84- ... Object . keys ( rootPkg . dependencies || { } ) ,
85- ... ( ! omit . has ( 'dev' ) ? Object . keys ( rootPkg . devDependencies || { } ) : [ ] ) ,
86- ... ( ! omit . has ( 'optional' ) ? Object . keys ( rootPkg . optionalDependencies || { } ) : [ ] ) ,
87- ... ( ! omit . has ( 'peer' ) ? Object . keys ( rootPkg . peerDependencies || { } ) : [ ] ) ,
88- ] )
83+ this . #rootDeclaredDeps = new Set ( Object . keys ( Object . assign ( { } ,
84+ rootPkg . dependencies ,
85+ ( ! omit . has ( 'dev' ) && rootPkg . devDependencies ) ,
86+ ( ! omit . has ( 'optional' ) && rootPkg . optionalDependencies ) ,
87+ ( ! omit . has ( 'peer' ) && rootPkg . peerDependencies )
88+ ) ) )
8989
9090 // XXX this sometimes acts like a node too
9191 this . idealGraph = {
You can’t perform that action at this time.
0 commit comments