@interaktiv/dia-scripts
Version:
CLI toolbox with common scripts for most sort of projects at DIA
25 lines (20 loc) • 647 B
JavaScript
;
const {
isSfdxProject,
isTitaniumProject,
isCommerceProject
} = require('../../utils');
const {
argv
} = process; // TODO: Maybe we could do something like --change-set or use --bundle for changeset generation later on
if (isSfdxProject() || isTitaniumProject() || isCommerceProject()) {
throw new Error('Using the build command in an SFDX project is currently not supported and needed');
}
if (argv.includes('--browser')) {
console.error('--browser has been deprecated, use --bundle instead');
}
if (argv.includes('--bundle') || argv.includes('--browser')) {
require('./webpack');
} else {
require('./babel');
}