mhassan1 / yarn-plugin-licenses

Yarn Berry plugin that adds `yarn licenses` commands
39 stars 11 forks source link

Handle `repository` metadata with shortcut #30

Closed brandon-leapyear closed 1 year ago

brandon-leapyear commented 1 year ago

The repository key in package.json can just be repo/name, but the plugin doesn't support this:

https://github.com/mhassan1/yarn-plugin-licenses/blob/91c97f09b6c19254ebd6eb06f7b136ebeba9dfe6/src/utils.ts#L241

https://docs.npmjs.com/cli/v9/configuring-npm/package-json#repository

e.g. https://github.com/sindresorhus/aggregate-error/blob/main/package.json