mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(build): 🐛 fuck you JSDom
This commit is contained in:
parent
74873fe924
commit
d884c8cff2
2
build.ts
2
build.ts
|
|
@ -28,6 +28,8 @@ await Bun.build({
|
||||||
// I apologize for this
|
// 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`;
|
||||||
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
|
// Copy Drizzle migrations to dist
|
||||||
await $`cp -r drizzle dist/drizzle`;
|
await $`cp -r drizzle dist/drizzle`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue