Socket
Socket
Sign inDemoInstall

@nrwl/cli

Package Overview
Dependencies
Maintainers
1
Versions
997
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrwl/cli - npm Package Compare versions

Comparing version 8.2.1 to 8.2.2-beta.1

42

bin/nx.js
#!/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;
}
}

2

package.json
{
"name": "@nrwl/cli",
"version": "8.2.1",
"version": "8.2.2-beta.1",
"description": "",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc