(build): Switch to esbuild & transpile to commonjs.

This commit is contained in:
2026-06-13 00:58:17 +00:00
parent 38ddcde06c
commit 6f10dedc12
7 changed files with 404 additions and 280 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
import { Client } from 'discord.js';
import fs from 'fs';
import path, { dirname } from 'path';
import { fileURLToPath, pathToFileURL } from 'url';
import path from 'path';
import { pathToFileURL } from 'url';
import { Handler } from '../types';
const __dirname = dirname(fileURLToPath(import.meta.url));
const ROOT_DIR = path.resolve(__dirname, '..');
export async function loadHandlersFrom(dir: string, handlerArray: Handler[]): Promise<void> {