[Pkg-javascript-devel] Bug#1012023: Bug#1011973: node-webpack-sources: autopkgtest failure TypeError: addMapping is not a function

Pirate Praveen praveen at onenetbeyond.org
Sat May 28 21:37:54 BST 2022


On Sun, 29 May 2022 00:53:47 +0530 Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
 > package.json has
 >
 >  "files": [
 >     "lib/",
 >     "!lib/helpers/__mocks__"
 >
 > So this directory is excluded from the deb. We can add this to
 > debian/tests/pkg-js/files to include it in autopkgtest environment. 
I'm
 > trying this now.

This did not work as expected and I think this is a bug in 
pkg-js-tools. For now, as a work around, I have created 
debian/node-webpack-sources.install and installed these files. Once the 
bug is fixed in pkg-js-tools, we can remove 
debian/node-webpack-sources.install

I think package.json exclude has a higher priority than 
debian/tests/pkg-js/files. This should be changed to give a higher 
priority to debian/tests/pkg-js/files.



More information about the Pkg-javascript-devel mailing list