mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix incorrect building
This commit is contained in:
parent
0541776d3d
commit
9c8f88ae8d
8
build.ts
8
build.ts
|
|
@ -17,13 +17,17 @@ await Bun.build({
|
||||||
entrypoints: [
|
entrypoints: [
|
||||||
process.cwd() + "/index.ts",
|
process.cwd() + "/index.ts",
|
||||||
process.cwd() + "/prisma.ts",
|
process.cwd() + "/prisma.ts",
|
||||||
process.cwd() + "./cli.ts",
|
// process.cwd() + "/cli.ts",
|
||||||
],
|
],
|
||||||
outdir: process.cwd() + "/dist",
|
outdir: process.cwd() + "/dist",
|
||||||
target: "bun",
|
target: "bun",
|
||||||
splitting: true,
|
splitting: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
external: ["bullmq", "@prisma/client"],
|
external: ["bullmq"],
|
||||||
|
}).then(output => {
|
||||||
|
if (!output.success) {
|
||||||
|
console.log(output.logs);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create pages directory
|
// Create pages directory
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
|
import { ConfigManager } from "config-manager";
|
||||||
|
|
||||||
// Proxies all `bunx prisma` commands with an environment variable
|
// Proxies all `bunx prisma` commands with an environment variable
|
||||||
|
const config = await new ConfigManager({}).getConfig();
|
||||||
import { getConfig } from "~classes/configmanager";
|
|
||||||
|
|
||||||
const config = getConfig();
|
|
||||||
|
|
||||||
process.stdout.write(
|
process.stdout.write(
|
||||||
`postgresql://${config.database.username}:${config.database.password}@${config.database.host}:${config.database.port}/${config.database.database}\n`
|
`postgresql://${config.database.username}:${config.database.password}@${config.database.host}:${config.database.port}/${config.database.database}\n`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue