Update capacitor version
This commit is contained in:
parent
91155bce0a
commit
f3b3a86b32
610 changed files with 28718 additions and 7101 deletions
19
@capacitor/cli/dist/tasks/migrate-spm.js
vendored
Normal file
19
@capacitor/cli/dist/tasks/migrate-spm.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.migrateToSPM = void 0;
|
||||
const errors_1 = require("../errors");
|
||||
const log_1 = require("../log");
|
||||
const spm_1 = require("../util/spm");
|
||||
const update_1 = require("./update");
|
||||
async function migrateToSPM(config) {
|
||||
if ((await (0, spm_1.checkPackageManager)(config)) == 'SPM') {
|
||||
(0, errors_1.fatal)('Capacitor project is already using SPM, exiting.');
|
||||
}
|
||||
await (0, spm_1.extractSPMPackageDirectory)(config);
|
||||
await (0, spm_1.runCocoapodsDeintegrate)(config);
|
||||
await (0, spm_1.removeCocoapodsFiles)(config);
|
||||
await (0, spm_1.addInfoPlistDebugIfNeeded)(config);
|
||||
await (0, update_1.update)(config, 'ios', true);
|
||||
log_1.logger.info('To complete migration follow the manual steps at https://capacitorjs.com/docs/ios/spm#using-our-migration-tool');
|
||||
}
|
||||
exports.migrateToSPM = migrateToSPM;
|
Loading…
Add table
Add a link
Reference in a new issue