[Pkg-javascript-devel] Bug#930268: node-typescript should add debian's nodejs library paths to tsc

Jérémy Lal kapouer at melix.org
Sat Dec 13 18:16:15 GMT 2025


Package: node-typescript
Followup-For: Bug #930268

Hi !

better late than never...

On 07/02/2022 08:29, Yadd wrote:
>> 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)

Most of this discussion seems to be settled, given current practices.

Shall it be closed ?



More information about the Pkg-javascript-devel mailing list