mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
fix: 🐛 Correctly include bull-board UI package in dist
This commit is contained in:
parent
ecc7d1eee7
commit
fb84db3ea7
2 changed files with 6 additions and 2 deletions
6
build.ts
6
build.ts
|
|
@ -25,7 +25,7 @@ await Bun.build({
|
|||
target: "bun",
|
||||
splitting: true,
|
||||
minify: false,
|
||||
external: ["unzipit", "acorn"],
|
||||
external: ["unzipit", "acorn", "@bull-board/ui"],
|
||||
}).then((output) => {
|
||||
if (!output.success) {
|
||||
console.error(output.logs);
|
||||
|
|
@ -57,6 +57,10 @@ await $`cp -r node_modules/uzip-module dist/node_modules/uzip-module`;
|
|||
// Copy acorn to dist
|
||||
await $`cp -r node_modules/acorn dist/node_modules/acorn`;
|
||||
|
||||
// Copy bull-board to dist
|
||||
await $`mkdir -p dist/node_modules/@bull-board`;
|
||||
await $`cp -r node_modules/@bull-board/ui dist/node_modules/@bull-board/ui`;
|
||||
|
||||
// Copy the Bee Movie script from pages
|
||||
await $`cp beemovie.txt dist/beemovie.txt`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue