Skip to content
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

document optional npmrc option #529

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/npmrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ With this layout, most of the packages in the ecosystem work with no issues.
However, if some tooling only works when the hoisted dependencies are in the
root of `node_modules`, you can set this to `true` to hoist them for you.

## Other Dependency Settings

### optional

* Default: **true**
* Type: **Boolean**

By default, pnpm installs `optionalDependencies` of your dependencies and their
transitive dependencies. If `optional` is set to `false`, pnpm will not install
optional dependencies, just like if you use the `--no-optional` CLI option.

## Node-Modules Settings

### store-dir
Expand Down