Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.4.13 to 8.5.0-beta.1

18

bin/nx.js
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var fs_1 = require("fs");
var path = require("path");
const fs_1 = require("fs");
const path = require("path");
function findWorkspaceRoot(dir) {

@@ -10,6 +10,6 @@ if (path.dirname(dir) === dir)

if (exists(path.join(dir, 'angular.json'))) {
return { type: 'angular', dir: dir };
return { type: 'angular', dir };
}
else if (exists(path.join(dir, 'workspace.json'))) {
return { type: 'nx', dir: dir };
return { type: 'nx', dir };
}

@@ -28,3 +28,3 @@ else {

}
var workspace = findWorkspaceRoot(__dirname);
const workspace = findWorkspaceRoot(__dirname);
// we are running a local nx

@@ -34,3 +34,3 @@ if (workspace) {

// It is exposed and bootstrapped here to provide CLI features.
var w = require('@nrwl/workspace');
const w = require('@nrwl/workspace');
if (w.supportedNxCommands.includes(process.argv[2])) {

@@ -46,3 +46,3 @@ // The commandsObject is a Yargs object declared in `nx-commands.ts`,

w.output.note({
title: "Nx didn't recognize the command, forwarding on to the Angular CLI."
title: `Nx didn't recognize the command, forwarding on to the Angular CLI.`
});

@@ -54,3 +54,3 @@ require(path.join(workspace.dir, 'node_modules', '@angular', 'cli', 'lib', 'init.js'));

// we are running global nx
var w = findWorkspaceRoot(process.cwd());
const w = findWorkspaceRoot(process.cwd());
if (w) {

@@ -60,5 +60,5 @@ require(path.join(w.dir, 'node_modules', '@nrwl', 'cli', 'bin', 'nx.js'));

else {
console.log("The current directory isn't part of an Nx workspace.");
console.log(`The current directory isn't part of an Nx workspace.`);
process.exit(0);
}
}
{
"name": "@nrwl/cli",
"version": "8.4.13",
"version": "8.5.0-beta.1",
"description": "",

@@ -33,4 +33,4 @@ "repository": {

"yargs": "^11.0.0",
"@nrwl/tao": "8.4.13"
"@nrwl/tao": "8.5.0-beta.1"
}
}
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