Skip to content

Commit 77fc89e

Browse files
authored
Add back JSON as target (for Apollo Android) (#463)
1 parent 9cc628c commit 77fc89e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/apollo-cli/src/commands/codegen/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class Generate extends Command {
8181

8282
let inferredTarget: TargetType = "" as TargetType;
8383
if (flags.target) {
84-
if (["swift", "typescript", "flow", "scala", "typescript-legacy", "flow-legacy"].includes(flags.target)) {
84+
if (["json", "swift", "typescript", "flow", "scala", "typescript-legacy", "flow-legacy"].includes(flags.target)) {
8585
inferredTarget = flags.target as TargetType;
8686
} else {
8787
this.error(`Unsupported target: ${flags.target}`);

0 commit comments

Comments
 (0)