@nx/expo
Version:
18 lines (17 loc) • 836 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.processInstallOptions = processInstallOptions;
const process_generic_options_1 = require("./process-generic-options");
function processInstallOptions(tree, options, projectName, projectRoot, migrationLogs) {
const args = [];
// Technically this will not be set in project.json since the value is passed through CLI e.g. nx run <project>:install foo,bar.
// Handling it here for correctness.
if ('packages' in options) {
const v = options.packages;
const packages = typeof v === 'string' ? v.split(',') : v;
args.push(...packages);
delete options.packages;
}
options.args = args;
(0, process_generic_options_1.processGenericOptions)(tree, options, projectName, projectRoot, migrationLogs);
}