From 315b87eefee3e3ced46b9481f2322d848f238891 Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Wed, 28 Jan 2026 00:56:01 +0000 Subject: [PATCH] Update build scripts to copy WASM file - package.json: build script now copies ghostty-vt.wasm after bundling - Add copy-wasm script for standalone WASM copy - Makefile: bundle-watch copies WASM before watching - Makefile: bundle-clean removes WASM file too - Fix bun.lockb -> bun.lock in clean target --- Makefile | 3 ++- package.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c331507..f3377d8 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,8 @@ bundle: node_modules bun run build bundle-watch: node_modules + bun run copy-wasm bun run watch bundle-clean: - rm -rf node_modules bun.lockb src/textual_webterm/static/js/terminal.js + rm -rf node_modules bun.lock src/textual_webterm/static/js/terminal.js src/textual_webterm/static/js/ghostty-vt.wasm diff --git a/package.json b/package.json index 979baba..d4ab7d7 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "typescript": "^5.7.0" }, "scripts": { - "build": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --minify --target=browser", - "watch": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --watch --target=browser" + "build": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --minify --target=browser && cp node_modules/ghostty-web/ghostty-vt.wasm src/textual_webterm/static/js/", + "watch": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --watch --target=browser", + "copy-wasm": "cp node_modules/ghostty-web/ghostty-vt.wasm src/textual_webterm/static/js/" } }