mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
(DEBUG) Add cwd to more fields
This commit is contained in:
parent
e328b730ab
commit
61f2ce1a2b
10
build.ts
10
build.ts
|
|
@ -10,8 +10,14 @@ console.log(`Building at ${process.cwd()}`);
|
|||
|
||||
await rm("./dist", { recursive: true });
|
||||
|
||||
await mkdir(process.cwd() + "/dist");
|
||||
|
||||
await Bun.build({
|
||||
entrypoints: ["./index.ts", "./prisma.ts", "./cli.ts"],
|
||||
entrypoints: [
|
||||
process.cwd() + "/index.ts",
|
||||
process.cwd() + "/prisma.ts",
|
||||
process.cwd() + "./cli.ts",
|
||||
],
|
||||
outdir: process.cwd() + "/dist",
|
||||
target: "bun",
|
||||
splitting: true,
|
||||
|
|
@ -26,3 +32,5 @@ await mkdir(process.cwd() + "/dist/pages");
|
|||
await cp(process.cwd() + "/pages/dist", process.cwd() + "/dist/pages/", {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
console.log(`Built!`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue