mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
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:
parent
a7969f6ebd
commit
5b0d2014ff
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
10
build.ts
10
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`;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue