From 4384a126bb759580777e7a2678fe49bb015f2f69 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 29 Apr 2024 14:32:27 -0400 Subject: 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 --- cli/args/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/args') 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, 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(), -- cgit v1.2.3