aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/build.mjs
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-22 04:41:33 +0200
committerVendicated <vendicated@riseup.net>2022-10-22 04:42:54 +0200
commit44f6f71c3efd2e4e0f9dbd97ab4680ec76536052 (patch)
treecd2ad847833ff428e009ca55b50eabd57031443d /scripts/build/build.mjs
parent23d4cae1230bd60da2f0497ecac9d4a32a326f5b (diff)
downloadVencord-44f6f71c3efd2e4e0f9dbd97ab4680ec76536052.tar.gz
Vencord-44f6f71c3efd2e4e0f9dbd97ab4680ec76536052.tar.bz2
Vencord-44f6f71c3efd2e4e0f9dbd97ab4680ec76536052.zip
Monaco for Discord Desktop
Diffstat (limited to 'scripts/build/build.mjs')
-rwxr-xr-xscripts/build/build.mjs9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs
index f6304b1..1986369 100755
--- a/scripts/build/build.mjs
+++ b/scripts/build/build.mjs
@@ -18,7 +18,7 @@
*/
import esbuild from "esbuild";
-import { commonOpts, gitHashPlugin, globPlugins, makeAllPackagesExternalPlugin } from "./common.mjs";
+import { commonOpts, fileIncludePlugin, gitHashPlugin, globPlugins, makeAllPackagesExternalPlugin } from "./common.mjs";
/**
* @type {esbuild.BuildOptions}
@@ -30,7 +30,7 @@ const nodeCommonOpts = {
target: ["esnext"],
minify: true,
sourcemap: "linked",
- plugins: [makeAllPackagesExternalPlugin],
+ plugins: [...commonOpts.plugins, makeAllPackagesExternalPlugin],
};
await Promise.all([
@@ -55,7 +55,8 @@ await Promise.all([
external: ["plugins", "git-hash"],
plugins: [
globPlugins,
- gitHashPlugin
+ gitHashPlugin,
+ fileIncludePlugin
],
define: {
IS_WEB: "false"
@@ -65,6 +66,6 @@ await Promise.all([
console.error("Build failed");
console.error(err.message);
// make ci fail
- if (!watch)
+ if (!commonOpts.watch)
process.exitCode = 1;
});