Skip to content

Commit

Permalink
fix(unstable): panic when running deno install with DENO_FUTURE=1 (#2…
Browse files Browse the repository at this point in the history
…4866)

Not bothering to add a test for this because we're going to change this
to be the default in a couple weeks.
  • Loading branch information
dsherret authored Aug 5, 2024
1 parent 71ca61e commit 3f79db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3f79db1

Please # to comment.