mirror of
https://github.com/syuilo/ai.git
synced 2024-11-23 13:38:00 +00:00
Compare commits
2 commits
7fe378ca50
...
2d7bc2b27e
Author | SHA1 | Date | |
---|---|---|---|
2d7bc2b27e | |||
5b2bcdda3c |
|
@ -18,9 +18,11 @@ type Config = {
|
||||||
};
|
};
|
||||||
|
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import uncheckedConfig from '../config.json' assert { type: 'json' };
|
import fs from "fs";
|
||||||
import { warn } from '@/utils/log.js';
|
import { warn } from '@/utils/log.js';
|
||||||
|
|
||||||
|
const uncheckedConfig = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
|
||||||
|
|
||||||
function warnWithPrefix(msg: string): void {
|
function warnWithPrefix(msg: string): void {
|
||||||
warn(`[Config]: ${chalk.red(msg)}`);
|
warn(`[Config]: ${chalk.red(msg)}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue