Bundle tui3 into dist/ and run the bundle

Running the TypeScript sources makes Bun compile and keep hundreds of
vendored modules, which cost 110-130 MB at startup. scripts/build.ts
bundles bin.ts and OpenTUI's syntax-highlighting worker into dist/;
bun install builds it, bun run build rebuilds it, and the tui3 bin runs
it. bun run dev still runs the sources.
This commit is contained in:
callumalpass committed 2026-11-03 00:23:45 +11:00
1 parent 42189808f3
commit f54ea6ad42
4 files changed
+28 -3

No files matched your search

+3 -1
View File
@@ -8,10 +8,12 @@ Built with Bun and [OpenTUI](https://github.com/anomalyco/opentui) (React).
```sh
git clone --recurse-submodules <this repo> && cd tui3
bun install # also links the pinned T3 Code packages into node_modules
bun install # also links the pinned T3 Code packages into node_modules and builds dist/
bun link # optional: puts `tui3` on your PATH
```
`tui3` runs the bundle in `dist/`, which uses over 100 MB less memory than the sources. After pulling changes, run `bun run build` (or `bun install`) to rebuild it; `bun run dev` runs the sources directly.
## Use
```sh