Same dependencies in workspaces
tscpp opened this issue · 1 comments
tscpp commented
The dependencies are copied from the first workspace to all of the others.
tscpp commented
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);