mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor: ♻️ Don't use Bun global
This commit is contained in:
parent
d55668d529
commit
25ea870f71
15 changed files with 32 additions and 19 deletions
3
build.ts
3
build.ts
|
|
@ -1,5 +1,6 @@
|
|||
import { readdir } from "node:fs/promises";
|
||||
import { $ } from "bun";
|
||||
import { build } from "bun";
|
||||
import ora from "ora";
|
||||
import { routes } from "~/routes";
|
||||
|
||||
|
|
@ -10,7 +11,7 @@ await $`rm -rf dist && mkdir dist`;
|
|||
// Get all directories under the plugins/ directory
|
||||
const pluginDirs = await readdir("plugins", { withFileTypes: true });
|
||||
|
||||
await Bun.build({
|
||||
await build({
|
||||
entrypoints: [
|
||||
"index.ts",
|
||||
"cli/index.ts",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue