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:
1 parent
42189808f3
commit
f54ea6ad42
4 files changed
+28
-3
No files matched your search
+3
-2
@@ -4,14 +4,15 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"tui3": "./src/bin.ts"
|
||||
"tui3": "./dist/bin.js"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "bun run src/bin.ts",
|
||||
"build": "bun run scripts/build.ts",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "biome lint src test",
|
||||
"test": "bun test",
|
||||
"postinstall": "bun run scripts/link-vendor.ts"
|
||||
"postinstall": "bun run scripts/link-vendor.ts && bun run scripts/build.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@opentui/core": "0.2.7",
|
||||
|
||||
Reference in new issue
Block a user