fix(ext/node): discover .npmrc in user's homedir (#24021)

This commit adds discovery of `.npmrc` files in user's homedir.

This is not a perfect fix as it doesn't merge multiple `.npmrc` files
together as per https://github.com/denoland/deno/issues/23954
but allows to fallback if no `.npmrc` file is discovered in the project
root.
This commit is contained in:
Bartek Iwańczuk 2024-06-26 23:17:00 +01:00 committed by GitHub
parent 0da01c0ca6
commit 2a2ff96be1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 57 additions and 2 deletions

1
cli/cache/mod.rs vendored
View file

@ -43,6 +43,7 @@ pub use caches::Caches;
pub use check::TypeCheckCache;
pub use code_cache::CodeCache;
pub use common::FastInsecureHasher;
pub use deno_dir::dirs::home_dir;
pub use deno_dir::DenoDir;
pub use deno_dir::DenoDirProvider;
pub use disk_cache::DiskCache;