Commit 2359d33
committed
refactor(config): implement optional external alias detection for TypeScript
The repository is now self-contained by default, with external repo aliases
only used when detected. This matches the pattern already used by esbuild
via get-local-package-aliases.mjs.
Changes:
- Created .config/tsconfig.check.json (self-contained, no external paths)
- Created .config/tsconfig.external-aliases.json (extends check config with external paths)
- Updated packages/cli/.config/tsconfig.check.json to remove external paths
- Modified scripts/test.mjs to detect external repos and conditionally use external-aliases config
The build automatically detects if ../socket-lib or ../socket-registry exist and uses
the appropriate TypeScript configuration. This allows the repo to work standalone
while supporting local cross-repo development when external repos are present.1 parent dffc522 commit 2359d33
File tree
4 files changed
+59
-10
lines changed- .config
- packages/cli/.config
- scripts
4 files changed
+59
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 4 | | |
13 | 5 | | |
14 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
40 | 61 | | |
41 | 62 | | |
42 | 63 | | |
| |||
167 | 188 | | |
168 | 189 | | |
169 | 190 | | |
| 191 | + | |
170 | 192 | | |
171 | 193 | | |
172 | 194 | | |
173 | | - | |
| 195 | + | |
174 | 196 | | |
175 | 197 | | |
176 | 198 | | |
| |||
179 | 201 | | |
180 | 202 | | |
181 | 203 | | |
182 | | - | |
| 204 | + | |
183 | 205 | | |
184 | 206 | | |
185 | 207 | | |
| |||
0 commit comments