config: replace fse read functions with sync variants

I need to be able to read the config at module load time, which makes
async difficult if not impossible.

This will make read config operations synchronous, which is fine. The
file is tiny and seldom read.
This commit is contained in:
Jordi Gutiérrez Hermoso 2024-07-17 13:39:03 -04:00 committed by jordigh
parent 4a01c68a50
commit 4013382170

View File

@ -2,9 +2,9 @@ import * as fse from "fs-extra";
// Export dependencies for stubbing in tests. // Export dependencies for stubbing in tests.
export const Deps = { export const Deps = {
readFile: fse.readFile, readFile: fse.readFileSync,
writeFile: fse.writeFile, writeFile: fse.writeFile,
pathExists: fse.pathExists, pathExists: fse.pathExistsSync,
}; };
/** /**