microsoft / rnx-kit

Modern, scalable tools. Exceptional developer experience.
https://microsoft.github.io/rnx-kit/
MIT License
1.46k stars 94 forks source link

fix(third-party-notices): use license URL if no copyright info is found #3180

Closed AAHAbbas closed 1 month ago

AAHAbbas commented 1 month ago

Description

If no copyright or package author information is found then set license and license URL information instead of the default "No copyright notice" placeholder. This ensures that the JSON and text information is more similar.

Test plan

Unit tests

Before After
{
"name": "deprecated-react-native-prop-types",
"version": "2.3.0",
"license": "MIT",
"copyright": "No copyright notice"
}
{
"name": "deprecated-react-native-prop-types",
"version": "2.3.0",
"license": "MIT",
"copyright": "MIT (https://spdx.org/licenses/MIT.html)"
}