cli app backcompatibility

This commit is contained in:
Ruben Fiszel
2025-12-06 16:46:09 +00:00
parent 0e63dd301f
commit a89759bb74

View File

@@ -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";