You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
69 lines
1.9 KiB
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.actionAsync = actionAsync;
|
|
function _migration() {
|
|
const data = require("../../utils/migration");
|
|
_migration = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _maybeBailOnGitStatusAsync() {
|
|
const data = _interopRequireDefault(require("../utils/maybeBailOnGitStatusAsync"));
|
|
_maybeBailOnGitStatusAsync = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _clearNativeFolder() {
|
|
const data = require("./clearNativeFolder");
|
|
_clearNativeFolder = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _platformOptions() {
|
|
const data = require("./platformOptions");
|
|
_platformOptions = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _prebuildAppAsync() {
|
|
const data = require("./prebuildAppAsync");
|
|
_prebuildAppAsync = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
async function actionAsync(projectRoot, {
|
|
platform,
|
|
clean,
|
|
skipDependencyUpdate,
|
|
...options
|
|
}) {
|
|
(0, _migration().warnAboutLocalCLI)(projectRoot, {
|
|
localCmd: 'prebuild'
|
|
});
|
|
if (options.npm) {
|
|
options.packageManager = 'npm';
|
|
}
|
|
const platforms = (0, _platformOptions().platformsFromPlatform)(platform);
|
|
if (clean) {
|
|
if (await (0, _maybeBailOnGitStatusAsync().default)()) return;
|
|
// Clear the native folders before syncing
|
|
await (0, _clearNativeFolder().clearNativeFolder)(projectRoot, platforms);
|
|
} else {
|
|
await (0, _clearNativeFolder().promptToClearMalformedNativeProjectsAsync)(projectRoot, platforms);
|
|
}
|
|
await (0, _prebuildAppAsync().prebuildAsync)(projectRoot, {
|
|
...options,
|
|
skipDependencyUpdate: skipDependencyUpdate ? skipDependencyUpdate.split(',') : [],
|
|
platforms
|
|
});
|
|
}
|
|
//# sourceMappingURL=prebuildAsync.js.map
|