[Pkg-javascript-devel] more nodejs depending packages

Pirate Praveen praveen at onenetbeyond.org
Thu Jun 2 12:34:11 BST 2022



2022, ജൂൺ 2 1:12:38 PM IST, Paul Gevers <elbrus at debian.org>ൽ എഴുതി
>Hi,
>
>On 02-06-2022 08:54, Pirate Praveen wrote:
>> Or creating libjs-d3-dsv for browser files is a better idea.
>
>I didn't propose this because all other node-d3-* packages follow the node-d3-* scheme *and* there are three reverse dependencies that would need fixing too. I can do this if you favor this, but it looks a bit sub-optimal.

d3-format has libjs-d3-format. Others did not do it because all reverse dependencies were consuming the node-* binary.

For apps using browser builds directly without using webpack, shipping in /usr/share/javascript is better.

So if you want to keep binaries, create d3-dsv-tools binary with only the bin directory (since it is not a node library, it does not need node- prefix). Keep node-d3-dsv for files other than bin. Add Provides: libjs-d3-dsv and ship symbolic links in /usr/share/javascript/d3-dsv to advertise browser only version. (Binary package will work in theory but ftp masters don't like smaller libjs-* packages).

The other option is keep node-d3-dsv mostly same. Just move browser files into new libjs-d3-dsv binary and /usr/share/javascript. Add libjs-d3-dsv to node-d3-dsv Depends and provide symlinks in /usr/share/nodejs/d3-dsv/dist. So packages that need only browser files can just Depend on libjs-d3-dsv.

>Paul

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-javascript-devel mailing list