@nrwl/cli
Advanced tools
Comparing version 8.4.13 to 8.5.0-beta.1
#!/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" | ||
} | ||
} |
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
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
11453
1
+ Added@angular-devkit/architect@0.803.2(transitive)
+ Added@angular-devkit/core@8.3.2(transitive)
+ Added@angular-devkit/schematics@8.3.2(transitive)
+ Added@nrwl/tao@8.5.0-beta.1(transitive)
+ Addedajv@6.10.2(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
- Removed@angular-devkit/architect@0.801.1(transitive)
- Removed@angular-devkit/core@8.1.1(transitive)
- Removed@angular-devkit/schematics@8.1.1(transitive)
- Removed@nrwl/tao@8.4.13(transitive)
- Removedajv@6.10.0(transitive)
Updated@nrwl/tao@8.5.0-beta.1