From 546126733ef4d5703b04fa2857d819c2eac4a591 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Tue, 24 Mar 2020 23:10:07 -0600 Subject: [PATCH] Change diff:develop to diff-develop It looks like most package.json scripts with a colon are for when there are multiple scripts that have the same prefix. --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2768a9d56f8..5dd40c30684 100644 --- a/package.json +++ b/package.json @@ -105,18 +105,18 @@ "check-licenses": "wp-scripts check-licenses --production", "deploy": "grunt deploy", "dev": "wp-scripts start", - "diff:develop": "git diff develop --diff-filter=d --name-only", + "diff-develop": "git diff develop --diff-filter=d --name-only", "env:start": "./bin/local-env/start.sh", "env:stop": "./bin/local-env/stop.sh", "env:reset-site": "./bin/local-env/install-wordpress.sh --reset-site", "lint": "npm-run-all --parallel lint:*", - "lint:css": "npm run diff:develop | grep -E 'css$' | xargs wp-scripts lint-style", + "lint:css": "npm run diff-develop | grep -E 'css$' | xargs wp-scripts lint-style", "lint:css:fix": "npm run lint:css -- --fix", - "lint:js": "npm run diff:develop | grep -E '\\.js$' | xargs wp-scripts lint-js", + "lint:js": "npm run diff-develop | grep -E '\\.js$' | xargs wp-scripts lint-js", "lint:js:fix": "npm run lint:js -- --fix", - "lint:php": "npm run diff:develop | grep -E '\\.php$' | xargs vendor/bin/phpcs", + "lint:php": "npm run diff-develop | grep -E '\\.php$' | xargs vendor/bin/phpcs", "lint:plugin-bootstrap": "vendor/bin/phpcs --runtime-set testVersion 5.2- amp.php", - "lint:php:fix": "npm run diff:develop | grep -E '\\.php$' | xargs ./bin/phpcbf.sh", + "lint:php:fix": "npm run diff-develop | grep -E '\\.php$' | xargs ./bin/phpcbf.sh", "lint:pkg-json": "wp-scripts lint-pkg-json --ignorePath .gitignore", "start": "wp-scripts start", "test": "npm-run-all --parallel test:*",