Skip to content

Commit

Permalink
fix: deploy manifest error if no capacitor CLI (#4940)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jan 9, 2023
1 parent 4904337 commit f586a18
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/@ionic/cli/src/lib/integrations/capacitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,14 @@ export class Integration extends BaseIntegration<ProjectIntegration> {
});

getCapacitorConfig = lodash.memoize(async (): Promise<CapacitorConfig | undefined> => {
const cli = await this.getCapacitorCLIConfig();

if (cli) {
debug('Loaded Capacitor config!');
return cli.app.extConfig;
try {
const cli = await this.getCapacitorCLIConfig();
if (cli) {
debug('Loaded Capacitor config!');
return cli.app.extConfig;
}
} catch (ex) {
// ignore
}

// fallback to reading capacitor.config.json if it exists
Expand Down

0 comments on commit f586a18

Please sign in to comment.