From d928002976bdf59c63399f13f49ce279b2e970d6 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Wed, 2 Feb 2022 11:13:13 +0200 Subject: [PATCH] Fix running action with params in monorepo --- monorepo/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monorepo/src/index.ts b/monorepo/src/index.ts index b523a07..0104482 100644 --- a/monorepo/src/index.ts +++ b/monorepo/src/index.ts @@ -40,7 +40,7 @@ interface ActionWithParam { } const actionWithParamsFunctions: Record void> = { run: (param: string) => { - const params = ['run', param].concat(runParams); + const params = ['run', param].concat(runParams || []); runAction(`Running "npm ${params.join(' ')}"`, (workspace) => { if ( !actionOptions.ifPresent ||