Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loader.load(opts.jakefile);
// Set working dir
var dirname = opts.directory;
if (dirname) {
process.chdir(dirname);
}
jake.parseAllTasks();
if (opts.tasks) {
jake.showAllTaskDescriptions(opts.tasks);
}
else {
jake.runTask(program.taskName || 'default', program.taskArgs, true);
}
}