diff --git a/package.json b/package.json index 3595937..e48e068 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,10 @@ "setup": "npm-run-all start start:test composer:setup", "start": "wp-env start", "start:test": "wp-env --config .wp-env.test.json start", - "composer": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/phpdoc-parser' wordpress composer --no-interaction --no-security-blocking", - "composer:setup": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/phpdoc-parser' wordpress composer install --no-interaction --no-security-blocking", + "composer": "wp-env --config .wp-env.test.json run --env-cwd=\"wp-content/plugins/$(basename \"$PWD\")\" wordpress composer --no-interaction --no-security-blocking", + "composer:setup": "wp-env --config .wp-env.test.json run --env-cwd=\"wp-content/plugins/$(basename \"$PWD\")\" wordpress composer install --no-interaction --no-security-blocking", "test:phpunit:setup": "npm-run-all start:test composer:setup", - "test:phpunit": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/phpdoc-parser' wordpress vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist" + "test:phpunit": "wp-env --config .wp-env.test.json run --env-cwd=\"wp-content/plugins/$(basename \"$PWD\")\" wordpress vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist" }, "repository": { "type": "git",