mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
perf(npm): parallelize caching of npm specifier package infos (#16323)
This commit is contained in:
parent
60dd84a5a0
commit
9df8d9d831
4 changed files with 30 additions and 11 deletions
|
@ -23,6 +23,12 @@ use super::semver::NpmVersion;
|
|||
use super::tarball::verify_and_extract_tarball;
|
||||
use super::NpmPackageId;
|
||||
|
||||
/// For some of the tests, we want downloading of packages
|
||||
/// to be deterministic so that the output is always the same
|
||||
pub fn should_sync_download() -> bool {
|
||||
std::env::var("DENO_UNSTABLE_NPM_SYNC_DOWNLOAD") == Ok("1".to_string())
|
||||
}
|
||||
|
||||
pub const NPM_PACKAGE_SYNC_LOCK_FILENAME: &str = ".deno_sync_lock";
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue