Commit 77c2508
committed
📝 [docs] Enforces NuGet license URL for MIT license
Updates module metadata and documentation to enforce the inclusion of the NuGet license URL when the MIT license is specified.
- 📝 [docs] Updates the module manifest (`.psd1`) and build script to include the `LicenseUri` property, setting it to `https://licenses.nuget.org/MIT` when the license is MIT.
- This ensures that NuGet clients correctly render the license information.
- 📝 [docs] Modifies the `Update-NuGetPackageMetadata.ps1` script to add or update the `licenseUrl` node in the NuGet package metadata.
- It ensures that the `licenseUrl` is set to `https://licenses.nuget.org/MIT` when the license is MIT.
- Removes the deprecated `licenseUrl` from the metadata after setting the new `licenseUrl`.
- 📝 [docs] Updates the `Publishing.md` documentation to include a note about the NuGet.org requirement for packages declaring the MIT license to also expose the `licenseUrl`.
- 💡 This informs users about the automatic normalization of the `licenseUrl` by the script.
Signed-off-by: Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com>1 parent ea410a3 commit 77c2508
4 files changed
Lines changed: 8 additions & 3 deletions
File tree
- ColorScripts-Enhanced
- docs
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | | - | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
0 commit comments