mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-22 14:35:31 +00:00
rollup: try to bundle Discord.js as well
This commit is contained in:
parent
0ab62ff4df
commit
280032fb1c
|
@ -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
|
||||
|
|
|
@ -9,7 +9,6 @@ loader;
|
|||
|
||||
export default {
|
||||
input: "src/server.ts",
|
||||
external: ["discord.js"],
|
||||
preserveEntrySignatures: false,
|
||||
output: {
|
||||
dir: "dist",
|
||||
|
|
Loading…
Reference in a new issue