log configuration file paths when loading

This commit is contained in:
Hazelnoot 2025-05-30 09:06:50 -04:00
parent 79ff245aa4
commit 1a414f1cfb

View file

@ -379,7 +379,10 @@ export function loadConfig(): Config {
process.env['MK_WARNED_ABOUT_CONFIG'] = '1';
}
const config = configFiles.map(path => fs.readFileSync(path, 'utf-8'))
const config = configFiles.map(path => {
console.log(`Reading configuration from ${path}`);
return fs.readFileSync(path, 'utf-8');
})
.map(contents => yaml.load(contents) as Source)
.reduce(
(acc: Source, cur: Source) => Object.assign(acc, cur),