From 280032fb1c738b60fb4d8e4f9a7bd39a6368cd96 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 16 Sep 2022 18:04:28 -0600 Subject: [PATCH] rollup: try to bundle Discord.js as well --- bundle.sh | 4 ++-- rollup.config.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bundle.sh b/bundle.sh index 82df217..9f421d1 100755 --- a/bundle.sh +++ b/bundle.sh @@ -7,7 +7,7 @@ yarn yarn run build echo "[+] Installing non-bundle-able packages ..." -DISCORD_JS="$(grep discord.js package.json | sed 's|,||')" +# DISCORD_JS="$(grep discord.js package.json | sed 's|,||')" cd "dist" -echo "{\"name\": \"citra-discord-bot\",\"license\": \"GPL-2.0+\",\"dependencies\": {${DISCORD_JS}}}" > package.json +echo "{\"name\": \"citra-discord-bot\",\"license\": \"GPL-2.0+\",\"dependencies\": {}}" > package.json yarn install diff --git a/rollup.config.js b/rollup.config.js index f1131e9..97771b9 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -9,7 +9,6 @@ loader; export default { input: "src/server.ts", - external: ["discord.js"], preserveEntrySignatures: false, output: { dir: "dist",