mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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
This commit is contained in:
parent
e6f4c8f531
commit
4384a126bb
10 changed files with 31 additions and 4 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue