create-nx-workspace
Advanced tools
Comparing version 0.0.0-pr-27809-4160bae to 0.0.0-pr-27910-51ae6f9
@@ -20,2 +20,3 @@ "use strict"; | ||
const fs_1 = require("fs"); | ||
const is_ci_1 = require("../src/utils/ci/is-ci"); | ||
exports.commandsObject = yargs | ||
@@ -212,2 +213,3 @@ .wrap(yargs.terminalWidth()) | ||
type: 'input', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
}, | ||
@@ -249,2 +251,3 @@ ]); | ||
case preset_1.Preset.NodeStandalone: | ||
case preset_1.Preset.NodeMonorepo: | ||
case preset_1.Preset.Express: | ||
@@ -349,2 +352,3 @@ return 'node'; | ||
initial: 0, | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
}, | ||
@@ -447,2 +451,3 @@ ]); | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -543,2 +548,3 @@ { | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -621,2 +627,3 @@ { | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -647,2 +654,3 @@ { | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -677,2 +685,3 @@ { | ||
initial: 1, | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
}, | ||
@@ -738,2 +747,3 @@ ]); | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -827,2 +837,3 @@ { | ||
initial: parsedArgs.name, | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
}, | ||
@@ -878,2 +889,3 @@ ]); | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -893,2 +905,3 @@ { | ||
], | ||
initial: 0, | ||
}, | ||
@@ -906,2 +919,3 @@ ]); | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -928,2 +942,3 @@ { | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -950,2 +965,3 @@ { | ||
type: 'autocomplete', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -968,3 +984,3 @@ { | ||
async function determineNodeFramework(parsedArgs) { | ||
if (parsedArgs.framework) | ||
if (!!parsedArgs.framework) | ||
return parsedArgs.framework; | ||
@@ -976,2 +992,3 @@ const reply = await enquirer.prompt([ | ||
name: 'framework', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -999,2 +1016,3 @@ { | ||
], | ||
initial: 0, | ||
}, | ||
@@ -1012,2 +1030,3 @@ ]); | ||
name: 'e2eTestRunner', | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
choices: [ | ||
@@ -1027,2 +1046,3 @@ { | ||
], | ||
initial: 0, | ||
}, | ||
@@ -1029,0 +1049,0 @@ ]); |
{ | ||
"name": "create-nx-workspace", | ||
"version": "0.0.0-pr-27809-4160bae", | ||
"version": "0.0.0-pr-27910-51ae6f9", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Smart Monorepos · Fast CI", |
@@ -17,3 +17,9 @@ "use strict"; | ||
stdio: 'inherit', | ||
env: { ...process.env, NX_DAEMON: 'false' }, | ||
env: { | ||
...process.env, | ||
NX_DAEMON: 'false', | ||
// This is the same environment variable that ESLint uses to determine if it should use a flat config. | ||
// Default to true for all new workspaces. | ||
ESLINT_USE_FLAT_CONFIG: process.env.ESLINT_USE_FLAT_CONFIG ?? 'true', | ||
}, | ||
shell: true, | ||
@@ -20,0 +26,0 @@ windowsHide: true, |
@@ -16,5 +16,5 @@ "use strict"; | ||
)); | ||
const { accessToken } = getCloudOptions(directory); | ||
const { accessToken, nxCloudId } = getCloudOptions(directory); | ||
nxCloudSpinner.succeed('Nx Cloud has been set up successfully'); | ||
return accessToken; | ||
return accessToken || nxCloudId; | ||
} | ||
@@ -21,0 +21,0 @@ async function getOnboardingInfo(nxCloud, token, directory, useGithub) { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
111251
3015
13