mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(npm): lazily install package.json dependencies only when necessary (#17931)
This lazily does an "npm install" when any package name matches what's found in the package.json or when running a script from package.json with deno task. Part of #17916 Closes #17928
This commit is contained in:
parent
5683daf1aa
commit
033b70af19
21 changed files with 205 additions and 67 deletions
|
@ -1,6 +1,7 @@
|
|||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
mod cache;
|
||||
mod installer;
|
||||
mod registry;
|
||||
mod resolution;
|
||||
mod resolvers;
|
||||
|
@ -8,6 +9,7 @@ mod tarball;
|
|||
|
||||
pub use cache::should_sync_download;
|
||||
pub use cache::NpmCache;
|
||||
pub use installer::PackageJsonDepsInstaller;
|
||||
#[cfg(test)]
|
||||
pub use registry::NpmPackageVersionDistInfo;
|
||||
pub use registry::NpmRegistryApi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue