diff --git a/cli/args/flags.rs b/cli/args/flags.rs index aa59eb36aa8c9..824b73264f16f 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -744,7 +744,7 @@ impl Flags { .to_owned(); Some(p) } else if module_specifier.scheme() == "npm" { - Some(std::env::current_dir().unwrap()) + Some(current_dir.to_path_buf()) } else { None }