@titanium/tiapp-xml
Advanced tools
Comparing version 1.0.0 to 1.0.1
#!/usr/bin/env node | ||
const path = require(`path`); | ||
const args = process.argv.slice(2); | ||
// const args = process.argv.slice(2); | ||
const get = require(`lodash.get`); | ||
if (!args.length && !process.env.npm_package_name) { | ||
console.error(`No parameters specified and not run from npm package script`); | ||
process.exit(1); | ||
} | ||
// if (!args.length && !process.env.npm_package_name) { | ||
// console.error(`No parameters specified and not run from npm package script`); | ||
// process.exit(1); | ||
// } | ||
const cwd = args[args.length - 1]; | ||
// const cwd = args[args.length - 1]; | ||
const tiappDir = require(`../tiapp-dir`); | ||
// const root = tiappDir.sync(__dirname); | ||
const root = tiappDir.sync(cwd); | ||
const root = tiappDir.sync(process.env.INIT_CWD); | ||
if (!root) { | ||
console.error(`Could not find tiapp.xml in directory tree: ${cwd}`); | ||
console.error(`Could not find tiapp.xml in directory tree: ${process.env.INIT_CWD}`); | ||
process.exit(1); | ||
@@ -20,0 +20,0 @@ } |
#!/usr/bin/env node | ||
const path = require(`path`); | ||
const args = process.argv.slice(2); | ||
// const args = process.argv.slice(2); | ||
const get = require(`lodash.get`); | ||
if (!args.length && !process.env.npm_package_name) { | ||
console.error(`No parameters specified and not run from npm package script`); | ||
process.exit(1); | ||
} | ||
const cwd = args[args.length - 1]; | ||
// if (!args.length && !process.env.npm_package_name) { | ||
// console.error(`No parameters specified and not run from npm package script`); | ||
// process.exit(1); | ||
// } | ||
// const cwd = args[args.length - 1]; | ||
const tiappDir = require(`../lib/tiapp-dir`); | ||
const root = tiappDir.sync(cwd); | ||
const root = tiappDir.sync(process.env.INIT_CWD); | ||
if (!root) { | ||
console.error(`Could not find tiapp.xml in directory tree: ${cwd}`); | ||
console.error(`Could not find tiapp.xml in directory tree: ${process.env.INIT_CWD}`); | ||
process.exit(1); | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "@titanium/tiapp-xml", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Titanium tiapp.xml parsing and manipulation API - Forked from tonylukasavage", | ||
@@ -26,8 +26,5 @@ "license": "MIT", | ||
"test": "npm install --ignore-scripts && npm run list-files", | ||
"prepublishOnly2": "git pull && bump" | ||
"prepublishOnly": "git pull && bump" | ||
}, | ||
"bin": { | ||
"tiapp-install-module": "./cli/install-module.js", | ||
"tiapp-uninstall-module": "./cli/uninstall-module.js" | ||
}, | ||
"bin": "./cli/main.js", | ||
"repository": { | ||
@@ -34,0 +31,0 @@ "type": "git", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
37124
14
671
33