New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: prefer-symlinked-executables #5048
Conversation
A new setting supported: `prefer-symlinked-executables` When `true`, on Posix systems pnpm will create symlinks to executables in `node_modules/.bin` instead of command shims. This setting is `true` by default when `node-linker` is set to `hoisted`. close #4782
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
Looks good to me. But im a little curious about the roadmap of this config, whether it will be default true in the future, or a pattern-like config for some packages, such as pnpm.preferSymlinkExecutableDependencies: [“foo“], or maybe a counter side: pnpm.preferCommandShimDependencies: [“foo“] ? |
I don't think such complex configuration is needed for this. |
A new setting supported:
prefer-symlinked-executables
When
true
, on Posix systems pnpm will create symlinks to executables innode_modules/.bin
instead of command shims.This setting is
true
by default whennode-linker
is set tohoisted
.close #4782