(config: GlobalConfig)
| 1111 | // the file's real mtime (Date.now() is recorded after the write) so the |
| 1112 | // freshness watcher skips re-reading our own write on its next tick. |
| 1113 | function writeThroughGlobalConfigCache(config: GlobalConfig): void { |
| 1114 | globalConfigCache = { config, mtime: Date.now() } |
| 1115 | lastReadFileStats = null |
| 1116 | } |
| 1117 | |
| 1118 | export function getGlobalConfig(): GlobalConfig { |
| 1119 | if (process.env.NODE_ENV === 'test') { |
no outgoing calls
no test coverage detected