Skip to content

fix: linking commands of engines - #10354

Merged
zkochan merged 5 commits into
mainfrom
fix/10244
Dec 23, 2025
Merged

zkochan merged 5 commits into
mainfrom
fix/10244

Conversation

@zkochan

@zkochan zkochan commented Dec 22, 2025 •

Copy link
Copy Markdown
Member

close #10244

The runtime dependencies (node, bun, deno) don't ship with package.json files. We have a workaround for them in link-bins to be able to find where their binaries are at. However, seems like it works inconsistently. So, we are now creating package.json files for them with the necessary info (their command locations).

Copilot AI review requested due to automatic review settings December 22, 2025 16:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes the linking of commands for engine runtimes (node, deno, bun) when package manifests are missing, addressing issue #10244.

Key Changes:

  • Refactored bin linking logic to handle null manifests by extracting getBinsForKnownRuntimes function
  • Updated linkBinsOfPackages to accept DependencyManifest | null and conditionally use runtime detection
  • Removed default empty object fallback (?? {}) in build-modules to allow null manifests to flow through

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pkg-manager/link-bins/src/index.ts Updates linkBinsOfPackages to accept null manifests, extracts getBinsForKnownRuntimes function for handling engine runtime directories without package.json files
exec/build-modules/src/index.ts Removes the ?? {} fallback to allow null manifests, enabling runtime detection for packages without manifest files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread exec/build-modules/src/index.ts Resolved
Comment thread pkg-manager/link-bins/src/index.ts Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fetching/binary-fetcher/src/index.ts Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fetching/binary-fetcher/src/index.ts Resolved
Comment thread worker/src/start.ts Resolved
@zkochan
zkochan requested a review from a team December 23, 2025 01:02
@zkochan
zkochan merged commit 3bf5e21 into main Dec 23, 2025
13 checks passed
@zkochan
zkochan deleted the fix/10244 branch December 23, 2025 11:27
zkochan added a commit that referenced this pull request Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postinstall script fails on system with no node.js installed

2 participants