@eclipse-che/devfile-converter
Advanced tools
Comparing version 0.0.1-7dba6e5 to 0.0.1-b03c439
@@ -220,2 +220,7 @@ "use strict"; | ||
} | ||
else { | ||
// if not specified, mountSources needs to be added back on the container | ||
// as the default is not the same | ||
devfileV1Component.mountSources = true; | ||
} | ||
if (componentV2.container.args) { | ||
@@ -578,3 +583,3 @@ devfileV1Component.args = componentV2.container.args; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var devfileV2, inlineCheTheiaPluginsYaml, inlineVsCodeExtensionJson, inlineCheEditorYaml, launchCommand; | ||
var devfileV2, inlineCheTheiaPluginsYaml, inlineVsCodeExtensionJson, inlineCheEditorYaml, launchCommand, content; | ||
var _this = this; | ||
@@ -614,3 +619,7 @@ return __generator(this, function (_b) { | ||
} | ||
return [2 /*return*/, devfileV2]; | ||
content = JSON.stringify(devfileV2); | ||
// update devfile v1 constants | ||
content = content.replace(/\$\(CHE_PROJECTS_ROOT\)/g, '$(PROJECTS_ROOT)'); | ||
content = content.replace(/\$\{CHE_PROJECTS_ROOT\}/g, '${PROJECTS_ROOT}'); | ||
return [2 /*return*/, JSON.parse(content)]; | ||
}); | ||
@@ -780,3 +789,3 @@ }); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var devfileV1, attributeKeys, attributes_1, devfileV1Any; | ||
var devfileV1, attributeKeys, attributes_1, devfileV1Any, content; | ||
var _this = this; | ||
@@ -822,3 +831,7 @@ return __generator(this, function (_a) { | ||
} | ||
return [2 /*return*/, devfileV1]; | ||
content = JSON.stringify(devfileV1, undefined, 2); | ||
// update devfile v2 constants | ||
content = content.replace(/\$\(PROJECTS_ROOT\)/g, '$(CHE_PROJECTS_ROOT)'); | ||
content = content.replace(/\$\{PROJECTS_ROOT\}/g, '${CHE_PROJECTS_ROOT}'); | ||
return [2 /*return*/, JSON.parse(content)]; | ||
} | ||
@@ -825,0 +838,0 @@ }); |
{ | ||
"name": "@eclipse-che/devfile-converter", | ||
"version": "0.0.1-7dba6e5", | ||
"version": "0.0.1-b03c439", | ||
"description": "Convert devfile v1 to v2 or v2 to v1", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
90802
1196