Skip to content

Commit

Permalink
chore: Fix error on npm run build -- --watch command (#10310)
Browse files Browse the repository at this point in the history
chore: fix error on `npm run build -- --watch`
  • Loading branch information
filzrev authored Oct 21, 2024
1 parent c2d5cc0 commit fd3d09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function copyToDist() {
}

function buildContent() {
exec(`dotnet run -f net7.0 --project ../src/docfx/docfx.csproj -- metadata ${project}/docfx.json`)
exec(`dotnet run -f net7.0 --project ../src/docfx/docfx.csproj --no-build -- build ${project}/docfx.json`)
exec(`dotnet run -f net8.0 --project ../src/docfx/docfx.csproj -- metadata ${project}/docfx.json`)
exec(`dotnet run -f net8.0 --project ../src/docfx/docfx.csproj --no-build -- build ${project}/docfx.json`)

function exec(cmd) {
if (spawnSync(cmd, { stdio: 'inherit', shell: true }).status !== 0) {
Expand Down

0 comments on commit fd3d09e

Please sign in to comment.