Socket
Socket
Sign inDemoInstall

create-nx-workspace

Package Overview
Dependencies
Maintainers
1
Versions
1687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-nx-workspace - npm Package Compare versions

Comparing version 8.1.2 to 8.2.0-beta.1

30

bin/create-nx-workspace.js

@@ -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 @@

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