mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(build): 🚑 Fix Lysand not starting due to missing sed command
This commit is contained in:
parent
cde106a5db
commit
7976e4b810
1
build.ts
1
build.ts
|
|
@ -27,6 +27,7 @@ await Bun.build({
|
|||
// Fix for wrong Bun file resolution, replaces node_modules with ./node_modules inside all dynamic imports
|
||||
// I apologize for this
|
||||
await $`sed -i 's|import("node_modules/|import("./node_modules/|g' dist/*.js`;
|
||||
await $`sed -i 's|import"node_modules/|import"./node_modules/|g' dist/**/*.js`;
|
||||
|
||||
// Copy Drizzle migrations to dist
|
||||
await $`cp -r drizzle dist/drizzle`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue