From f396b3d1c8aaa7bf40fb1960f9ec81c3708ea2a8 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 4 Jul 2024 20:41:01 -0400 Subject: fix(publish): unfurling should always be done with the package json (#24435) Closes https://github.com/denoland/deno/issues/24430 --- cli/args/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cli/args') diff --git a/cli/args/mod.rs b/cli/args/mod.rs index f747271b8..83f038ec0 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1060,6 +1060,7 @@ impl CliOptions { pub async fn create_workspace_resolver( &self, file_fetcher: &FileFetcher, + pkg_json_dep_resolution: PackageJsonDepResolution, ) -> Result { let overrode_no_import_map = self .overrides @@ -1102,12 +1103,7 @@ impl CliOptions { .workspace .create_resolver( CreateResolverOptions { - // todo(dsherret): this should be false for nodeModulesDir: true - pkg_json_dep_resolution: if self.use_byonm() { - PackageJsonDepResolution::Disabled - } else { - PackageJsonDepResolution::Enabled - }, + pkg_json_dep_resolution, specified_import_map: cli_arg_specified_import_map, }, |specifier| { -- cgit v1.2.3