diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-29 14:32:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 14:32:27 -0400 |
commit | 4384a126bb759580777e7a2678fe49bb015f2f69 (patch) | |
tree | c710fc6cbf1d2c92b40772485cb0a3c1e179f2d1 /cli/args/mod.rs | |
parent | e6f4c8f5310fbdb969eecd5613047059f714d517 (diff) |
fix: handle specifying an import map in an ancestor dir of deno.json (#23602)
* https://github.com/denoland/deno_config/pull/51
Closes https://github.com/denoland/deno/issues/21440
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 bb0ef1aba..1d8b06f49 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -943,7 +943,7 @@ impl CliOptions { &self, ) -> Result<Option<ModuleSpecifier>, AnyError> { match self.overrides.import_map_specifier.clone() { - Some(maybe_path) => Ok(maybe_path), + Some(maybe_url) => Ok(maybe_url), None => resolve_import_map_specifier( self.flags.import_map_path.as_deref(), self.maybe_config_file.as_ref(), |