diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json index 5053160a63d..44ae1790cf5 100644 --- a/plugins/woocommerce/package.json +++ b/plugins/woocommerce/package.json @@ -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", diff --git a/plugins/woocommerce/project.json b/plugins/woocommerce/project.json index 15dc9f9d84c..daceebe9e15 100644 --- a/plugins/woocommerce/project.json +++ b/plugins/woocommerce/project.json @@ -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": {