feat(unstable/npm): module graph derived npm specifier resolution order (#16602)

This commit is contained in:
David Sherret 2022-11-11 21:26:14 -05:00 committed by GitHub
parent 06bd9e9e16
commit d81065cff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 926 additions and 268 deletions

View file

@ -25,7 +25,7 @@ use super::tarball::verify_and_extract_tarball;
/// 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())
std::env::var("DENO_UNSTABLE_NPM_SYNC_DOWNLOAD").is_ok()
}
const NPM_PACKAGE_SYNC_LOCK_FILENAME: &str = ".deno_sync_lock";