From b00e7ee445a31ad896084641971305ea1e9f6508 Mon Sep 17 00:00:00 2001 From: Roy Ho Date: Tue, 27 Sep 2022 13:55:31 -0700 Subject: [PATCH] Update PNPM commands in documentation post PNPM 7 update (#34853) --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- DEVELOPMENT.md | 4 ++-- tools/monorepo/check-changelogger-use.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1a6c1076567..7f0abf47ce2 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -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=`? +- [ ] Have you created a changelog file for each project being changed, ie `pnpm --filter= run changelog add`? diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 6517338e081..bc3ae4d936c 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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 diff --git a/tools/monorepo/check-changelogger-use.php b/tools/monorepo/check-changelogger-use.php index df6f00c181d..b2819ef2a48 100644 --- a/tools/monorepo/check-changelogger-use.php +++ b/tools/monorepo/check-changelogger-use.php @@ -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 );