Commit ebab926
committed
Fix missing twoslash types silently shipping to production
Two fixes for the post-#729 regression where the live aspire.dev site
shipped TS2307 'Cannot find module ./.modules/aspire.js' errors in
rendered HTML:
1. ec.config.mjs: throw instead of warn when .twoslash-types/aspire.d.ts
is missing. The previous soft fallback let astro build produce broken
HTML whenever the deploy pipeline didn't run `pnpm twoslash-types`
first.
2. frontend.esproj: add a BuildFrontendForPublish target that runs
`pnpm install --frozen-lockfile` and `pnpm run build` before the
Publish target. The JS SDK's BuildCommand is gated off via
ShouldRunBuildScript=false (kept that way to keep `aspire run` fast),
so without an explicit publish-time hook `dotnet publish` would
package a stale or empty dist/.1 parent 12f1da5 commit ebab926
2 files changed
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
0 commit comments