Commit 52bf7ce
Fix missing static web assets in NuGet package (#118)
The Razor SDK generates the static web assets manifest at dotnet build
time. Previously, npm run build (which outputs the JS files to wwwroot/)
ran after dotnet build, so the manifest was generated with an empty
wwwroot/ and dotnet pack --no-build reused that stale manifest.
Fix by moving the npm install/lint/build steps before dotnet restore and
dotnet build, ensuring the compiled JS files exist in wwwroot/ when the
static web assets manifest is generated.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7ba2caf commit 52bf7ce
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments