mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
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.
This commit is contained in:
parent
71ca61e189
commit
3f79db1486
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue