(config: GlobalConfig)
| 1057 | // the file's real mtime (Date.now() is recorded after the write) so the |
| 1058 | // freshness watcher skips re-reading our own write on its next tick. |
| 1059 | function writeThroughGlobalConfigCache(config: GlobalConfig): void { |
| 1060 | globalConfigCache = { config, mtime: Date.now() } |
| 1061 | lastReadFileStats = null |
| 1062 | } |
| 1063 | |
| 1064 | export function getGlobalConfig(): GlobalConfig { |
| 1065 | if (process.env.NODE_ENV === 'test') { |
no outgoing calls
no test coverage detected