fix(node/exports): export ./plugins in publishConfig for rolldown#6926
Merged
fix(node/exports): export ./plugins in publishConfig for rolldown#6926
./plugins in publishConfig for rolldown#6926Conversation
Contributor
How to use the Graphite Merge QueueAdd the label graphite: merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: hyf0 <[email protected]>
Copilot
AI
changed the title
[WIP] Fix missing plugins export in package.json
Fix: Export ./plugins in publishConfig for published packages
Nov 10, 2025
@rolldown/browser
@rolldown/debug
@rolldown/pluginutils
rolldown
@rolldown/binding-android-arm64
@rolldown/binding-darwin-arm64
@rolldown/binding-darwin-x64
@rolldown/binding-freebsd-x64
@rolldown/binding-linux-arm-gnueabihf
@rolldown/binding-linux-arm64-gnu
@rolldown/binding-linux-arm64-musl
@rolldown/binding-linux-x64-gnu
@rolldown/binding-linux-x64-musl
@rolldown/binding-openharmony-arm64
@rolldown/binding-wasm32-wasi
@rolldown/binding-win32-arm64-msvc
@rolldown/binding-win32-ia32-msvc
@rolldown/binding-win32-x64-msvc
commit: |
./plugins in publishConfig for rolldown
shulaoda
approved these changes
Nov 10, 2025
shulaoda
added a commit
that referenced
this pull request
Nov 10, 2025
## [1.0.0-beta.49] - 2025-11-10 ### 🐛 Bug Fixes - node/exports: export `./plugins` in `publishConfig` for `rolldown` (#6926) by @Copilot - add type of `meta.ast` for transform hook (#6919) by @IWANABETHATGUY ### ⚙️ Miscellaneous Tasks - deps: update dependency rust to v1.91.1 (#6927) by @renovate[bot] - deps: update dependency oxlint to v1.28.0 (#6924) by @renovate[bot] - update example with `meta.ast` + `meta.nativeString` (#6922) by @IWANABETHATGUY Co-authored-by: shulaoda <[email protected]>
Closed
shulaoda
added a commit
that referenced
this pull request
Jan 21, 2026
Adds `publint` validation for all published npm packages to ensure proper package.json exports and module configurations are maintained in CI. ## Changes - **Added publint dependency** (`publint@^0.3.16`) and `lint-publint` script that validates all 4 published packages: - `packages/rolldown` - `packages/browser` - `packages/debug` - `packages/pluginutils` - **Integrated into lint pipeline** via `justfile` `lint-node` target - **CI validation** in `node-validation` job: - Adds WASI target for browser package build - Builds all published packages using just commands - Runs `pnpm lint-publint` to validate all packages after build ## Usage ```bash pnpm lint-publint # Check all published packages just lint-node # Full Node.js validation including publint ``` Publint validates: - Export path correctness - Module field configurations - Type definition alignment - Package.json best practices <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Infra: setup `publint`</issue_title> > <issue_description>Refs: > > - https://publint.dev/docs/ > > Some thoughts: > > - All js packages should be verified by `publint` > - This process should part of `CI` > - Not sure if `publint` could catch #6926, but it's indeed a motivator. > </issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes #6932 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: shulaoda <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
./pluginsexport path is missing frompublishConfig.exports, causing imports to fail in published packages while working in development.Changes
"./plugins": "./dist/plugins-index.mjs"topublishConfig.exportsinpackages/rolldown/package.jsonContext
The development
exportsfield includes the./pluginspath, butpublishConfig.exportsoverrides this during publishing. This discrepancy breaks the following import in beta.48:The fix ensures both development and published packages expose the same export paths.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.