fix(build): 🚑 Update build file to not fail

Build file was still depending on frontend being included with the project, which it is not anymore
This commit is contained in:
Jesse Wierzbinski 2024-04-14 15:48:20 -10:00
parent a7969f6ebd
commit 5b0d2014ff
No known key found for this signature in database
2 changed files with 1 additions and 11 deletions

View file

@ -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"]
}

View file

@ -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`;