From aca753996b53e7bab15abdf499dcb22b75da8563 Mon Sep 17 00:00:00 2001 From: "nekomimi.pet" Date: Sat, 25 Jul 2026 10:59:02 -0400 Subject: [PATCH] run the tailwind css step in the root build so the editor stylesheet is generated --- apps/main-app/build.ts | 5 +---- package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/main-app/build.ts b/apps/main-app/build.ts index d961638..a92a508 100644 --- a/apps/main-app/build.ts +++ b/apps/main-app/build.ts @@ -199,9 +199,6 @@ await Bun.write(`${distDir}/admin/index.html`, adminHtmlContent) // Write wisp.css to public directory so it can be served by static plugin await Bun.write(`${publicDir}/wisp.css`, wispCss) -// The built HTML references /dist/styles.css, which is served from distDir. Without this -// the editor and admin pages load unstyled. -await Bun.write(`${distDir}/styles.css`, wispCss) console.log('✅ Build successful!') console.log(`📦 Generated ${editorResult.outputs.length + adminResult.outputs.length + 4} file(s):`) @@ -217,4 +214,4 @@ for (const output of adminResult.outputs) { } console.log(`\n CSS:`) console.log(` - ${publicDir}/wisp.css`) -console.log(` - ${distDir}/styles.css`) +console.log(` - ${distDir}/wisp.css`) diff --git a/package.json b/package.json index f31d59b..bc17568 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dev:infra": "./scripts/dev-infra.sh up", "dev:infra:down": "./scripts/dev-infra.sh down", "start": "bun run apps/main-app/src/index.ts", - "build": "cd apps/main-app && bun run build.ts", + "build": "cd apps/main-app && bun run build", "build:hosting": "cd apps/hosting-service && npm run build", "build:all": "bun run build && npm run build:hosting", "check": "bun tsc --noEmit", -- 2.54.0