create-nx-workspace
Advanced tools
Comparing version 20.2.0-rc.0 to 20.2.0
{ | ||
"name": "create-nx-workspace", | ||
"version": "20.2.0-rc.0", | ||
"version": "20.2.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Smart Monorepos · Fast CI", |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.determinePackageManager = determinePackageManager; | ||
const enquirer = require("enquirer"); | ||
const chalk = require("chalk"); | ||
const ab_testing_1 = require("../utils/nx/ab-testing"); | ||
@@ -13,10 +15,12 @@ const output_1 = require("../utils/output"); | ||
const string_utils_1 = require("../utils/string-utils"); | ||
const enquirer = require("enquirer"); | ||
const chalk = require("chalk"); | ||
const is_ci_1 = require("../utils/ci/is-ci"); | ||
async function determineNxCloud(parsedArgs) { | ||
if (parsedArgs.nxCloud === undefined) { | ||
return nxCloudPrompt('setupCI'); | ||
if (parsedArgs.nxCloud) { | ||
return parsedArgs.nxCloud; | ||
} | ||
else if (!parsedArgs.interactive || (0, is_ci_1.isCI)()) { | ||
return 'skip'; | ||
} | ||
else { | ||
return parsedArgs.nxCloud; | ||
return nxCloudPrompt('setupCI'); | ||
} | ||
@@ -63,5 +67,5 @@ } | ||
if (parsedArgs.defaultBase) { | ||
return Promise.resolve(parsedArgs.defaultBase); | ||
return parsedArgs.defaultBase; | ||
} | ||
if (parsedArgs.allPrompts) { | ||
else if (parsedArgs.allPrompts) { | ||
return enquirer | ||
@@ -87,3 +91,3 @@ .prompt([ | ||
} | ||
return Promise.resolve((0, default_base_1.deduceDefaultBase)()); | ||
return (0, default_base_1.deduceDefaultBase)(); | ||
} | ||
@@ -94,3 +98,3 @@ async function determinePackageManager(parsedArgs) { | ||
if (package_manager_1.packageManagerList.includes(packageManager)) { | ||
return Promise.resolve(packageManager); | ||
return packageManager; | ||
} | ||
@@ -107,3 +111,3 @@ output_1.output.error({ | ||
} | ||
if (parsedArgs.allPrompts) { | ||
else if (parsedArgs.allPrompts) { | ||
return enquirer | ||
@@ -126,3 +130,3 @@ .prompt([ | ||
} | ||
return Promise.resolve((0, package_manager_1.detectInvokedPackageManager)()); | ||
return (0, package_manager_1.detectInvokedPackageManager)(); | ||
} |
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
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
110503
3007
0