From a89759bb74de169074219341aaa8cf0924091814 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 6 Dec 2025 16:46:09 +0000 Subject: [PATCH] cli app backcompatibility --- cli/src/commands/app/apps.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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";