Commit 104cbb1
fix(@formatjs/intl-durationformat): declare @formatjs/bigdecimal dependency (#6468)
## Summary
- Add `@formatjs/bigdecimal` to `@formatjs/intl-durationformat`'s
`dependencies`. The polyfill bundle externalizes it (introduced in #6466
for sub-second rollup precision), but it was only declared in
BUILD.bazel — not in `package.json`. Consumers updating to 0.10.6 hit
`Rolldown failed to resolve import @formatjs/bigdecimal` at build time.
Fixes #6467.
## Why this slipped past CI
`tools/check-package-json.ts` exists for exactly this validation, but
the Bazel rule that wires it up (`package_json_test` in
`tools/index.bzl:410-439`) is commented out as a TODO. Will follow up
with a separate PR to re-enable it across all packages.
## Test plan
- [x] `bazel test
//packages/intl-durationformat:intl-durationformat_test`
- [x] Inspected
`bazel-bin/packages/intl-durationformat/pkg/package.json` —
`@formatjs/bigdecimal` now appears in `dependencies`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>1 parent 19952b1 commit 104cbb1
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments