mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 15:38:00 +00:00
Compare commits
1 commit
2d7bc2b27e
...
7fe378ca50
Author | SHA1 | Date | |
---|---|---|---|
7fe378ca50 |
|
@ -18,11 +18,9 @@ type Config = {
|
|||
};
|
||||
|
||||
import chalk from 'chalk';
|
||||
import fs from "fs";
|
||||
import uncheckedConfig from '../config.json' assert { type: 'json' };
|
||||
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)}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue