refactor: add deno_npm_installer crate (#29319)

More changes/improvements will following in follow-up PRs.
This commit is contained in:
David Sherret 2025-05-16 18:11:05 -04:00 committed by GitHub
parent 2b0d44d8da
commit c4412ffb13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 3834 additions and 3917 deletions

View file

@ -2,7 +2,6 @@
use std::borrow::Cow;
use std::path::Path;
use std::path::PathBuf;
use deno_ast::MediaType;
use deno_ast::ModuleSpecifier;
@ -128,11 +127,6 @@ pub fn relative_specifier(
Some(to_percent_decoded_str(&text))
}
#[cfg_attr(windows, allow(dead_code))]
pub fn relative_path(from: &Path, to: &Path) -> Option<PathBuf> {
pathdiff::diff_paths(to, from)
}
/// Slightly different behaviour than the default matching
/// where an exact path needs to be matched to be opted-in
/// rather than just a partial directory match.