diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-04 20:41:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 00:41:01 +0000 |
commit | f396b3d1c8aaa7bf40fb1960f9ec81c3708ea2a8 (patch) | |
tree | d86b8190d9273c676063552c478ebf7ae32bd5b1 /cli/args/mod.rs | |
parent | f00f0f92983d6966a5b97e539ec3f3407c3d851f (diff) |
fix(publish): unfurling should always be done with the package json (#24435)
Closes https://github.com/denoland/deno/issues/24430
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 8 |
1 files changed, 2 insertions, 6 deletions
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<WorkspaceResolver, AnyError> { 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| { |