@titanium/tiapp-xml
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
const tiappDir = require('../lib/tiapp-dir'); | ||
const tiappDir = require('../tiapp-dir'); | ||
const root = tiappDir.sync(__dirname); | ||
@@ -23,3 +23,3 @@ | ||
const tiapp = require('../lib/tiapp-xml').load(path.join(root, 'tiapp.xml')); | ||
const tiapp = require('../tiapp-xml').load(path.join(root, 'tiapp.xml')); | ||
@@ -26,0 +26,0 @@ if (!args.length && process.env.npm_package_name) { |
#!/usr/bin/env node | ||
var path = require('path'); | ||
var args = process.argv.slice(2); | ||
const path = require('path'); | ||
const args = process.argv.slice(2); | ||
if (args.length) { | ||
var tiappDir = require('../lib/tiapp-dir'); | ||
const tiappDir = require('../tiapp-dir'); | ||
@@ -11,7 +11,7 @@ tiappDir(__dirname).then(rootPath => { | ||
if (!rootPath) { | ||
console.error('Could not find tiapp.xml in directory tree: ' + __dirname); | ||
console.error(`Could not find tiapp.xml in directory tree: ${__dirname}`); | ||
process.exit(1); | ||
} | ||
console.log('Removing module ' + args[0] + ' from ' + path.join(rootPath, 'tiapp.xml')); | ||
var tiapp = require('../lib/tiapp-xml').load(path.join(rootPath, 'tiapp.xml')); | ||
console.log(`Removing module ${args[0]} from ${path.join(rootPath, 'tiapp.xml')}`); | ||
const tiapp = require('../tiapp-xml').load(path.join(rootPath, 'tiapp.xml')); | ||
@@ -18,0 +18,0 @@ switch (args.length) { |
{ | ||
"name": "@titanium/tiapp-xml", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Titanium tiapp.xml parsing and manipulation API - Fork from tonylukasavage", | ||
@@ -18,3 +18,3 @@ "license": "MIT", | ||
], | ||
"main": "./lib/tiapp-xml.js", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -21,0 +21,0 @@ "list-files": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36639
1