summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/args/flags.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index aa59eb36a..824b73264 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
}