(build): Switch to esbuild & transpile to commonjs.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user