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

fix: import ts from typescript instead of typescript/lib/tsserver #43

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

mattpocock
Copy link
Contributor

@mattpocock mattpocock commented Jun 8, 2024

Changed this to .js instead of 'typescript', as this will work better with versions of TypeScript before 5.3.

Copy link

netlify bot commented Jun 8, 2024

Deploy Preview for twoslash ready!

Name Link
🔨 Latest commit d193490
🔍 Latest deploy log https://app.netlify.com/sites/twoslash/deploys/6665428c82ab2c0008f6001a
😎 Deploy Preview https://deploy-preview-43--twoslash.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jakebailey
Copy link

Are any tsserverlibrary specific exports even used? When I looked at the code from the last PR, it sure seemed like they could just use the regular import.

@antfu antfu changed the title Fixed import of typescript/lib/tsserver fix: import ts from typescript instead of typescript/lib/tsserver Jun 9, 2024
@antfu
Copy link
Member

antfu commented Jun 9, 2024

Right, we probably don't need tsserver. It is like that because it was how it was written in TypeScript Website repo. I think we should be good to use typescript even before 5.3

@antfu antfu merged commit 934fa2c into twoslashes:main Jun 9, 2024
9 checks passed
@mattpocock
Copy link
Contributor Author

Confirmed that this unblocked me 👍

@jakebailey
Copy link

I don't really understand how this was needed at the end of the day, given TS is CJS and so this import should be fine, but at least this import wasn't even needed.

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.

3 participants