Remove outdated documentation files for companies and migration guide; implement server session management features including server assignment and session status updates; enhance database schema for servers and server sessions with new fields and validation; add auto-assign functionality for unassigned sessions.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { $, Glob } from "bun";
|
||||
import path from "path";
|
||||
import { existsSync } from "fs";
|
||||
|
||||
// Cross-platform directory removal
|
||||
if (process.platform === "win32") {
|
||||
// await $`cmd /c "rmdir /s /q dist"`;
|
||||
} else {
|
||||
await $`rm -rf ./dist`;
|
||||
}
|
||||
|
||||
// await Bun.build({
|
||||
// entrypoints: ["./src/index.ts"],
|
||||
// env: "inline",
|
||||
// target: "bun",
|
||||
// outdir: `./dist`,
|
||||
// minify: true,
|
||||
// });
|
||||
|
||||
// Build all files in src
|
||||
for (const entrypoint of new Glob("./src/**/*.ts").scanSync()) {
|
||||
const parts = entrypoint.split(path.sep);
|
||||
const entrypointPath = path.join(...parts.slice(2, -1));
|
||||
|
||||
await Bun.build({
|
||||
entrypoints: [entrypoint],
|
||||
target: "bun",
|
||||
outdir: path.join("dist", entrypointPath),
|
||||
env: "inline",
|
||||
minify: true,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user