Skip to content

Commit

Permalink
Tooling: Fix commands containing dot-slashes in npm scripts (#39739)
Browse files Browse the repository at this point in the history
* fix npm scripts'changelog'

* fix npm scripts 'build:plugin-zip' 'test-unit:date' 'test:create-block'
  • Loading branch information
t-hamano authored Apr 20, 2022
1 parent 25b6f5c commit 5af694c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 );",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 5af694c

Please sign in to comment.