Update PNPM commands in documentation post PNPM 7 update (#34853)
This commit is contained in:
parent
814cd39e3c
commit
b00e7ee445
|
@ -25,7 +25,7 @@ Closes # .
|
|||
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
|
||||
- [ ] Have you written new tests for your changes, as applicable?
|
||||
- [ ] Have you successfully run tests with your changes locally?
|
||||
- [ ] Have you created a changelog file for each project being changed, ie `pnpm changelog add --filter=<project>`?
|
||||
- [ ] Have you created a changelog file for each project being changed, ie `pnpm --filter=<project> run changelog add`?
|
||||
|
||||
<!-- Mark completed items with an [x] -->
|
||||
|
||||
|
|
|
@ -66,10 +66,10 @@ Here are some examples of the commands you will make use of.
|
|||
|
||||
```bash
|
||||
# Add a changelog entry for WooCommerce Core
|
||||
pnpm changelog add --filter=woocommerce
|
||||
pnpm --filter=woocommerce run changelog add
|
||||
|
||||
# Create the woocommerce.zip file
|
||||
pnpm build:zip --filter=woocommerce
|
||||
pnpm --filter=woocommerce run build:zip
|
||||
```
|
||||
|
||||
## Plugin Development Environments
|
||||
|
|
|
@ -216,7 +216,7 @@ foreach ( $touched_projects as $slug => $files ) {
|
|||
} elseif ( getenv( 'CI' ) ) {
|
||||
printf( "---\n" ); // Bracket message containing newlines for better visibility in GH's logs.
|
||||
printf(
|
||||
"::error::Project %s is being changed, but no change file in %s is touched!%%0A%%0AUse `pnpm changelog add --filter=%s` to add a change file.\n",
|
||||
"::error::Project %s is being changed, but no change file in %s is touched!%%0A%%0AUse `pnpm --filter=%s run changelog add` to add a change file.\n",
|
||||
$slug,
|
||||
"$slug/{$changelogger_projects[ $slug ]['changes-dir']}/",
|
||||
$slug
|
||||
|
@ -234,7 +234,7 @@ foreach ( $touched_projects as $slug => $files ) {
|
|||
}
|
||||
}
|
||||
if ( $exit && ! getenv( 'CI' ) && ! $list ) {
|
||||
printf( "\e[32mUse `pnpm changelog add --filter={project}` to add a change file for each project.\e[0m\n" );
|
||||
printf( "\e[32mUse `pnpm --filter={project} run changelog add` to add a change file for each project.\e[0m\n" );
|
||||
}
|
||||
|
||||
exit( $exit );
|
||||
|
|
Loading…
Reference in New Issue