<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 5 mai 2021 à 12:29, Jonas Smedegaard <<a href="mailto:jonas@jones.dk">jonas@jones.dk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Quoting Jérémy Lal (2021-05-05 11:04:07)<br>
> Hello, i'm all right patching typescript, but that would mean local<br>
> installs of typescript<br>
> wouldn't find the modules anyway.<br>
> So... do you know if a local user install of typescript is going to want to<br>
> discover global modules ?<br>
> If not, then it's okay to patch typescript and i think i can do it...<br>
<br>
If possible to patch Typescript into supporting shared resources, then <br>
that would certainly be the best approach, I think.<br>
<br>
Seems upstream fails to understand the value of supporting shared <br>
resources. If we can reasonably maintain a patch to do it locally in <br>
Debian, then it would ease both building and using Typescript in Debian <br>
now, and be an offer for upstream to adopt if they change their minds.<br>
<br>
Patching Debian to include magic path names easing local building by <br>
tricking the tools into seeing shared resources as being local sounds <br>
bad to me: Upstream is then deliberately being tricked into working in <br>
ways unsupported upstream, and while we only care about using it for <br>
build routines we expose it to our users as well, which might cause <br>
side-effects for them that then noone have any attention towards.<br>
<br>
If we cannot (or will not) maintain a general deviation of Typescript to <br>
support shared resources, then we should contain tricks to only affect <br>
build environment, not "leak" into our user-facing environments (if <br>
possible).<br>
<br>
Great that you tried, Yadd.  Great if you can succeed, Jérémy :-)<br></blockquote><div><br></div><div>That's probably the same issue with nodejs indeed.</div><div>Nodejs tries local first, then falls back to global if any.</div><div><br></div><div>However i'm concerned that if i patch typescript, module resolution in developer</div><div>tools (linters...) will fail too.</div><div>So maybe not patching as Yadd suggests is safer and won't disrupt any workflow.</div><div><br></div><div>Jérémy</div></div></div>