Le 01/11/2025 à 11:25, Jérémy Lal a écrit :
> Hi Yadd,
>
> the situation is a bit bad when the module name expected by upstream
> is not the module name we have in debian.
> Suggested feature: let us declare an alias in extlinks ?
> Or am I missing something (again) ?
>
> typical last example: highlight.js
> > debian/nodejs/extlinks
> @rollup/plugin-commonjs
> @rollup/plugin-json
> @rollup/plugin-node-resolve
>
> > debian/nodejs/build
> ln -sfT @rollup/plugin-commonjs node_modules/rollup-plugin-commonjs
> ln -sfT @rollup/plugin-json node_modules/rollup-plugin-json
> ln -sfT @rollup/plugin-node-resolve node_modules/rollup-plugin-node-resolve
Hi,
this is not a normal situation, your package is using unavailable old
rollup plugins. Prefer to patch it to use the real @rollup/plugin-* modules.
Else, drop debian/nodejs/extlinks, it is not needed here since you
linked plugins to their old name (and hopefully API didn't change for them)
That makes sense.
Thankfully there's compatible for that usage.