Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
name: "script",
type: "list",
message: "Select script to run",
choices
}
])).script;
if (scope.kind === ScopeType.PROJECT) {
projectRun({
script,
scriptArgs: []
});
} else if (scope.kind === ScopeType.ALL || scope.kind === ScopeType.SELECT) {
// the trailing comma in the glob is important for some reason
let glob = `{${scope.workspaces.map(w => w.name).join(",")},}`;
workspacesRun({
script,
scriptArgs: [],
filterOpts: {
only: glob
}
});
}
}