Skip to content

Commit bbc90ae

Browse files
Build/Test Tools: Make Composer available via npm run on the host machine.
This enables developers to directly invoke the Composer instance of the `wordpressdevelop/php` container from their host machine, making it easier to call Composer-specific scripts: linting, formatting, etc. Props paulbonneau, SirLouen. Fixes #63912. git-svn-id: https://develop.svn.wordpress.org/trunk@60803 602fd350-edb4-49c9-b593-d223f7449a82
1 parent eca40de commit bbc90ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
"env:reset": "node ./tools/local-env/scripts/docker.js down --rmi all -v --remove-orphans",
185185
"env:install": "node ./tools/local-env/scripts/install.js",
186186
"env:cli": "node ./tools/local-env/scripts/docker.js exec --user wp_php cli wp",
187+
"env:composer": "node ./tools/local-env/scripts/docker.js run -T --rm php composer",
187188
"env:logs": "node ./tools/local-env/scripts/docker.js logs",
188189
"env:pull": "node ./tools/local-env/scripts/docker.js pull",
189190
"test:performance": "wp-scripts test-playwright --config tests/performance/playwright.config.js",

0 commit comments

Comments
 (0)