mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
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:
parent
4a01c68a50
commit
4013382170
@ -2,9 +2,9 @@ import * as fse from "fs-extra";
|
||||
|
||||
// Export dependencies for stubbing in tests.
|
||||
export const Deps = {
|
||||
readFile: fse.readFile,
|
||||
readFile: fse.readFileSync,
|
||||
writeFile: fse.writeFile,
|
||||
pathExists: fse.pathExists,
|
||||
pathExists: fse.pathExistsSync,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user