Error Fix and Console Logging format.
This commit is contained in:
@@ -118,6 +118,12 @@ function loadConfig() {
|
||||
|
||||
const json = fs.readFileSync(configPath, 'utf8');
|
||||
const config = JSON.parse(json);
|
||||
Object.defineProperty(config, '__configPath', {
|
||||
value: configPath,
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
validateConfig(config);
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user