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: upgrade markdown-it types to v14 #3772

Merged
merged 5 commits into from
Apr 11, 2024
Merged

Conversation

meteorlxy
Copy link
Member

Upgrade @types/markdown-it and @mdit-vue/*

@meteorlxy meteorlxy requested a review from brc-dd April 10, 2024 02:38
],
"main": "",
- "types": "index.d.ts",
+ "types": "index.d.mts",
Copy link
Member Author

@meteorlxy meteorlxy Apr 10, 2024

Choose a reason for hiding this comment

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

Without this patch, tsc could pass but rollup-plugin-dts would throw an error.

This patch is to make rollup-plugin-dts work. Need more investigation for the root cause.

Copy link
Member

Choose a reason for hiding this comment

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

Need more investigation for the root cause.

resolvedCompilerOptions seem to be always empty here - https://github.com/Swatinem/rollup-plugin-dts/blob/3835bfa27125db7fa5a9d071f0b93ec513d2664b/src/index.ts#L196

If we force moduleResolution bundler there then it resolves to correct files, but then the transform breaks polka by converting export default function<T to declare functionexport_default<T

package.json Outdated Show resolved Hide resolved
@meteorlxy meteorlxy requested a review from brc-dd April 11, 2024 15:00
@brc-dd brc-dd merged commit d3dd4bc into main Apr 11, 2024
7 checks passed
@brc-dd brc-dd deleted the meteorlxy/mdit-types-upgrade branch April 11, 2024 15:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants