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

Add pnpm v10 install allowlist pnpm.onlyBuiltDependencies instructions #6072

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MikeMcC399
Copy link
Contributor

@MikeMcC399 MikeMcC399 commented Jan 8, 2025

Issue

[email protected], released Jan 7, 2025 includes a breaking change:

Lifecycle scripts of dependencies are not executed during installation by default!

cypress needs to be added to the allowlist for pnpm life cycle scripts in package.json, for instance using the following:

  "pnpm": {
    "onlyBuiltDependencies": ["cypress"]
  }

Change

The installation instructions for Cypress with pnpm are updated to include references to the pnpm documentation:

Note

Currently, executing npm install pnpm@latest --global installs pnpm@9.

The pnpm installation document instructions for using npm currently lists npm install -g pnpm@latest-10 for pnpm@10.

According to the pnpm maintainer https://github.com/orgs/pnpm/discussions/8945#discussioncomment-11775139 this is for a temporary burn-in period. Sooner or later pnpm@latest will be equivalent to [email protected].

Copy link

netlify bot commented Jan 8, 2025

👷 Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f7092f3

@cypress-app-bot
Copy link
Collaborator

@MikeMcC399 MikeMcC399 marked this pull request as ready for review January 8, 2025 13:11
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.

pnpm v10 blocks Cypress binary installation by default
2 participants