diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-30 15:46:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 19:46:43 +0000 |
commit | d7b787792c09569bd718d9acf2d2b73ae406828c (patch) | |
tree | b09fa58618fcd1ee9849437e9a43059a5daa0acd /cli/args | |
parent | c5c18699921cd45021f8c130eecdc09099c26878 (diff) |
fix(info): error instead of panic for npm specifiers when using byonm (#25947)
Diffstat (limited to 'cli/args')
-rw-r--r-- | cli/args/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 3ff2a427f..2ae7098da 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1144,10 +1144,6 @@ impl CliOptions { DenoSubcommand::Run(run_flags) => { if run_flags.is_stdin() { resolve_url_or_path("./$deno$stdin.ts", self.initial_cwd())? - } else if NpmPackageReqReference::from_str(&run_flags.script) - .is_ok() - { - ModuleSpecifier::parse(&run_flags.script)? } else { resolve_url_or_path(&run_flags.script, self.initial_cwd())? } |