diff --git a/cli/src/commands/app/apps.ts b/cli/src/commands/app/apps.ts index 5892eb0d91..c55c396209 100644 --- a/cli/src/commands/app/apps.ts +++ b/cli/src/commands/app/apps.ts @@ -63,7 +63,15 @@ export function replaceInlineScripts( } if (typeof rec == "object") { return Object.entries(rec).flatMap(([k, v]) => { - if (k == "inlineScript" && typeof v == "object") { + if (k == "runType") { + if (addType) { + if (isVersionsGeq1585()) { + rec["type"] = "path"; + } else { + rec["type"] = "runnableByPath"; + } + } + } else if (k == "inlineScript" && typeof v == "object") { if (addType) { if (isVersionsGeq1585()) { rec["type"] = "inline";