diff options
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r-- | cli/proc_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs index 52afcd631..eb43e75d7 100644 --- a/cli/proc_state.rs +++ b/cli/proc_state.rs @@ -565,7 +565,8 @@ impl ProcState { // but sadly that's not the case due to missing APIs in V8. let is_repl = matches!(self.options.sub_command(), DenoSubcommand::Repl(_)); let referrer = if referrer.is_empty() && is_repl { - deno_core::resolve_url_or_path("./$deno$repl.ts")? + let cwd = std::env::current_dir().context("Unable to get CWD")?; + deno_core::resolve_path("./$deno$repl.ts", &cwd)? } else { deno_core::resolve_url_or_path(referrer)? }; |