diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-17 17:38:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-17 17:38:50 -0400 |
| commit | 41f618a1df6bb8c66d7968ac64456139b9f4c197 (patch) | |
| tree | dbcc67e009cf70099be82ea3774669e8aefc6023 /cli/standalone/mod.rs | |
| parent | ad223362451688c13a4441563210f58bdb046a78 (diff) | |
fix(npm): improved optional dependency support (#19135)
Note: If the package information has already been cached, then this
requires running with `--reload` or for the registry information to be
fetched some other way (ex. the cache busting).
Closes #15544
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/standalone/mod.rs')
| -rw-r--r-- | cli/standalone/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index eb5cf5d82..64143c08f 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -37,6 +37,7 @@ use deno_core::ModuleLoader; use deno_core::ModuleSpecifier; use deno_core::ModuleType; use deno_core::ResolutionKind; +use deno_npm::NpmSystemInfo; use deno_runtime::deno_fs; use deno_runtime::deno_node; use deno_runtime::deno_node::analyze::NodeCodeTranslator; @@ -350,6 +351,7 @@ pub async fn run( npm_registry_url, npm_resolution.clone(), node_modules_path, + NpmSystemInfo::default(), ); let npm_resolver = Arc::new(CliNpmResolver::new( fs.clone(), |
