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

Major updates for vinxi-mdx #453

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Akkuma
Copy link
Contributor

@Akkuma 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
Copy link

codesandbox bot commented Jan 22, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vinxi-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 6:55pm

@autofix-troubleshooter
Copy link

Hi! I'm the autofix logoautofix.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:^",
Copy link
Contributor Author

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

Comment on lines +55 to +59
// @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'.
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Comment on lines +21 to +25
"exports": {
".": {
"require": "./src/index.ts",
"import": "./src/index.ts"
}
Copy link
Contributor Author

@Akkuma Akkuma Jan 22, 2025

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",
Copy link
Contributor Author

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.

Comment on lines +5 to +7
"target": "ES2022",
"module": "NodeNext",
"lib": ["ES2022"],
Copy link
Contributor Author

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.

Copy link

changeset-bot bot commented Jan 22, 2025

⚠️ No Changeset found

Latest commit: 7dc8eae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

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