Commit 7b94d07
committed
refactor(env): consolidate environment variable system with AsyncLocalStorage rewire
Complete rewrite of environment variable access patterns, consolidating 60+ individual env constant files into grouped getter modules with AsyncLocalStorage-based test rewiring.
Changes:
- Add env/rewire.ts with AsyncLocalStorage-based test isolation
- Add grouped env modules: github.ts, socket.ts, socket-cli.ts, socket-cli-shadow.ts, npm.ts, locale.ts, windows.ts, xdg.ts, temp-dir.ts, test.ts
- Convert all env constants to getter functions using getEnvValue()
- Delete 60+ individual env constant files
- Add comprehensive test suite in test/env/1 parent 6c913d5 commit 7b94d07
79 files changed
Lines changed: 922 additions & 745 deletions
File tree
- src/env
- test/env
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
| 7 | + | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments