diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-03-06 13:24:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 13:24:15 +0000 |
commit | 01bc2f530ea311a231f19b8f620b6cc9f94f0886 (patch) | |
tree | 1d448eeb12050cab8a7a10ea23432c9e6829af26 /cli/args/mod.rs | |
parent | 8b1f160bb58a36a6f75759165f91de8c5c7afe06 (diff) |
feat(unstable/pm): support npm packages in 'deno add' (#22715)
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index a4904d39d..af681104c 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -75,7 +75,7 @@ use deno_config::FmtConfig; use deno_config::LintConfig; use deno_config::TestConfig; -pub fn npm_registry_default_url() -> &'static Url { +pub fn npm_registry_url() -> &'static Url { static NPM_REGISTRY_DEFAULT_URL: Lazy<Url> = Lazy::new(|| { let env_var_name = "NPM_CONFIG_REGISTRY"; if let Ok(registry_url) = std::env::var(env_var_name) { |