Commit ba09497
committed
Exclude npm
By updating the `package.json` and `package-lock.json` files to `Pack=false`, we ensure they aren't copied to the NuGet package unnecessarily. These are _exclusively_ needed for the build process itself.
The SDK-style project will automatically add these as `<Content />` items _after_ the `Directory.Build.props` have run. As such, if we include them there, then they'll just get overwritten with the default configuration. If we update them in the `Directory.Build.targets`, however, they'll be correctly updated, since this is evaluated at the _end_ of the SDK-style project file.package.json from NuGet package1 parent 380b19a commit ba09497
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments