Compare commits

...

2 commits

Author SHA1 Message Date
Take-John 2d7bc2b27e
Merge 5b2bcdda3c into 830c9c2ecd 2024-04-03 22:41:46 +09:00
takejohn 5b2bcdda3c fsでconfigを読み込み 2024-04-03 22:41:38 +09:00

View file

@ -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)}`);
}