@titanium/tiapp-xml
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -27,2 +27,3 @@ #!/usr/bin/env node | ||
}); | ||
tiapp.write(); | ||
@@ -32,5 +33,8 @@ } else if (args.length) { | ||
addModule(args[0], args[1], args[2]); | ||
tiapp.write(); | ||
} | ||
function addModule(name, platform, version) { | ||
console.error('installing module. name: ' + name + ' platform: ' + platform + ' version: ' + version); | ||
if (platform && version) { | ||
@@ -46,2 +50,3 @@ tiapp.setModule(name, { platform: platform, version: version }); | ||
function removeModule(name, platform) { | ||
console.error('removing module. name: ' + name + ' platform: ' + platform); | ||
if (platform) { | ||
@@ -48,0 +53,0 @@ tiapp.removeModule(name, platform); |
@@ -26,2 +26,3 @@ #!/usr/bin/env node | ||
}); | ||
tiapp.write(); | ||
@@ -33,2 +34,3 @@ } else if (args.length) { | ||
function removeModule(name, platform) { | ||
console.error('removing module. name: ' + name + ' platform: ' + platform); | ||
if (platform) { | ||
@@ -35,0 +37,0 @@ tiapp.removeModule(name, platform); |
{ | ||
"name": "@titanium/tiapp-xml", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "Titanium tiapp.xml parsing and manipulation API - Fork from tonylukasavage", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
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
35421
616