From d884c8cff20a0ee63e48fbedd3bab4c40e2f5c33 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 2 May 2024 14:25:20 -1000 Subject: [PATCH] fix(build): :bug: fuck you JSDom --- build.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.ts b/build.ts index e92c9d2e..35036bb9 100644 --- a/build.ts +++ b/build.ts @@ -28,6 +28,8 @@ await Bun.build({ // 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`; +// Replace /temp/node_modules with ./node_modules +await $`sed -i 's|/temp/node_modules|./node_modules|g' dist/**/*.js`; // Copy Drizzle migrations to dist await $`cp -r drizzle dist/drizzle`;