fix(build): 🚑 Fix Lysand not starting due to missing sed command

This commit is contained in:
Jesse Wierzbinski 2024-04-24 18:43:53 -10:00
parent cde106a5db
commit 7976e4b810
No known key found for this signature in database

View file

@ -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`;