From 959739f609dddacde3bbe9ecede2f409214fb34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 23 May 2024 22:26:23 +0100 Subject: FUTURE: initial support for .npmrc file (#23560) This commit adds initial support for ".npmrc" files. Currently we only discover ".npmrc" files next to "package.json" files and discovering these files in user home dir is left for a follow up. This pass supports "_authToken" and "_auth" configuration for providing authentication. LSP support has been left for a follow up PR. Towards https://github.com/denoland/deno/issues/16105 --- cli/npm/managed/resolvers/mod.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cli/npm/managed/resolvers/mod.rs') diff --git a/cli/npm/managed/resolvers/mod.rs b/cli/npm/managed/resolvers/mod.rs index dfd291afc..d5472344a 100644 --- a/cli/npm/managed/resolvers/mod.rs +++ b/cli/npm/managed/resolvers/mod.rs @@ -7,7 +7,6 @@ mod local; use std::path::PathBuf; use std::sync::Arc; -use deno_core::url::Url; use deno_npm::NpmSystemInfo; use deno_runtime::deno_fs::FileSystem; @@ -25,7 +24,6 @@ pub fn create_npm_fs_resolver( fs: Arc, cache: Arc, progress_bar: &ProgressBar, - registry_url: Url, resolution: Arc, maybe_node_modules_path: Option, system_info: NpmSystemInfo, @@ -35,7 +33,6 @@ pub fn create_npm_fs_resolver( fs, cache, progress_bar.clone(), - registry_url, node_modules_folder, resolution, system_info, @@ -43,7 +40,6 @@ pub fn create_npm_fs_resolver( None => Arc::new(GlobalNpmPackageResolver::new( fs, cache, - registry_url, resolution, system_info, )), -- cgit v1.2.3