summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/npm/managed/resolvers/local.rs8
-rw-r--r--cli/task_runner.rs8
2 files changed, 3 insertions, 13 deletions
diff --git a/cli/npm/managed/resolvers/local.rs b/cli/npm/managed/resolvers/local.rs
index 2240bf0c0..90a17b157 100644
--- a/cli/npm/managed/resolvers/local.rs
+++ b/cli/npm/managed/resolvers/local.rs
@@ -282,12 +282,8 @@ fn resolve_baseline_custom_commands(
custom_commands
.insert("npm".to_string(), Rc::new(crate::task_runner::NpmCommand));
- custom_commands.insert(
- "node".to_string(),
- Rc::new(crate::task_runner::NodeCommand {
- force_node_modules_dir: true,
- }),
- );
+ custom_commands
+ .insert("node".to_string(), Rc::new(crate::task_runner::NodeCommand));
custom_commands.insert(
"node-gyp".to_string(),
diff --git a/cli/task_runner.rs b/cli/task_runner.rs
index 7653594e5..e8937590d 100644
--- a/cli/task_runner.rs
+++ b/cli/task_runner.rs
@@ -164,9 +164,7 @@ impl ShellCommand for NpmCommand {
}
}
-pub struct NodeCommand {
- pub force_node_modules_dir: bool,
-}
+pub struct NodeCommand;
impl ShellCommand for NodeCommand {
fn execute(
@@ -193,9 +191,6 @@ impl ShellCommand for NodeCommand {
.execute(context);
}
args.extend(["run", "-A"].into_iter().map(|s| s.to_string()));
- if self.force_node_modules_dir {
- args.push("--node-modules-dir=true".to_string());
- }
args.extend(context.args.iter().cloned());
let mut state = context.state;
@@ -308,7 +303,6 @@ impl ShellCommand for NodeModulesFileRunCommand {
let mut args = vec![
"run".to_string(),
"--ext=js".to_string(),
- "--node-modules-dir=true".to_string(),
"-A".to_string(),
self.path.to_string_lossy().to_string(),
];