Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function buildAvailableOptions() {
// We don't whitelist options here since this command maps so directly to the
// base command (just with an extra env variable and different default output
// path)
return BuildCommand.prototype.availableOptions.map((option) => {
// probably doesn't hurt to share un-modified options objects between
// prototypes, but let's do this just to be safe
option = Object.assign({}, option);
if (option.name === 'output-path') {
option.default = emberBuildPath;
}
return option;
});
}