(config: GlobalConfig)
| 1037 | // the file's real mtime (Date.now() is recorded after the write) so the |
| 1038 | // freshness watcher skips re-reading our own write on its next tick. |
| 1039 | function writeThroughGlobalConfigCache(config: GlobalConfig): void { |
| 1040 | globalConfigCache = { config, mtime: Date.now() } |
| 1041 | lastReadFileStats = null |
| 1042 | } |
| 1043 | |
| 1044 | export function getGlobalConfig(): GlobalConfig { |
| 1045 | if (process.env.NODE_ENV === 'test') { |
no outgoing calls
no test coverage detected