Skip to content

Allow legacy targets to be used when manually specified#457

Merged
shadaj merged 2 commits intomasterfrom
allow-legacy-targets
Jun 28, 2018
Merged

Allow legacy targets to be used when manually specified#457
shadaj merged 2 commits intomasterfrom
allow-legacy-targets

Conversation

@shadaj
Copy link
Copy Markdown
Contributor

@shadaj shadaj commented Jun 28, 2018

No description provided.

@shadaj shadaj self-assigned this Jun 28, 2018
let inferredTarget: TargetType = "" as TargetType;
if (flags.target) {
if (["swift", "typescript", "flow", "scala"].includes(flags.target)) {
if (["swift", "typescript", "ts", "flow", "scala", "typescript-legacy", "ts-legacy", "flow-legacy"].includes(flags.target)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should get rid of the ts aliases? It seems confusing to have multiple names for the same target.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was mostly thinking about compatibility with apollo-codegen here. Is it okay to drop target names now?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is a new CLI, I think we should favor clarity over backwards compatibility. Plus, I think in apollo-codegen we didn't have typescript-legacy but typescript-modern so it's breaking anyway?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'll drop ts.

@shadaj shadaj force-pushed the allow-legacy-targets branch from bc5e95e to a64f9ed Compare June 28, 2018 20:33
@shadaj shadaj force-pushed the allow-legacy-targets branch from a64f9ed to 95607f9 Compare June 28, 2018 20:50
@shadaj shadaj merged commit e2f78f7 into master Jun 28, 2018
@shadaj shadaj deleted the allow-legacy-targets branch June 28, 2018 21:03
@shadaj shadaj added the 🐞 bug label Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants