2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-12 18:01:19 +00:00

Fix running action with params in monorepo

This commit is contained in:
Vjacheslav Trushkin 2022-02-02 11:13:13 +02:00
parent fd6758414b
commit d928002976

View File

@ -40,7 +40,7 @@ interface ActionWithParam {
} }
const actionWithParamsFunctions: Record<string, (param: string) => void> = { const actionWithParamsFunctions: Record<string, (param: string) => void> = {
run: (param: string) => { run: (param: string) => {
const params = ['run', param].concat(runParams); const params = ['run', param].concat(runParams || []);
runAction(`Running "npm ${params.join(' ')}"`, (workspace) => { runAction(`Running "npm ${params.join(' ')}"`, (workspace) => {
if ( if (
!actionOptions.ifPresent || !actionOptions.ifPresent ||