[Pkg-javascript-devel] Typescript and Debian directories

Jérémy Lal kapouer at melix.org
Wed May 5 10:04:07 BST 2021


Hello, i'm all right patching typescript, but that would mean local
installs of typescript
wouldn't find the modules anyway.
So... do you know if a local user install of typescript is going to want to
discover global modules ?
If not, then it's okay to patch typescript and i think i can do it...

Jérémy


Le mer. 5 mai 2021 à 09:50, Yadd <yadd at debian.org> a écrit :

> Hi all,
>
> as you probably already know, Typescript has a poor module search
> support. That's why pkg-js-tools supports
> debian/nodejs/ext{copies,links}.
>
> Symlinks (debian/nodejs/extlinks) would be the better solution, but when
> a linked module has to include another, Typescript can't find it because
> it recursively search for a node_modules directory, starting in
> /usr/share/nodejs/<module>. Then each module that requires another has
> to be copied (debian/nodejs/extcopies), and recursively all dependencies
> (example:
>
> https://salsa.debian.org/js-team/node-jest/-/blob/master/debian/nodejs/extcopies
> ).
>
> I tried to patch Typescript without success.
>
> We could simplify this by creating "node_modules => nodejs" symlinks in
> /usr/share, /usr/lib, /usr/lib/arch. Then no need to copy modules, only
> few of them should be declared in debian/nodejs/extlinks.
>
> Is it an acceptable solution ? Where to store these symlinks, nodejs or
> typescript ?
>
> Cheers,
> Yadd
>
> --
> Pkg-javascript-devel mailing list
> Pkg-javascript-devel at alioth-lists.debian.net
>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210505/89d39c33/attachment.htm>


More information about the Pkg-javascript-devel mailing list