@nrwl/cli
Advanced tools
Comparing version 8.2.1 to 8.2.2-beta.1
#!/usr/bin/env node | ||
'use strict'; | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
try { | ||
process.title = 'nx ' + Array.from(process.argv).slice(2).join(' '); | ||
process.title = | ||
'nx ' + | ||
Array.from(process.argv) | ||
.slice(2) | ||
.join(' '); | ||
} catch (_) { | ||
process.title = 'nx'; | ||
} | ||
catch (_) { | ||
process.title = 'nx'; | ||
const nxPath = pathInner(process.cwd()); | ||
if (nxPath) { | ||
require(nxPath); | ||
} else { | ||
console.error('Could not find nx installed locally'); | ||
process.exit(1); | ||
} | ||
try { | ||
require(process.cwd() + '/node_modules/.bin/nx'); | ||
function pathInner(dir) { | ||
if (path.dirname(dir) === dir) return null; | ||
const nxPath = path.join(dir, 'node_modules', '.bin', 'nx'); | ||
if (fileExists(nxPath)) { | ||
return nxPath; | ||
} else { | ||
return pathInner(path.dirname(dir)); | ||
} | ||
} | ||
catch (e) { | ||
console.error("Could not find nx installed locally"); | ||
process.exit(1); | ||
function fileExists(filePath) { | ||
try { | ||
return fs.statSync(filePath).isFile(); | ||
} catch (err) { | ||
return false; | ||
} | ||
} |
{ | ||
"name": "@nrwl/cli", | ||
"version": "8.2.1", | ||
"version": "8.2.2-beta.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
10316
36
4
1
2