[Pkg-javascript-devel] Bug#973983: Bug#973983: pkg-js-tools tries to require a non-existing name

Julien Puydt julien.puydt at gmail.com
Sun Nov 8 17:33:32 GMT 2020


Hi,

Le dimanche 08 novembre 2020 à 16:25 +0100, Xavier a écrit :
> Le 08/11/2020 à 16:02, Julien Puydt a écrit :
> > Package: pkg-js-tools
> > Version: 0.9.45
> > 
> > I'm trying to package lumino (ITP 972487), which has a pretty
> > special
> > structure:
> > - no main module ;
> > - only packages.
> 
> Hi,
> 
> did you try to set onne of them in debian/nodejs/main ?

Uh... no, I hadn't, since there's no main. Now I have tried setting one
as such and it goes through.

> > My d/control has a build dep on pkg-js-tools, and uses "Provides:
> > ${nodejs:Provides}" ; I have a d/nodejs/additional_components with
> > packages/* to find the packages and my d/tests/pkg-js/test is only
> > an
> > "echo FIXME".
> > 
> > When building the package, I get strange warnings, but they seem
> > pretty
> > harmless :
> > 
> > dh_auto_install: warning: # /! "types" field should be replaced by
> > "typings" in packages/algorithm/package.json
> > Please report this bug
> 
> @praveen asked for this warning

I tried to search the web about it, and found only:
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

I don't care either way.

> > indeed, the main package.json has no 'name' field. It should
> > instead try to require the packages listed in
> > d/nodejs/additional_components.

That was a bad idea : some of them only work in a browser (they use
navigator) ; I chose one who doesn't for d/nodejs/main.

I still have a lintian warning:

W: node-lumino: nodejs-module-not-declared node-lumino-datastore 
usr/share/nodejs/@lumino/datagrid/package.json

which is strange since I use ${nodejs:Provides} in d/control...

The question is whether it is a problem with pkg-js-tools or with
upstream : in the first case this bug report is legit, in the second
case I should close that one and open one upstream.

Thanks,

JP



More information about the Pkg-javascript-devel mailing list