From 3f79db14862d856913fe4741f3d5f919bac5522a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 5 Aug 2024 10:36:09 +0200 Subject: 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. --- cli/factory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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() { -- cgit v1.2.3