Yes, these components are C++ code, not Javascript, so I want the dh-nodejs scripts to completely ignore them.
Best wishes, Julian On Sun, Dec 25, 2022 at 08:49:25PM +0100, Israel Galadima wrote: > Can I ask what you're trying to achieve by excluding the component listed in > debian/watch? There could be a dh command or some pkg-js-tools functionality > that can be used to achieve it. > On Sun, 25 Dec 2022 at 20:36, Israel Galadima <izzygalad...@gmail.com> wrote: > > Hi Julian, > These are some excerpts from pkg-js-tools manpage: > debian/nodejs/additional_components is used to set some subdirectories that > should be considered as components even if they are not listed in > debian/watch. Starting from pkg-js-tools version 0.12.0 and 0.12.7, the > packages field in lerna.conf and workspaces field in package.json are used > to > automatically detect additional components. If a component should not be > considered i.e, not automatically detected, insert its name preceded by a > "!" > in debian/nodejs/additional_components. > From the above, I don't think "!" in debian/nodejs/additional_components is > used to exclude a component listed in debian/watch. > On Sun, 25 Dec 2022 at 13:09, Julian Gilbey <j...@debian.org> wrote: > > Package: pkg-js-tools > Version: 0.15.12 > Severity: normal > > I am working on a package (node-webfont) which requires a non-node > component. The dh-nodejs tools keeps complaining, for example > debclean reports: > > Found debian/nodejs/additional_components > /!\ woff2/package.json not found > Unable to load woff2 > /!\ brotli/package.json not found > Unable to load brotli > > My additional_components reads: > --- > !brotli > !woff2 > --- > following the guidance in pkg-js-tools(7), if I've understood it > correctly. But it seems that this syntax doesn't help; > list-node-components reports: > > [...] > varstream > woff2 > brotli > !brotli > !woff2 > > with the first occurrence being picked up from debian/watch and the ! > occurrences being those in additional_components. But > component_list in /usr/share/perl5/Debian/PkgJs/Utils.pm has a > different behaviour, and it would seem that that should work. > Unfortunately, though, it doesn't appear to do so, and I don't > understand why not. > > Best wishes, > > Julian