()
| 167 | // isomorphic (it is pulled into the browser-side type graph via the shared web |
| 168 | // shell's update card, which has no node types). |
| 169 | const ambientEnv = (): Record<string, string | undefined> => { |
| 170 | const globalProcess = ( |
| 171 | globalThis as { readonly process?: { readonly env?: Record<string, string | undefined> } } |
| 172 | ).process; |
| 173 | return globalProcess?.env ?? {}; |
| 174 | }; |
| 175 | |
| 176 | /** Reset the in-process registry cache. Test seam. */ |
| 177 | export const __resetDistTagsCache = (): void => { |