Commit aabc82b
authored
fix(build): resolve @stacksjs/actions subpath when compiling the CLI (#2247)
`"@stacksjs/*": ["./*/src"]` binds the wildcard to the whole remainder, so
`@stacksjs/actions/blog` looked for `./actions/blog/src`, missed, and fell back
to `actions/dist/blog.js` — which nothing builds before the compile job:
error: Could not resolve: "@stacksjs/actions/blog"
at core/buddy/src/production-server.ts:370:53
error: script "compile:linux-x64" exited with code 1
This is the same entry I added in #2223 and then removed, because it appeared
to turn `core/config` and `core/env` tests red. It did not. That was the
load-order race in the config overrides fallback, fixed in #2246 — the entry
perturbed module resolution enough to expose it, which is also how a package.json
dependency in #2244 managed to "break" the same two packages.
With #2246 landed, `core/config` + `core/env` pass locally with this applied
(322 tests), and the CLI bundles 1933 modules and links.
Closes #22421 parent 0e06ef3 commit aabc82b
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
0 commit comments