From 5af694cbde77e03bdcb8221c7b5bbde18cc23bf9 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 20 Apr 2022 21:42:21 +0900 Subject: [PATCH] Tooling: Fix commands containing dot-slashes in npm scripts (#39739) * fix npm scripts'changelog' * fix npm scripts 'build:plugin-zip' 'test-unit:date' 'test:create-block' --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f22bd174234485..ce4d2281cbbda4 100755 --- a/package.json +++ b/package.json @@ -241,9 +241,9 @@ "prebuild:packages": "npm run clean:packages && lerna run build", "build:packages": "npm run build:package-types && node ./bin/packages/build.js", "build:package-types": "node ./bin/packages/validate-typescript-version.js && tsc --build", - "build:plugin-zip": "./bin/build-plugin-zip.sh", + "build:plugin-zip": "bash ./bin/build-plugin-zip.sh", "build": "npm run build:packages && wp-scripts build", - "changelog": "./bin/plugin/cli.js changelog", + "changelog": "node ./bin/plugin/cli.js changelog", "check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios\" \"wp-scripts check-licenses --dev\"", "precheck-local-changes": "npm run docs:build", "check-local-changes": "( git diff -U0 | xargs -0 node bin/process-git-diff ) || ( echo \"There are local uncommitted changes after one or both of 'npm install' or 'npm run docs:build'!\" && git diff --exit-code && exit 1 );", @@ -276,7 +276,7 @@ "publish:patch": "lerna publish patch --no-private --dist-tag patch", "publish:latest": "lerna publish --no-private", "test": "npm run lint && npm run test-unit", - "test:create-block": "./bin/test-create-block.sh", + "test:create-block": "bash ./bin/test-create-block.sh", "test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js", "test-e2e:playwright": "playwright test --config test/e2e/playwright.config.ts", "test-e2e:debug": "wp-scripts --inspect-brk test-e2e --config packages/e2e-tests/jest.config.js --puppeteer-devtools", @@ -285,7 +285,7 @@ "test-php": "npm run lint-php && npm run test-unit-php", "test-php:watch": "wp-env run composer run-script test:watch", "test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.js", - "test-unit:date": "./bin/unit-test-date.sh", + "test-unit:date": "bash ./bin/unit-test-date.sh", "test-unit:debug": "wp-scripts --inspect-brk test-unit-js --runInBand --no-cache --verbose --config test/unit/jest.config.js ", "test-unit:update": "npm run test-unit -- --updateSnapshot", "test-unit:watch": "npm run test-unit -- --watch",