wobsoriano/svelte-sonner

License doesn't get detected properly by `license-checker`, leading to false negative

Closed this issue · 0 comments

Describe the bug

Running the following command

npx license-checker --production --excludePrivatePackages --onlyAllow "MIT" --onlyunknown

… in a project that uses svelte-sonner@0.3.25 results in:

└─ svelte-sonner@0.3.25
   ├─ licenses: MIT*
   ├─ publisher: Robert Soriano
   ├─ email: <SNIP>
   ├─ path: <SNIP>/node_modules/svelte-sonner
   └─ licenseFile: <SNIP>/node_modules/svelte-sonner/README.md

The MIT* here denotes that license-checker could not find a license and thus had to make a guess based on the file contents of licenseFile, which depending on your CI configuration may lead to a false negative.

The package's npm page also lists a License of none.

Reproduction

See above

Logs

No response

System Info

n/a

Severity

annoyance