diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-05 10:36:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 10:36:09 +0200 |
commit | 3f79db14862d856913fe4741f3d5f919bac5522a (patch) | |
tree | 1b594673fac0182b2576ca03d26f235f3e21eba3 /cli/factory.rs | |
parent | 71ca61e189cca9215982ce4598b7a4da8430c584 (diff) |
fix(unstable): panic when running deno install with DENO_FUTURE=1 (#24866)
Not bothering to add a test for this because we're going to change this
to be the default in a couple weeks.
Diffstat (limited to 'cli/factory.rs')
-rw-r--r-- | cli/factory.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/factory.rs b/cli/factory.rs index 3e618e239..90dc6dd2e 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -355,7 +355,7 @@ impl CliFactory { let fs = self.fs(); let cli_options = self.cli_options()?; // For `deno install` we want to force the managed resolver so it can set up `node_modules/` directory. - create_cli_npm_resolver(if cli_options.use_byonm() && !matches!(cli_options.sub_command(), DenoSubcommand::Install(_)) { + create_cli_npm_resolver(if cli_options.use_byonm() && !matches!(cli_options.sub_command(), DenoSubcommand::Install(_) | DenoSubcommand::Add(_)) { CliNpmResolverCreateOptions::Byonm(CliNpmResolverByonmCreateOptions { fs: fs.clone(), root_node_modules_dir: Some(match cli_options.node_modules_dir_path() { |