[Pkg-javascript-devel] Bug#994934: Bug#994934: pkg-js-tools should give us a way to extract a space separated list of components

Yadd yadd at debian.org
Thu Sep 23 14:54:43 BST 2021


Le 23/09/2021 à 15:05, Bastien Roucariès a écrit :
> Package: pkg-js-tools
> Version: 0.9.66
> Severity: important
> 
> Dear Yadd,
> 
> I will like to get an official way and documented way to get the list of
> components as a space separated list.
> 
> It will allow to get it in debian/rules and therefore do ssomething interesting
> 
> COMPONENTS=$(shell pkg-js-tools --list-components)
> 
> will for instance work
> 
> Bastien

Done in pkg-js-tools 0.9.69, use:

  COMPONENTS=$(shell list-node-components)

or

  MODULES=$(shell list-node-modules)

(npm names instead of component ones)

Example:

node-tough-cookie (master)$ list-node-modules
@types/tough-cookie

node-tough-cookie (master)$ list-node-components
typestough-cookie



More information about the Pkg-javascript-devel mailing list