mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-22 13:55:34 +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
|
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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue