mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(npm): resolve node_modules dir relative to package.json instead of cwd (#17885)
This commit is contained in:
parent
a31d8869ea
commit
ddc350780d
12 changed files with 219 additions and 141 deletions
|
@ -463,7 +463,7 @@ impl ReplSession {
|
|||
if !self.has_initialized_node_runtime {
|
||||
deno_node::initialize_runtime(
|
||||
&mut self.worker.js_runtime,
|
||||
self.proc_state.options.node_modules_dir(),
|
||||
self.proc_state.options.has_node_modules_dir(),
|
||||
)
|
||||
.await?;
|
||||
self.has_initialized_node_runtime = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue