cli app backcompatibility
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user