Upgrade to pnpm 7 (#34661)

* Remove -- -- from scripts that fixed issue in pnpm 6, fix a couple TS issues in sep packages
* Minor fixes to analyzer scripts and doco based on pnpm 7
* Add dompurify types to data package to avoid TS errors
* Remove pnpx in favor of pnpm exec
* Modify the code analyzer to respect pnpm version if present.
* Update instructions for running recursive lint, add comments to explain
This commit is contained in:
Sam Seay 2022-09-16 09:21:42 +12:00 committed by GitHub
parent cd31ec0dd5
commit 04b74c1053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 5839 additions and 6089 deletions

View file

@ -21,14 +21,16 @@ If you would like to read more about the syntax, please check out [the Turborepo
Here are some examples of the ways you can use Turborepo / pnpm commands:
```bash
# Lint and build all plugins, packages, and tools
pnpm run lint && pnpm run build
# Lint and build all plugins, packages, and tools. Note the use of `-r` for lint,
# turbo does not run the lint at this time.
pnpm run -r lint && pnpm run build
# Build WooCommerce Core and all of its dependencies
pnpm run build --filter='woocommerce'
# Lint the @woocommerce/components package
pnpm run lint --filter='@woocommerce/components'
# Lint the @woocommerce/components package - note the different argument order, turbo scripts
# are not running lints at this point in time.
pnpm run -r --filter='@woocommerce/components' lint
# Test all of the @woocommerce scoped packages
pnpm run test --filter='@woocommerce/*'