diff --git a/cli/args/mod.rs b/cli/args/mod.rs index a6b547fd75..bd5309c01e 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1614,6 +1614,7 @@ impl CliOptions { pub fn use_byonm(&self) -> bool { if self.enable_future_features() && self.node_modules_dir_enablement().is_none() + && self.maybe_node_modules_folder.is_some() && self .workspace() .config_folders() diff --git a/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc b/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc index f816bad869..01e6cc4314 100644 --- a/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc +++ b/tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc @@ -1,4 +1,7 @@ { "args": "run -A main.ts", - "output": "main.out" + "output": "main.out", + "envs": { + "DENO_FUTURE": "1" + } }