@nx/expo
Version:
26 lines (25 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.processExportOptions = processExportOptions;
const devkit_1 = require("@nx/devkit");
const process_generic_options_1 = require("./process-generic-options");
function processExportOptions(tree, options, projectName, projectRoot, migrationLogs) {
const args = [];
if ('minify' in options) {
if (options.minify === false)
args.push('--no-minify');
delete options.minify;
}
if ('bytecode' in options) {
if (options.bytecode === false)
args.push('--no-bytecode');
delete options.bytecode;
}
if ('outputDir' in options) {
const value = (0, devkit_1.joinPathFragments)((0, devkit_1.offsetFromRoot)(projectRoot), options.outputDir);
args.push(`--output-dir=${value}`);
delete options.outputDir;
}
options.args = args;
(0, process_generic_options_1.processGenericOptions)(tree, options, projectName, projectRoot, migrationLogs);
}