On 07/02/2022 08:29, Yadd wrote:
Package: nodejs
Version: 16.13.2~dfsg-2
Severity: normal

Hi,

starting from version 14, nodejs is able to run .mjs files. However,
"import" method only works when dependency is available in node_modules
directories. To avoid having to create node_modules/* links in each
directory, it could be usefull to have node_modules links that points to
nodejs in each /usr/(share|lib|lib/${DEB_MULTIARCH})/nodejs directory.

Then only some links will be needed when a /usr/share/nodejs file tries
to "import" a /usr/li/x86_64*/nodejs module.

Alternative: modify nodejs to be able to search "import" modules in
process.config.variables.node_relative_path

Cheers,
Yadd

This will also decrease lnks needed by typescript (#930268)

Reply via email to