Commit c485c6b
Fix missing static web assets in NuGet package
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 368233f commit c485c6b
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments