Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): add gql.tada/ts-plugin to init/doctor #276

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

JoviDeCroock
Copy link
Member

Relates to #75

Summary

This PR adds a new minimum version for TypeScript to support sub-modules in a library for the LSP Plugins.

  • In doctor we will check for gql.tada/ts-plugin when TS is > 5.5 so folks are pushed to migrate
  • In init we automatically add gql.tada/ts-plugin when TS is > 5.5

Copy link

changeset-bot bot commented Apr 28, 2024

🦋 Changeset detected

Latest commit: 0379cd9

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

)
);
const supportsEmbeddedLsp = semiverComply(
typeScriptVersion[1],
Copy link
Member

Choose a reason for hiding this comment

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

Since TS is now a peer dependency, we should be able to read this from require('typescript').version. Probably have to try-catch it with a new error, but that should also just give us the raw version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can do that in a follow up

@JoviDeCroock JoviDeCroock merged commit 578e7d4 into lsp-alias Apr 28, 2024
3 checks passed
@JoviDeCroock JoviDeCroock deleted the add-to-doctor-and-init branch April 28, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants