Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deps: packages.map(toDependency),
type: depType
});
} else if (scope.kind === ScopeType.ALL) {
// bolt ws add isn't implemented yet, do bolt w for each workspace
const workspaces = await getWorkspaces();
for (const w of workspaces) {
await workspaceAdd({
pkgName: w.name,
deps: packages.map(toDependency),
type: depType
});
}
} else if (scope.kind === ScopeType.SELECT) {
for (const w of scope.workspaces) {
await workspaceAdd({
pkgName: w.name,
deps: packages.map(toDependency),
type: depType
});
}
}
}