aspect-build / rules_js

High-performance Bazel rules for running Node.js tools and building JavaScript projects
https://docs.aspect.build/rules/aspect_rules_js
Apache License 2.0
293 stars 98 forks source link

[FR]: add `rules_license` providers to NPM imported packages #1738

Open shs96c opened 1 month ago

shs96c commented 1 month ago

What is the current behavior?

There is no integration between aspect_rules_js and rules_license

Describe the feature

It would be useful if items that are imported from package.json could return a LicenseInfo. This would allow other tooling built to use rules_license to be used with JS-based projects (eg. it might be possible to generate an SBOM from this information)

alexeagle commented 1 month ago

I would like to have some "official" documentation of exactly which rules we're meant to stamp out. I attended a rules_license sync meeting and created https://github.com/bazelbuild/rules_license/pull/142 based on notes there, but @aiuto wasn't ready to commit to this yet.