summaryrefslogtreecommitdiff
path: root/cli/args/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-04 20:41:01 -0400
committerGitHub <noreply@github.com>2024-07-05 00:41:01 +0000
commitf396b3d1c8aaa7bf40fb1960f9ec81c3708ea2a8 (patch)
treed86b8190d9273c676063552c478ebf7ae32bd5b1 /cli/args/mod.rs
parentf00f0f92983d6966a5b97e539ec3f3407c3d851f (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.rs8
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| {