Commit c3c2a97
fix(ci): resolve three ut-install compatibility issues
1. cluster options.test.ts: accept root node_modules/egg as valid
framework path under flat hoisting (ut install puts workspace
packages at root node_modules instead of package-nested node_modules)
2. utils/import.ts: after import.meta.resolve() returns a path without
extension (ESM strict mode doesn't auto-add .js for legacy packages
without exports field), fall back to tryToResolveFromFile() to find
register.js etc. Fixes ImportResolveError for tsconfig-paths/register
3. ci.yml: remove leading ./ from --workspace ./tools/scripts
(ut does not accept ./ prefix in workspace paths)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6c2b11c commit c3c2a97
File tree
3 files changed
+19
-4
lines changed- .github/workflows
- packages
- cluster/test
- utils/src
3 files changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
362 | 369 | | |
363 | 370 | | |
364 | 371 | | |
| |||
379 | 386 | | |
380 | 387 | | |
381 | 388 | | |
382 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
383 | 396 | | |
384 | 397 | | |
385 | 398 | | |
| |||
0 commit comments