New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From debian : please support multiple system dir #33661
Comments
Patches incomplete from my side :
|
I think if tsc searches in NODE_PATH or default paths set in nodejs instead of just node_modules for finding types, that will be the best option. |
node -e "console.log(process.config.variables.node_relative_path);" So nodejs in debian looks in these paths for finding modules (configured with https://salsa.debian.org/js-team/nodejs/blob/master/debian/patches/dfhs_module_path_arch_triplet.patch), but tyepescript does not check in these paths when looking for type definitions. |
tsc does not recognize NODE_PATH environment variable as well. |
Well, the proposal is that tsc should have a list of directories where it would look for modules and/or definitions. The package providing tsc would then be lightly patched in order to add Debian's system directories to that list. That would avoid stupid patches to tsconfig.json like this one in many packages. |
Hi, any news here ? |
There's a |
Hi @weswigham, no it is not. Typescript does not follow node.js resolution policy, even when moduleResolution is set to |
Under debian and other distrib we want to load systemdir from a search path.
for instance we want first to look up from lib/x86_64-linux-gnu/nodejs then share/nodejs then lib/nodejs'
I tried a local patch but I do not suceed.
Could you help us ?
rouca@debian.org
The text was updated successfully, but these errors were encountered: