chore: add exports fields to tooling packages#6080
Merged
Conversation
Add "exports" field to 5 packages that were missing it: - babel-plugin-formatjs - @formatjs/cli-lib (also adds missing "types" field) - eslint-plugin-formatjs - @formatjs/ts-transformer - @formatjs/vite-plugin This improves compatibility with modern bundlers and ESM resolution. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Mark items 9 and 11 as done/won't-fix, and update vite-plugin entry to reflect the exports field addition in #6080. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
3 tasks
dzbarsky
pushed a commit
to dzbarsky/formatjs
that referenced
this pull request
Apr 26, 2026
…port (formatjs#6437) ## Summary - Add `./ts-jest-integration.js` to the `exports` field in `package.json` - Add `ts-jest-integration.ts` as a rolldown entry point in `BUILD.bazel` so it gets bundled with `.js`, `.d.ts`, and `.js.map` into the published package - Update jest integration test config to use `.js` extension in the import path This was a regression from formatjs#6080 which added an `exports` field to `package.json` but only included `.` — blocking the `ts-jest-integration` deep import that ts-jest users rely on. Closes formatjs#6433 ## Test plan - [x] `bazel test //packages/ts-transformer:package_exports_test` — validates all exports resolve to real files - [x] `bazel test //packages/ts-transformer:unit_test` — 27 tests pass - [x] All pre-commit hooks pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <[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.
Summary
"exports": { ".": "./index.js" }to 5 tooling packages that were missing it:babel-plugin-formatjs,@formatjs/cli-lib,eslint-plugin-formatjs,@formatjs/ts-transformer,@formatjs/vite-plugin"types": "index.d.ts"to@formatjs/cli-libTest plan
pnpm install— lockfile unchangedbazel teston all 5 affected packages — all passpnpm t— full suite (484 tests) passes🤖 Generated with Claude Code