-
Notifications
You must be signed in to change notification settings - Fork 89
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
Major updates for vinxi-mdx #453
base: main
Are you sure you want to change the base?
Conversation
Akkuma
commented
Jan 22, 2025
- Latest TS
- Dist no longer needed
- ESM build properly utilized
- Types working
* Latest TS * Dist no longer needed * ESM build properly utilized * Types working
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi! I'm the autofix.ci troubleshooter bot. It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃 |
@@ -12,7 +12,7 @@ | |||
"@mdx-js/react": "^2.3.0", | |||
"@mdx-js/rollup": "^2.3.0", | |||
"@picocss/pico": "^1.5.10", | |||
"@vinxi/plugin-mdx": "3.7.2", | |||
"@vinxi/plugin-mdx": "workspace:^", |
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.
Utilizes the current workspace rather than a published version
// @ts-ignore "Property '_resolveFilename' does not exist on type 'typeof Module'." | ||
Module._resolveFilename(moduleId, { | ||
id: fromFile, | ||
filename: fromFile, | ||
// @ts-ignore "Property '_nodeModulePaths' does not exist on type 'typeof Module'. |
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'm not familiar enough with what this was trying to do outside of being utilized for openapi docs that was not possible through some other public function
@@ -1 +1 @@ | |||
!dist | |||
dist |
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.
dist
is no longer needed
"exports": { | ||
".": { | ||
"require": "./src/index.ts", | ||
"import": "./src/index.ts" | ||
} |
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.
By not including this esm was never being utilized in environments that support it.
This is changed in prepublishOnly
to point at the /dist
and then back to /src
postpublish
@@ -31,13 +38,14 @@ | |||
"vfile": "^5.0.0" | |||
}, | |||
"devDependencies": { | |||
"@mdx-js/mdx": "2.3.0", | |||
"@mdx-js/mdx": "3.1.0", |
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.
v3 has been around since the end of 2023, so I think it is safe to use the latest.
"target": "ES2022", | ||
"module": "NodeNext", | ||
"lib": ["ES2022"], |
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.
There's no reason to support ES2015 when anything that old is EOL.
|