Merge pull request #31122 from woocommerce/woocommerce-composer

Add some common composer executor commands for woocommerce so it can …
This commit is contained in:
jonathansadowski 2021-11-10 12:08:34 -06:00 committed by GitHub
commit 392d79ab01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,8 @@
"wp_org_slug": "woocommerce"
},
"scripts": {
"composer:install": "composer install",
"composer:dump-autoload": "composer dump-autoload",
"check:subset-installed": "pnpm list --depth 1 install-subset > /dev/null 2>&1",
"preinstall": "npx only-allow pnpm",
"install:subset-only": "pnpm install --no-package-lock --no-save install-subset",

View File

@ -3,6 +3,18 @@
"sourceRoot": "plugins/woocommerce",
"projectType": "application",
"targets": {
"composer-install": {
"executor": "@nrwl/workspace:run-script",
"options": {
"script": "composer:install"
}
},
"composer-dump-autoload": {
"executor": "@nrwl/workspace:run-script",
"options": {
"script": "composer:dump-autoload"
}
},
"build": {
"executor": "@nrwl/workspace:run-script",
"options": {