Skip to content

build: emit JS with tsc and move gates out of build - #77

Merged
TheGreatAxios merged 1 commit into
cl-9367-replace-generated-react-ui-exports-with-a-hand-writtenfrom
cl-9368-react-ui-build-only-on-pack-emit-js-with-tsc
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9367-replace-generated-react-ui-exports-with-a-hand-writtenfrom
cl-9368-react-ui-build-only-on-pack-emit-js-with-tsc

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes CL-9368

bun run build now produces only the published output: clean, tsc -p tsconfig.build.json (JS and .d.ts in one pass), Tailwind CSS. SWC, .swcrc, @swc/cli and @swc/core are removed. contrast-test and dep-guard move out of build and run in CI after it. prepack: bun run build is unchanged; there is no install-time hook.

  • Build before: clean && build:js (swc) && build:types (tsc) && build:css && contrast-test && dep-guard
  • Build after: clean && build:js (tsc) && build:css

npm pack --dry-run lists the same 255 files before and after. The emitted JS differs only in formatting, and "use client" directives are kept (dep-guard passes against dist/).

ARCHITECTURE.md, IMPLEMENTATION.md, the CONTRIBUTING.md build line and the 0.2.0 CHANGELOG entry describe the new chain.

Stacked on #76, which already removed generate; pnpm-lock.yaml is removed by #61 below.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9368-react-ui-build-only-on-pack-emit-js-with-tsc branch 2 times, most recently from d1f03a2 to 1082808 Compare September 26, 2026 02:34
Drop SWC; one tsc pass writes dist JS and declarations. contrast-test
and dep-guard run in CI after the build. prepack still runs the build.
Remove the stale pnpm-lock.yaml; the repo uses bun.

Closes CL-9368
@TheGreatAxios
TheGreatAxios force-pushed the cl-9368-react-ui-build-only-on-pack-emit-js-with-tsc branch from 1082808 to 8193cfb Compare September 26, 2026 03:07
@TheGreatAxios
TheGreatAxios changed the base branch from release-0.2.0 to cl-9367-replace-generated-react-ui-exports-with-a-hand-written September 26, 2026 03:07
@TheGreatAxios
TheGreatAxios added this pull request to stack #74 September 26, 2026 03:12
@TheGreatAxios
TheGreatAxios merged commit 81e78a9 into main Sep 27, 2026
1 check passed
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.

1 participant