]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commit
fix: add `cypress install` to `prepare` script to fix pnpm 10 compatibility
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 6 Feb 2025 15:57:40 +0000 (23:57 +0800)
committerCédric Exbrayat <cexbrayat@users.noreply.github.com>
Thu, 6 Feb 2025 19:07:23 +0000 (20:07 +0100)
commit34b948ebd940eb5e11b05827aba438fcc4cca962
treefa03bb3f444bf549f14c52c16d1a68179ca5d5fb
parent9d804ae9baf3eca63acc5800b50c1e87b212c770
fix: add `cypress install` to `prepare` script to fix pnpm 10 compatibility

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`:
- <https://github.com/typicode/husky/issues/884>
template/config/cypress/package.json