diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-20 10:11:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 14:11:43 +0000 |
commit | f1c58ec041a05276d9f33562a5843c0bb7fb95b3 (patch) | |
tree | dc4bca4eab617e75474e19a7491ed88d5ee64fef /cli/standalone | |
parent | 19bcb40059f6ba730b6d05d8edf005c6b40f6ff8 (diff) |
feat(unstable): ability to use a local copy of jsr packages (#25068)
Diffstat (limited to 'cli/standalone')
-rw-r--r-- | cli/standalone/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 020561ece..68e133476 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -227,8 +227,8 @@ impl ModuleLoader for EmbeddedModuleLoader { ) } }, - Ok(MappedResolution::Normal(specifier)) - | Ok(MappedResolution::ImportMap(specifier)) => { + Ok(MappedResolution::Normal { specifier, .. }) + | Ok(MappedResolution::ImportMap { specifier, .. }) => { if let Ok(reference) = NpmPackageReqReference::from_specifier(&specifier) { @@ -622,6 +622,7 @@ pub async fn run( .jsr_pkgs .iter() .map(|pkg| ResolverWorkspaceJsrPackage { + is_patch: false, // only used for enhancing the diagnostic, which isn't shown in deno compile base: root_dir_url.join(&pkg.relative_base).unwrap(), name: pkg.name.clone(), version: pkg.version.clone(), |