Skip to content

Commit f586a18

Browse files
authored
fix: deploy manifest error if no capacitor CLI (#4940)
1 parent 4904337 commit f586a18

File tree

1 file changed

+8
-5
lines changed
  • packages/@ionic/cli/src/lib/integrations/capacitor

1 file changed

+8
-5
lines changed

packages/@ionic/cli/src/lib/integrations/capacitor/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,14 @@ export class Integration extends BaseIntegration<ProjectIntegration> {
227227
});
228228

229229
getCapacitorConfig = lodash.memoize(async (): Promise<CapacitorConfig | undefined> => {
230-
const cli = await this.getCapacitorCLIConfig();
231-
232-
if (cli) {
233-
debug('Loaded Capacitor config!');
234-
return cli.app.extConfig;
230+
try {
231+
const cli = await this.getCapacitorCLIConfig();
232+
if (cli) {
233+
debug('Loaded Capacitor config!');
234+
return cli.app.extConfig;
235+
}
236+
} catch (ex) {
237+
// ignore
235238
}
236239

237240
// fallback to reading capacitor.config.json if it exists

0 commit comments

Comments
 (0)