mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
fix: 🐛 Hack a fix for incorrect bundler output
This commit is contained in:
parent
84bdb75d77
commit
03f5965755
2 changed files with 6 additions and 0 deletions
2
build.ts
2
build.ts
|
|
@ -36,6 +36,8 @@ await $`sed -i 's|/temp/node_modules|./node_modules|g' dist/**/*.js`;
|
|||
// Replace 'export { toFilter, getLevelFilter, getConsoleSink };' to remove getConsoleSink
|
||||
// Because Bun duplicates the export and it causes a runtime error
|
||||
await $`sed -i 's|export { toFilter, getLevelFilter, getConsoleSink };|export { toFilter, getLevelFilter };|g' dist/**/*.js`;
|
||||
// Delete "var list;"
|
||||
await $`sed -i 's|var list;||g' dist/**/*.js`;
|
||||
|
||||
// Copy Drizzle migrations to dist
|
||||
await $`cp -r drizzle dist/drizzle`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue