From a3d28e9e737837020c6f0bf8a2f7bb629b1d7be5 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Sat, 4 Jun 2022 15:09:35 +0800 Subject: [PATCH] bundle. --- commands.ts | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/commands.ts b/commands.ts index 6cf7ca9..3784650 100644 --- a/commands.ts +++ b/commands.ts @@ -1,6 +1,5 @@ import type { Client, Message } from 'discord.js'; import fetch from 'node-fetch'; -import { POLYCAT_CHANNEL_ID } from './constants'; type Commands = { [cmd: string]: (c: Client, e: Message) => void | Promise; diff --git a/package.json b/package.json index 62d7a6c..c325e79 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "dev": "NODE_ENV=development nodemon --watch index.ts --exec esno index.ts", - "build": "esbuild index.ts --format=cjs --platform=node --target=node17 --minify --bundle --sourcemap --external:./node_modules/* --outdir=dist", + "build": "esbuild index.ts --format=cjs --platform=node --target=node17 --minify --bundle --sourcemap --external:./node_modules/discord.js --outdir=dist", "lint": "eslint **/*.ts" }, "dependencies": {