Commit b2bacf2
committed
Hook frontend build earlier in the publish chain
Per Copilot review on PR #740: BeforeTargets="Publish" runs after the
Publish target's dependencies, so file enumeration and copy already saw
a stale dist/ before our pnpm build ran.
Switch to two earlier hooks:
- Inject BuildFrontendForPublish into PublishDependsOn so it's the first
dep of Publish (idiomatic .NET SDK pattern).
- BeforeTargets="PrepareForPublish;ComputeFilesToPublish" as a backstop
in case the JS SDK invokes those outside the PublishDependsOn flow.
Both fire before any publish-time file collection, ensuring dist/ is
fresh when the SDK packages the StaticHost.1 parent ebab926 commit b2bacf2
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
0 commit comments