[Pkg-javascript-devel] Bug#976440: pkg-js-tools: add a minimal test to check the dependencies in package.json does not differ by major versions

Pirate Praveen praveen at onenetbeyond.org
Sat Dec 5 09:26:33 GMT 2020


Package: pkg-js-tools
Version: 0.9.53
Severity: wishlist

It would be nice to have a test in pkg-js-tools to make sure the 
dependencies mentioned in package.json of a module is not differing by 
a major version.

Example node-css-loader. See 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976408#57 for list 
dependencies with mismatched versions.

package.json has postcss-modules-extract-imports": "^2.0.0" but
node-postcss-modules-extract-imports in the archive is 3.0.0-1.

In ruby team, gem2deb does this already. It will test if dependencies 
mentioned in gemspec is satisfied and fail in case of mismatch. If we 
know the mismatch is not a problem, we add a patch to adjust the 
required version.

GEM_PATH= ruby2.7 -e gem\ \"faraday\" is how gem2deb tests it.



More information about the Pkg-javascript-devel mailing list