package-json icon indicating copy to clipboard operation
package-json copied to clipboard

[BUG] license validator does not match arborist

Open wraithgar opened this issue 9 months ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

In arborist's inventory class it does its own attempts to normalize/account for license/licence but it ALSO is looking for licenses/licences, which @npmcli/package-json does not appear to to

https://github.com/npm/cli/blob/8ded848b099297a12a81ec008d6229f3ad3494a6/workspaces/arborist/lib/inventory.js#L62-L73

Expected Behavior

See if we can safely consolidate this normalization into this module, or at least see if we want to normalize the array/plural version.

wraithgar avatar May 02 '24 18:05 wraithgar