Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
run: (context) => {
if (context.target === 'vendors') {
fss.del(`${context.cwd}/bower_components`);
terminal.run(`cd ${context.cwd} && node ${path.dirname(require.resolve('bower'))}/../bin/bower install`);
} else {
helper.error(`Installation of '${context.target}' not supported`);
}
}
};