From 79ee6c00f5863e99b997d240316eab7428d028c9 Mon Sep 17 00:00:00 2001 From: roykho Date: Wed, 17 Nov 2021 11:32:53 -0800 Subject: [PATCH] Create a seperate no dev composer install command --- .github/workflows/pr-smoke-test.yml | 2 +- plugins/woocommerce/project.json | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-smoke-test.yml b/.github/workflows/pr-smoke-test.yml index bf732350184..aa679b79206 100644 --- a/.github/workflows/pr-smoke-test.yml +++ b/.github/workflows/pr-smoke-test.yml @@ -28,7 +28,7 @@ jobs: run: | npm install -g pnpm pnpm install - pnpm nx composer-install --args="--flag=--no-dev" woocommerce + pnpm nx composer-install-no-dev" woocommerce pnpm nx build-assets woocommerce pnpm install jest diff --git a/plugins/woocommerce/project.json b/plugins/woocommerce/project.json index 8841d7d6810..6a42684fdad 100644 --- a/plugins/woocommerce/project.json +++ b/plugins/woocommerce/project.json @@ -7,7 +7,16 @@ "executor": "@nrwl/workspace:run-commands", "options": { "commands": [ - "composer install {args.flag}" + "composer install" + ], + "cwd": "plugins/woocommerce" + } + }, + "composer-install-no-dev": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + "composer install --no-dev" ], "cwd": "plugins/woocommerce" }