Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function main(args: string[]): number {
if (runAsWorker(args)) {
runWorkerLoop((args, inputs) => {
const svelteBazelCompiler = new SvelteBazelCompiler(args, inputs);
return svelteBazelCompiler.compile();
});
} else {
const svelteBazelCompiler = new SvelteBazelCompiler(args);
return svelteBazelCompiler.compile() ? 0 : 1;
}
return 0;
}
export function main(args) {
if (runAsWorker(args)) {
runWorkerLoop(runOneBuild);
} else {
return runOneBuild(args) ? 0 : 1;
}
return 0;
}