summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 9a89c8060..f8a9f54bb 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -448,8 +448,13 @@ async fn create_main_worker_internal(
ps.npm_resolver
.add_package_reqs(vec![package_ref.req.clone()])
.await?;
+ let pkg_nv = ps
+ .npm_resolver
+ .resolution()
+ .resolve_pkg_id_from_pkg_req(&package_ref.req)?
+ .nv;
let node_resolution = node::node_resolve_binary_export(
- &package_ref.req,
+ &pkg_nv,
package_ref.sub_path.as_deref(),
&ps.npm_resolver,
&mut PermissionsContainer::allow_all(),