From 5c6a665b45b73a3dd18858a97f959d5badd6a734 Mon Sep 17 00:00:00 2001 From: flop Date: Tue, 19 May 2026 12:21:56 +0200 Subject: [PATCH] fix: move all to browser.ts again --- ts/index.html | 1 - ts/package.json | 4 +- ts/src/browser.ts | 505 +++++++++++++++++++++++++++++++++++++++++++- ts/src/themes.ts | 26 +++ ts/src/web.ts | 522 ---------------------------------------------- 5 files changed, 525 insertions(+), 533 deletions(-) create mode 100644 ts/src/themes.ts delete mode 100644 ts/src/web.ts diff --git a/ts/index.html b/ts/index.html index 0ed9c06..9a3bb41 100644 --- a/ts/index.html +++ b/ts/index.html @@ -95,7 +95,6 @@ - diff --git a/ts/package.json b/ts/package.json index dc17b66..1b8399c 100644 --- a/ts/package.json +++ b/ts/package.json @@ -3,9 +3,7 @@ "module": "src/index.ts", "type": "module", "scripts": { - "build_monoformat": "bun build src/browser.ts --target browser --outfile public/mono-display.js", - "build_web": "bun build src/web.ts --target browser --outfile public/web.js", - "build": "bun build_monoformat && bun build_web", + "build": "bun build src/browser.ts --target browser --outfile public/mono-display.js", "test": "bun test" }, "devDependencies": { diff --git a/ts/src/browser.ts b/ts/src/browser.ts index 51ee591..22f5c8a 100644 --- a/ts/src/browser.ts +++ b/ts/src/browser.ts @@ -1,9 +1,500 @@ -// browser.ts โ€” IIFE-style browser entry point -// Built by: bun build src/browser.ts --target browser --outfile public/mono-display.js -// Attaches everything to window.MonoDisplay so inline