Fix runtime TSX JSX config #5

Merged
erik merged 1 commit from fix-runtime-tsx-tsconfig into main 2026-06-24 23:09:00 -05:00
Owner

Summary

  • Copy tsconfig.json into the runtime Docker image so tsx uses the configured jsxImportSource: hono/jsx.
  • Bump package version to 0.1.1 for the next web release image.

Root cause

The published 0.1.0 image runs source through node --import tsx, but the runtime image did not include tsconfig.json. Without it, TSX was transformed with the default React JSX runtime, causing production page renders to fail with ReferenceError: React is not defined.

Verification

  • npm run build
  • npm test
  • docker build -t slugkit-com:tsx-tsconfig-fix .
  • Ran the fixed image locally and verified GET /health and GET / both return HTTP 200.

Related homelab task: task-a2aa737d

## Summary - Copy `tsconfig.json` into the runtime Docker image so `tsx` uses the configured `jsxImportSource: hono/jsx`. - Bump package version to `0.1.1` for the next web release image. ## Root cause The published `0.1.0` image runs source through `node --import tsx`, but the runtime image did not include `tsconfig.json`. Without it, TSX was transformed with the default React JSX runtime, causing production page renders to fail with `ReferenceError: React is not defined`. ## Verification - `npm run build` - `npm test` - `docker build -t slugkit-com:tsx-tsconfig-fix .` - Ran the fixed image locally and verified `GET /health` and `GET /` both return HTTP 200. Related homelab task: task-a2aa737d
erik merged commit 52cbbeca21 into main 2026-06-24 23:09:00 -05:00
erik deleted branch fix-runtime-tsx-tsconfig 2026-06-24 23:09:00 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
erik/slugkit.com!5
No description provided.