Skip to content

Commit 77b02a3

Browse files
fix(appflow): fix deploy manifest for Capacitor 1.x apps (#4648)
1 parent 2617e00 commit 77b02a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/@ionic/cli/src/commands/deploy/manifest.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ export class DeployManifestCommand extends DeployCoreCommand {
124124
return;
125125
}
126126

127-
return JSON.parse(output);
127+
try {
128+
return JSON.parse(output);
129+
} catch(e) {
130+
debug('Could not get config from Capacitor CLI (probably old version)', e);
131+
return;
132+
}
128133
});
129134

130135
private getCapacitorConfig = lodash.memoize(async (): Promise<CapacitorConfig | undefined> => {

0 commit comments

Comments
 (0)