From 5b0d2014ff3112b14a58101ca50117bd2dffcca0 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 14 Apr 2024 15:48:20 -1000 Subject: [PATCH] fix(build): :ambulance: Update build file to not fail Build file was still depending on frontend being included with the project, which it is not anymore --- .vscode/settings.json | 2 +- build.ts | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3398560f..090ba8f9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,5 @@ "typescript.tsdk": "node_modules/typescript/lib", "jest.jestCommandLine": "/home/jessew/.bun/bin/bun test", "jest.rootPath": ".", - "conventionalCommits.scopes": ["database", "frontend"] + "conventionalCommits.scopes": ["database", "frontend", "build"] } diff --git a/build.ts b/build.ts index 79abee72..9881ea17 100644 --- a/build.ts +++ b/build.ts @@ -2,13 +2,6 @@ import { $ } from "bun"; import { rawRoutes } from "~routes"; -const feOnly = process.argv.includes("--frontend"); -const serverOnly = process.argv.includes("--server"); - -console.log("Building frontend..."); - -await $`bun fe:build`; - console.log(`Building at ${process.cwd()}`); await $`rm -rf dist && mkdir dist`; @@ -43,9 +36,6 @@ await $`mkdir -p dist/node_modules/@img`; await $`cp -r node_modules/@img/sharp-libvips-linux-* dist/node_modules/@img`; await $`cp -r node_modules/@img/sharp-linux-* dist/node_modules/@img`; -// Copy Nuxt build output to dist -await $`cp -r packages/frontend/.output dist/frontend`; - // Copy the Bee Movie script from pages await $`cp beemovie.txt dist/beemovie.txt`;