Skip to content

Commit 5ed3462

Browse files
Merge pull request #13321 from Mikejo5000/mikejo-br25
Update example code for ShouldRunBuildScript in JS projects
2 parents 7acafd1 + ac01427 commit 5ed3462

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/javascript/javascript-project-system-msbuild-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSBuild properties for JavaScript Project System (JSPS)"
33
description: Reference for the MSBuild properties and items that are understood by JSPS projects.
4-
ms.date: 10/19/2023
4+
ms.date: 11/07/2024
55
ms.custom: updateeachrelease
66
ms.topic: reference
77
ms.devlang: javascript
@@ -49,11 +49,11 @@ The `ShouldRunBuildScript` property specifies whether or not to run `npm run bui
4949

5050
```xml
5151
<PropertyGroup>
52-
<ShouldRunNpmBuildScript>false</ShouldRunNpmBuildScript>
52+
<ShouldRunBuildScript>false</ShouldRunBuildScript>
5353
</PropertyGroup>
5454
```
5555

56-
For projects containing only JavaScript that do not require building, set this property to `false`. Newly created React, Vue, and Angular projects usually fall in this category. In this scenario, build is used for production and not for debugging. Note that the `Build` and `Publish` commands are separate in JSPS projects, and `Publish` still runs even if this property is set.
56+
For projects containing only JavaScript that don't require building, set this property to `false`. Newly created React, Vue, and Angular projects usually fall in this category. In this scenario, build is used for production and not for debugging. Note that the `Build` and `Publish` commands are separate in JSPS projects, and `Publish` still runs even if this property is set.
5757

5858
## Command Properties
5959

@@ -119,7 +119,7 @@ If you modify the command, include `npm run` when using `npm`.
119119

120120
### PublishCommand
121121

122-
The `PublishCommand` property specifies the behavior for the `publish` target. If the associated `package.json` contains a `publish` script, the default `PublishCommand` value is already set to run this script. In npm, it is common to have pre- and post- publish scripts, which will also run.
122+
The `PublishCommand` property specifies the behavior for the `publish` target. If the associated `package.json` contains a `publish` script, the default `PublishCommand` value is already set to run this script. In npm, it's common to have pre- and post- publish scripts, which will also run.
123123

124124
If you modify the command, include `npm run` when using `npm`.
125125

0 commit comments

Comments
 (0)