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.
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 installwould make them visible in the context ofpnpm runandpnpm exec.pnpm install --globalwould create local executables visible system-wide.pacquetcurrently doesn't make them.Tasks
Examine
pacquetown codebase to see whether it currently supportsbin.Research the
pnpmcodebase. 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 howpnpmimplemented it.Requirements
Mirror pnpm v11.
Carefully read and comply with
AGENTS.md,CONTRIBUTING.md, andCODE_STYLE_GUIDE.mdbefore writing code. Also, after writing code, carefully double check whether the written code comply with these files.