Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

Link dependency binaries #330

@KSXGitHub

Description

@KSXGitHub

Background

Packages from the npm registry sometimes declare "bin" properties. This define the CLI commands provided by the packages.

Unlike npm, pnpm install [--global] creates these commands as intermediate shell scripts.

pnpm install would make them visible in the context of pnpm run and pnpm exec.

pnpm install --global would create local executables visible system-wide.

pacquet currently doesn't make them.

Tasks

Examine pacquet own codebase to see whether it currently supports bin.

Research the pnpm codebase. Understand its mechanism. Understand the shell script format.

Examine the accuracy of the claims in (Background)[#background].

Research the scope of visibility of CLI commands created by pnpm. If the root project depends on A, which depends on B, which depends on C, would the binaries declared by C be visible to B's script context, A's script context, and the project's own script context?

Implement this feature for pacquet install. Exactly as how pnpm implemented it.

Requirements

Mirror pnpm v11.

Carefully read and comply with AGENTS.md, CONTRIBUTING.md, and CODE_STYLE_GUIDE.md before writing code. Also, after writing code, carefully double check whether the written code comply with these files.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestrustPull requests that update Rust code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions