@eclipse-che/devfile-converter
Advanced tools
Comparing version 0.0.1-ba9d381 to 0.0.1-eb20432
@@ -309,3 +309,4 @@ "use strict"; | ||
if (commandV1.name) { | ||
devfileV2Command.id = commandV1.name; | ||
// the id can't have spaces | ||
devfileV2Command.id = commandV1.name.replace(/\s+/g, '-').toLowerCase(); | ||
} | ||
@@ -315,2 +316,6 @@ if (commandV1.actions && commandV1.actions[0].type === 'exec') { | ||
var action = commandV1.actions[0]; | ||
// label is the same as name | ||
if (commandV1.name) { | ||
devfileV2Command.exec.label = commandV1.name; | ||
} | ||
if (action.command) { | ||
@@ -336,2 +341,5 @@ devfileV2Command.exec.commandLine = action.command; | ||
if (commandV2.exec) { | ||
if (commandV2.exec.label) { | ||
devfileV1Command.name = commandV2.exec.label; | ||
} | ||
var devfileAction = {}; | ||
@@ -693,3 +701,3 @@ if (commandV2.exec.commandLine) { | ||
devfileV1.components.push({ | ||
id: "".concat(recommendation.replaceAll('.', '/'), "/latest"), | ||
id: "".concat(recommendation.replace(/\./g, '/'), "/latest"), | ||
type: 'chePlugin' | ||
@@ -696,0 +704,0 @@ }); |
{ | ||
"name": "@eclipse-che/devfile-converter", | ||
"version": "0.0.1-ba9d381", | ||
"version": "0.0.1-eb20432", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
113376
1301