wobsoriano / svelte-sonner

An opinionated toast component for Svelte. A port of @emilkowalski's sonner.
https://svelte-sonner.vercel.app
MIT License
718 stars 23 forks source link

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

Closed regexident closed 4 months ago

regexident commented 4 months ago

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