From a0c13abd839665ca0acd02b5166df130b35c83ee Mon Sep 17 00:00:00 2001 From: Paul Sealock Date: Wed, 21 Sep 2022 15:34:24 +1200 Subject: [PATCH] pnpm 7 update: Remove unused dashes (#34754) * remove unused dashes in pnpm scripts calling other pnpm commands * changelog --- plugins/woocommerce-admin/package.json | 8 ++++---- plugins/woocommerce/changelog/fix-pnpm-7-script-dashes | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 plugins/woocommerce/changelog/fix-pnpm-7-script-dashes diff --git a/plugins/woocommerce-admin/package.json b/plugins/woocommerce-admin/package.json index f3a1632ecc5..be9330e0a5b 100644 --- a/plugins/woocommerce-admin/package.json +++ b/plugins/woocommerce-admin/package.json @@ -28,7 +28,7 @@ "lint:css": "stylelint '**/*.scss'", "lint:css-fix": "stylelint '**/*.scss' --fix --ip 'storybook/wordpress'", "lint:js": "eslint ./client --ext=js,ts,tsx", - "lint:js-fix": "pnpm run lint:js -- --fix --ext=js,ts,tsx", + "lint:js-fix": "pnpm run lint:js --fix --ext=js,ts,tsx", "lint:js-packages": "eslint ../../packages/js --ext=js,ts,tsx", "lint:js-pre-commit": "eslint --ext=js,ts,tsx", "prepack": "pnpm install && pnpm run lint && pnpm run test && cross-env WC_ADMIN_PHASE=core pnpm run build", @@ -36,12 +36,12 @@ "packages:watch": "cross-env WC_ADMIN_PHASE=development pnpm run:packages -- start --parallel", "run:packages": "pnpm run --filter ../../packages/js/", "start": "cross-env WC_ADMIN_PHASE=development pnpm -w run build --filter='./packages/js/*' && cross-env WC_ADMIN_PHASE=development pnpm run build:feature-config && concurrently \"cross-env WC_ADMIN_PHASE=development webpack --watch\" \"cross-env WC_ADMIN_PHASE=development pnpm packages:watch\"", - "test-staged": "pnpm run test:client -- --bail --findRelatedTests", + "test-staged": "pnpm run test:client --bail --findRelatedTests", "test:client": "jest --config client/jest.config.js", "test:debug": "node --inspect-brk ./node_modules/.bin/jest --config client/jest.config.js --watch --runInBand --no-cache", "test:help": "wp-scripts test-unit-js --help", - "test:update-snapshots": "pnpm run test:client -- --updateSnapshot && pnpm run --filter @woocommerce/components test:update-snapshots", - "test:watch": "pnpm run test:client -- --watch", + "test:update-snapshots": "pnpm run test:client --updateSnapshot && pnpm run --filter @woocommerce/components test:update-snapshots", + "test:watch": "pnpm run test:client --watch", "ts:check": "tsc --build ./tsconfig.json --pretty", "ts:check:watch": "npm run ts:check -- --watch" }, diff --git a/plugins/woocommerce/changelog/fix-pnpm-7-script-dashes b/plugins/woocommerce/changelog/fix-pnpm-7-script-dashes new file mode 100644 index 00000000000..60f47537590 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-pnpm-7-script-dashes @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Fix a pnpm script execution error + +