summaryrefslogtreecommitdiffhomepage
path: root/packages/app/script
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-28 06:41:54 -0600
committerAdam <[email protected]>2025-12-28 06:41:59 -0600
commit82a876da4de0074ca3d4d6af9a31dc6e8cf20c3a (patch)
treee83d71404c832ff59b351540f4a56eecf2b97b36 /packages/app/script
parent69a15ae9c1e6737728649cebf3a4009d9ae8edd3 (diff)
downloadopencode-82a876da4de0074ca3d4d6af9a31dc6e8cf20c3a.tar.gz
opencode-82a876da4de0074ca3d4d6af9a31dc6e8cf20c3a.zip
chore: cleanup
Diffstat (limited to 'packages/app/script')
-rw-r--r--packages/app/script/inject-theme-preload.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/app/script/inject-theme-preload.ts b/packages/app/script/inject-theme-preload.ts
deleted file mode 100644
index 511ab7a3b..000000000
--- a/packages/app/script/inject-theme-preload.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Injects the theme preload script into index.html.
- * Run this as part of the build process.
- */
-
-import { generatePreloadScript } from "@opencode-ai/ui/theme"
-
-const htmlPath = new URL("../index.html", import.meta.url).pathname
-const html = await Bun.file(htmlPath).text()
-
-const script = generatePreloadScript()
-const injectedHtml = html.replace(
- /<script id="oc-theme-preload-script">\s*\/\* THEME_PRELOAD_SCRIPT \*\/\s*<\/script>/,
- `<script id="oc-theme-preload-script">${script}</script>`,
-)
-
-await Bun.write(htmlPath, injectedHtml)
-console.log("Injected theme preload script into index.html")