rollup: try to bundle Discord.js as well

This commit is contained in:
liushuyu 2022-09-16 18:04:28 -06:00
parent 0ab62ff4df
commit 280032fb1c
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
2 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,7 @@ yarn
yarn run build yarn run build
echo "[+] Installing non-bundle-able packages ..." 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" 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 yarn install

View file

@ -9,7 +9,6 @@ loader;
export default { export default {
input: "src/server.ts", input: "src/server.ts",
external: ["discord.js"],
preserveEntrySignatures: false, preserveEntrySignatures: false,
output: { output: {
dir: "dist", dir: "dist",