tscpp / node-dependencies

Tree view of all node dependencies in workspace
Other
0 stars 0 forks source link

Same dependencies in workspaces #29

Closed tscpp closed 4 years ago

tscpp commented 4 years ago

The dependencies are copied from the first workspace to all of the others.

tscpp commented 4 years ago

https://github.com/tscpp/node-dependencies/blob/master/src/dependencies.ts#L47:

const workspace = (element instanceof WorkspaceItem ? element : element?.workspace) ?? utils.workspaces.length ? new WorkspaceItem(utils.workspaces[0]) : undefined;

Should be:

const workspace = (element instanceof WorkspaceItem ? element : element?.workspace) ?? (utils.workspaces.length ? new WorkspaceItem(utils.workspaces[0]) : undefined);