diff --git a/bots/discord/scripts/build.ts b/bots/discord/scripts/build.ts index 47814d7..eb52745 100644 --- a/bots/discord/scripts/build.ts +++ b/bots/discord/scripts/build.ts @@ -12,7 +12,11 @@ await Bun.build({ outdir: './dist/src', target: 'bun', external: ['./config.js'], - minify: true, + minify: { + syntax: true, + whitespace: true, + identifiers: false, + }, sourcemap: 'external', }) diff --git a/bun.lockb b/bun.lockb index f4a6473..598bb47 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 43ead66..16ee13c 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ ], "patchedDependencies": { "@semantic-release/npm@12.0.1": "patches/@semantic-release%2Fnpm@12.0.1.patch", - "drizzle-kit@0.22.8": "patches/drizzle-kit@0.22.8.patch" + "drizzle-kit@0.22.8": "patches/drizzle-kit@0.22.8.patch", + "decancer@3.2.3": "patches/decancer@3.2.3.patch" } } diff --git a/patches/decancer@3.2.3.patch b/patches/decancer@3.2.3.patch new file mode 100644 index 0000000..a5408e4 --- /dev/null +++ b/patches/decancer@3.2.3.patch @@ -0,0 +1,13 @@ +diff --git a/src/lib.js b/src/lib.js +index de45d7dbe82975b09eff3742d0718accae2107fc..0575daa03dfabdd5c96928458ff4270cb8f7188a 100644 +--- a/src/lib.js ++++ b/src/lib.js +@@ -42,7 +42,7 @@ function isMusl() { + } + + function getBinding(name) { +- const path = join(__dirname, '..', `decancer.${name}.node`) ++ const path = join(import.meta.dir, '..', `decancer.${name}.node`) + + return require(existsSync(path) ? path : `@vierofernando/decancer-${name}`) + }