fix: 🐛 Hack a fix for incorrect bundler output

This commit is contained in:
Jesse Wierzbinski 2024-06-29 00:06:09 -10:00
parent 84bdb75d77
commit 03f5965755
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View file

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