diff options
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r-- | cli/tools/installer.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index 03c2ffdcf..cabae9e28 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -140,6 +140,7 @@ pub async fn infer_name_from_url(url: &Url) -> Option<String> { } if let Ok(npm_ref) = NpmPackageReqReference::from_specifier(&url) { + let npm_ref = npm_ref.into_inner(); if let Some(sub_path) = npm_ref.sub_path { if !sub_path.contains('/') { return Some(sub_path); |