From 03f59657550f020991eecbd89c0dfd57b64637ac Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sat, 29 Jun 2024 00:06:09 -1000 Subject: [PATCH] fix: :bug: Hack a fix for incorrect bundler output --- build.ts | 2 ++ docker-compose.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/build.ts b/build.ts index 7dc49a3e..9341dfdc 100644 --- a/build.ts +++ b/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`; diff --git a/docker-compose.yml b/docker-compose.yml index f8bbda8e..eaeba5dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,10 @@ services: - ./config.cfg:/etc/sonic.cfg - ./store/:/var/lib/sonic/store/ image: valeriansaliou/sonic:v1.4.9 + container_name: lysand-sonic + restart: unless-stopped + networks: + - lysand-net networks: lysand-net: \ No newline at end of file