huntabyte / cmdk-sv

cmdk, but for Svelte ✨
https://cmdk-sv.com
MIT License
455 stars 19 forks source link

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

Open regexident opened 1 month ago

regexident commented 1 month ago

Running the following command

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

… in a project that uses cmdk-sv@0.0.17 results in:

└─ cmdk-sv@0.0.17
   ├─ licenses: MIT*
   ├─ path: <SNIP>/node_modules/cmdk-sv
   └─ licenseFile: <SNIP>/node_modules/cmdk-sv/LICENSE

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.