-
-
Notifications
You must be signed in to change notification settings - Fork 7
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 TypeScript node16
and ESM
#12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other parts LGTM.
package.json
Outdated
"type-coverage": "^2.0.0", | ||
"typescript": "^4.0.0", | ||
"typescript": ">=4.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"typescript": ">=4.7", | |
"typescript": "^4.0.0", |
Can you revert this?
The style we use here is to have relaxed ranges except when they are really needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's truly needed in this case. It would allow TS 4.6 and older otherwise, which can't build this project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s not needed. The TypeScript dependency isn’t different from any other. Version ^4.0.0
will resolve to TypeScript 4.7 (at the moment of writing). If you run into issues, try deleting node_modules
and running npm install
.
Don't merge yet, please! |
You mean the range? I find both fine. |
Ah, I refer to the re-exporting of types, it isn't working as intended, figuring out a better solution. |
ahh, right, thanks for spotting that, I was mixing the conversations on two PRs! |
No worries! Tests pass, ready to be merged now. |
This comment has been minimized.
This comment has been minimized.
Thank you! |
Thanks, released! |
Closes GH-35. Related-to: syntax-tree/mdast-util-mdxjs-esm#3. Related-to: syntax-tree/unist-util-visit-parents#12. Reviewed-by: JounQin <admin@1stg.me> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
Initial checklist
Description of changes
See syntax-tree/mdast-util-mdxjs-esm#3.
Blocks syntax-tree/unist-util-visit#35.