diff --git a/src/config.ts b/src/config.ts index 1b1989d..8e1c2e6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -18,9 +18,11 @@ type Config = { }; import chalk from 'chalk'; -import uncheckedConfig from '../config.json' assert { type: 'json' }; +import fs from "fs"; import { warn } from '@/utils/log.js'; +const uncheckedConfig = JSON.parse(fs.readFileSync('./config.json', 'utf8')); + function warnWithPrefix(msg: string): void { warn(`[Config]: ${chalk.red(msg)}`); }