Skip to content

Commit 2b50b0f

Browse files
fix: ship compiled tui-components entry with declarations (#73) (#74)
Exports ./tui-components from dist/ (JS + .d.ts) so consumers no longer type-check library sources. Adds a fresh-consumer tsc gate and bumps 0.12.1.
1 parent 919168d commit 2b50b0f

13 files changed

Lines changed: 636 additions & 26 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ jobs:
1616
bun-version: 1.3.14
1717
- run: bun install
1818
- run: bun test
19+
- run: bun run build
20+
- run: bun run check:tui-consumer

‎HISTORY.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
Entries from 0.12.0 onwards. Earlier releases are documented in the git history.
44

5+
## [0.12.1] - 2026-11-28
6+
7+
### Fixed
8+
- `./tui-components` now resolves to compiled `dist/tui-components/index.js`
9+
plus the `.d.ts` declarations, instead of exporting the raw TypeScript
10+
source. Consumers no longer type-check library internals, so the `paths`
11+
override in brain's `tsconfig.tui.json` can be removed.
12+
- Relative imports inside the TUI components use explicit `.js` extensions so
13+
the emitted declarations also resolve under `nodenext`.
14+
15+
### Added
16+
- `check:tui-consumer` gate: the fixture in `fixtures/tui-components-consumer/`
17+
imports the subpath from a fresh consumer and runs `tsc --noEmit` without a
18+
`paths` override.
19+
520
## [0.12.0] - 2026-11-28
621

722
### Added

‎dist/tui-components/index.d.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export { ProgressBar } from "./progress-bar";
2-
export type { ProgressBarProps } from "./progress-bar";
3-
export { TokenMeter } from "./token-meter";
4-
export type { TokenMeterProps } from "./token-meter";
5-
export { Spinner } from "./spinner";
6-
export type { SpinnerProps } from "./spinner";
7-
export { StatusPanel } from "./status-panel";
8-
export type { StatusPanelProps } from "./status-panel";
9-
export { StatusLine } from "./status-line";
10-
export type { StatusLineProps } from "./status-line";
1+
export { ProgressBar } from "./progress-bar.js";
2+
export type { ProgressBarProps } from "./progress-bar.js";
3+
export { TokenMeter } from "./token-meter.js";
4+
export type { TokenMeterProps } from "./token-meter.js";
5+
export { Spinner } from "./spinner.js";
6+
export type { SpinnerProps } from "./spinner.js";
7+
export { StatusPanel } from "./status-panel.js";
8+
export type { StatusPanelProps } from "./status-panel.js";
9+
export { StatusLine } from "./status-line.js";
10+
export type { StatusLineProps } from "./status-line.js";

0 commit comments

Comments
 (0)