Skip to content

docs: update hoist docs to mention pnpm-workspace.yaml#2899

Open
gzm0 wants to merge 1 commit into
aspect-build:mainfrom
gzm0:hoist-docs
Open

docs: update hoist docs to mention pnpm-workspace.yaml#2899
gzm0 wants to merge 1 commit into
aspect-build:mainfrom
gzm0:hoist-docs

Conversation

@gzm0

@gzm0 gzm0 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

pnpm 11 does not read settings from .npmrc anymore (pnpm 10 already supports reading hoist from pnpm-workspace.yaml).

Note that there are likely many places to update in this repository itself.

pnpm 11 does not read settings from .npmrc anymore.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e5a94a95c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/pnpm.md
Comment on lines +107 to +110
To make the behavior outside of Bazel match, we recommend adding `hoist: false` to your `pnpm-workspace.yaml`:

```shell
echo "hoist=false" >> .npmrc
echo "hoist: false" >> pnpm-workspace.yaml

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve pnpm 9 hoist guidance

For users still on pnpm 9, this version-agnostic replacement no longer tells them how to disable hoisting: the repo still supports pnpm v9+ (npm_translate_lock requires lock_version at least 9.0 in npm/private/test/parse_pnpm_lock_tests.bzl, and e2e modules still pin pnpm_version = "9.15.9"), while the workspace-settings path is treated as pnpm v10+ in npm/private/npm_translate_lock_state.bzl. Those users will follow this new pnpm-workspace.yaml guidance and keep pnpm's hidden hoist folder enabled, so their local node_modules will not match rules_js; please keep the .npmrc instruction for pnpm 9 or call out the pnpm 10+/11-only behavior.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pnpm 9.x docs are nowhere to be found. Suspect EOL?

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.

1 participant