rules_js icon indicating copy to clipboard operation
rules_js copied to clipboard

[Documentation] npm_import and transitive dependencies

Open kylepl opened this issue 2 years ago • 1 comments

Hi,

I was experimenting with the new ts_proto rules, and it seems I need npm dependencies to get that to work. I don't have any use of npm yet (just starting a Typescript project), so I was trying npm_import rather than a lock file, since I'd just have a couple.

But I realized (and correct me if I'm wrong), that it does not give you any of the npn_imported package's dependencies or transitive dependencies - though they can be manually specified right?

If IIUC, I plan to send a PR to just make that clear in the documentation (essentially motivating why it is rarely used).

Thanks!

Kyle

kylepl avatar Sep 13 '23 04:09 kylepl

That is correct npm_import does only a single package. PRs to the documentation are most welcome!

alexeagle avatar Sep 19 '23 00:09 alexeagle