mirror of
https://github.com/woocommerce/woocommerce.git
synced 2025-09-04 11:06:25 +08:00
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:
parent
cd31ec0dd5
commit
04b74c1053
60 changed files with 5839 additions and 6089 deletions
|
@ -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/*'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue