Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

haoqunjiang
Copy link
Member

This approach works with both pnpm 10 and other package managers:

  • If Cypress's postinstall script has been run, it'll do nothing other than print a message.
  • If postinstall hasn't been run, it'll download the Cypress binary.

As for why using prepare instead of postinstall, please refer to the discussion thread where husky decided to use prepare:

…bility

This approach works with both pnpm 10 and other package managers:
- If Cypress's `postinstall` script has been run, it'll do nothing other
than print a message.
- If `postinstall` hasn't been run, it'll download the Cypress binary.

As for why using `prepare` instead of `postinstall`, please refer to the
discussion thread where `husky` decided to use `prepare`:
- <typicode/husky#884>
@cexbrayat cexbrayat merged commit 3def8a9 into vuejs:main Feb 6, 2025
52 checks passed
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.

2 participants