Commit da9611f
fix(test): add subpath aliases for @elizaos/plugin-local-inference
Plugin Tests CI failure on app-hyperliquid perpetual-market.test.ts:
Error: ENOTDIR: not a directory, open
'/home/runner/work/eliza/eliza/plugins/plugin-local-inference/src/index.ts/runtime'
When the prior fix changed tsconfig.dist-paths.json to map
'@elizaos/plugin-local-inference' at the package's src/index.ts
(because the tsup build doesn't emit .d.ts files), the base alias
covered the bare specifier but vite's resolver was naively appending
the '/runtime' subpath to the mapped file. Vitest pipelines that
load packages/app-core/src/index.ts (which exports from
'@elizaos/plugin-local-inference/runtime') started erroring.
Added explicit subpath maps for /runtime, /routes, /services in
both tsconfig.dist-paths.json and packages/app-core/vitest.config.ts.
Each points at the corresponding src/<subpath>/index.ts (same shape
the package.json 'exports' object declares, just resolved to source
because tsup-emitted .d.ts files don't exist).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 432347b commit da9611f
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
308 | 317 | | |
309 | 318 | | |
310 | 319 | | |
| |||
0 commit comments