[Pkg-javascript-devel] RFC: Build profiles: node-rollup-plugin-replace

Nilesh Patra npatra974 at gmail.com
Mon Apr 27 21:27:30 BST 2020


Hi,
Node-rollup-plugin-replace has build profiles by the name: <js.transpile.*>
as can be seen here [1][2]
This is also the case with a few other node-rollup-plugin-* modules.

While trying to build these with node-babel7, as a part of babel7
transitions, I noticed that these build profiles lead to
lintian error: "Invalid-profile-name-in-source-relation"

On investigating further, I found out that "custom" build profiles should
have name of the form:
"pkg.$sourcepackage.$anything"
This is explicitly mentioned here[3].

After discussing this on IRC, I can think of making Babel the default
transpiler and add build option for Bublé with a !(not).
So this gets picked if passed with DEB_BUILD_PROFILES.

This for instance is the change I wish to suggest:

node-rollup-plugin-buble (>= 4.4~) <!pkg.node-rollup-plugin-replace.buble>

node-babel7 <pkg.node-rollup-plugin-replace.babel>,


Will that be sensible and correct to do?
I would want more "acks" and suggestions on this one.

[1]:
https://salsa.debian.org/js-team/node-rollup-plugin-replace/-/blob/master/debian/control#L13
[2]:
https://salsa.debian.org/js-team/node-rollup-plugin-replace/-/blob/master/debian/control#L15
[3]:
https://lintian.debian.org/tags/invalid-profile-name-in-source-relation.html

Thanks and regards,
Nilesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20200428/ee83e595/attachment.html>


More information about the Pkg-javascript-devel mailing list