diff --git a/package.json b/package.json index 485374444..50c2b8472 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,13 @@ "wp-env": "wp-env", "lint-js": "wp-scripts lint-js", "format-js": "npm run lint-js -- --fix", - "prelint-php": "wp-env run composer 'install --no-interaction'", - "phpstan": "wp-env run composer run-script phpstan", - "lint-php": "wp-env run composer run-script lint", - "format-php": "wp-env run composer run-script format", - "pretest-php": "wp-env run composer 'install --no-interaction'", + "prelint-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer 'install --no-interaction'", + "phpstan": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer run-script phpstan", + "lint-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer run-script lint", + "format-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer run-script format", + "pretest-php": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer 'install --no-interaction'", "test-php": "wp-env run tests-cli 'phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/phpunit.xml.dist --verbose'", - "pretest-php-coverage": "wp-env run composer 'install --no-interaction'", + "pretest-php-coverage": "wp-env run tests-cli --env-cwd=/var/www/html/wp-content/plugins/plugin-check/ composer 'install --no-interaction'", "test-php-coverage": "wp-env run tests-cli 'phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/phpunit.xml.dist --verbose --coverage-clover /var/www/html/wp-content/plugins/$(basename $(pwd))/build/logs/php-coverage.xml'", "test-php-multisite": "wp-env run tests-cli 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/tests/phpunit/multisite.xml --verbose'", "test-php-multisite-coverage": "wp-env run tests-cli 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/$(basename $(pwd))/tests/phpunit/multisite.xml --verbose --coverage-clover /var/www/html/wp-content/plugins/$(basename $(pwd))/build/logs/php-coverage-multisite.xml'"