create-nx-workspace
Advanced tools
Comparing version 8.1.2 to 8.2.0-beta.1
@@ -22,9 +22,21 @@ #!/usr/bin/env node | ||
}; | ||
var useYarn = true; | ||
var packageManager; | ||
try { | ||
child_process_1.execSync('yarn --version', { stdio: ['ignore', 'ignore', 'ignore'] }); | ||
packageManager = child_process_1.execSync('ng config -g cli.packageManager', { | ||
stdio: ['ignore', 'pipe', 'ignore'] | ||
}) | ||
.toString() | ||
.trim(); | ||
} | ||
catch (e) { | ||
useYarn = false; | ||
packageManager = 'yarn'; | ||
} | ||
try { | ||
child_process_1.execSync(packageManager + " --version", { | ||
stdio: ['ignore', 'ignore', 'ignore'] | ||
}); | ||
} | ||
catch (e) { | ||
packageManager = 'npm'; | ||
} | ||
var projectName = parsedArgs._[2]; | ||
@@ -39,3 +51,3 @@ // check that the workspace name is passed in | ||
var tmpDir = tmp_1.dirSync().name; | ||
var nxVersion = '8.1.2'; | ||
var nxVersion = '8.2.0-beta.1'; | ||
var cliVersion = '8.0.1'; | ||
@@ -51,8 +63,6 @@ var typescriptVersion = '~3.4.5'; | ||
})); | ||
if (useYarn) { | ||
child_process_1.execSync('yarn install --silent', { cwd: tmpDir, stdio: [0, 1, 2] }); | ||
} | ||
else { | ||
child_process_1.execSync('npm install --silent', { cwd: tmpDir, stdio: [0, 1, 2] }); | ||
} | ||
child_process_1.execSync(packageManager + " install --silent", { | ||
cwd: tmpDir, | ||
stdio: [0, 1, 2] | ||
}); | ||
var ɵ0 = function (a) { return "\"" + a + "\""; }; | ||
@@ -59,0 +69,0 @@ exports.ɵ0 = ɵ0; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"error","message":"Lambda not supported","line":80,"character":7}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"error","message":"Lambda not supported","line":90,"character":7}}}] |
{ | ||
"name": "create-nx-workspace", | ||
"version": "8.1.2", | ||
"version": "8.2.0-beta.1", | ||
"description": "Angular CLI power-ups for modern Web development", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -165,3 +165,3 @@ <p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/nx-logo.png" width="450"></p> | ||
- [5-minute video on how to get started with Nx.](http://nrwl.io/nx) | ||
- [Nx Quickstart - How to Scale a JavaScript Project](https://www.youtube.com/watch?v=VUyBY72mwrQ) | ||
- [Video course on using Nx Workspaces](https://angularplaybook.com/p/nx-workspaces) | ||
@@ -168,0 +168,0 @@ |
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
12244
77
1