diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-04-02 23:43:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 00:43:03 +0200 |
commit | c0b7454175afdefa0b8e73a04aadeb874eb2e766 (patch) | |
tree | 6872a1169a0dc8afcdc132041973755ea594383b /cli/factory.rs | |
parent | 29085895c9e7dc348f393c1154f7890663008612 (diff) |
FUTURE: enable BYONM by default (#23194)
When `DENO_FUTURE=1` env var is present, then BYONM
("bring your own node_modules") is enabled by default.
That means that is there's a `package.json` present, users
are expected to explicitly install dependencies from that file.
Towards https://github.com/denoland/deno/issues/23151
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 a2755c129..bd8fa7ef6 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -402,7 +402,7 @@ impl CliFactory { .npm_resolver .get_or_try_init_async(async { let fs = self.fs(); - create_cli_npm_resolver(if self.options.unstable_byonm() { + create_cli_npm_resolver(if self.options.use_byonm() || self.options.unstable_byonm() { CliNpmResolverCreateOptions::Byonm(CliNpmResolverByonmCreateOptions { fs: fs.clone(), root_node_modules_dir: match self.options.node_modules_dir_path().clone() { |