create-nx-workspace
Advanced tools
Comparing version 0.0.0-pr-29935-9b48db9 to 0.0.0-pr-3-0b96150
@@ -324,3 +324,3 @@ "use strict"; | ||
} | ||
async function determineFormatterOptions(args, opts) { | ||
async function determineFormatterOptions(args) { | ||
if (args.formatter) | ||
@@ -341,3 +341,3 @@ return args.formatter; | ||
], | ||
initial: opts?.preferPrettier ? 0 : 1, | ||
initial: 1, | ||
skip: !args.interactive || (0, is_ci_1.isCI)(), | ||
@@ -348,3 +348,3 @@ }, | ||
} | ||
async function determineLinterOptions(args, opts) { | ||
async function determineLinterOptions(args) { | ||
const reply = await enquirer.prompt([ | ||
@@ -363,3 +363,3 @@ { | ||
], | ||
initial: opts?.preferEslint ? 0 : 1, | ||
initial: 1, | ||
skip: !args.interactive || (0, is_ci_1.isCI)(), | ||
@@ -572,6 +572,4 @@ }, | ||
if (workspaces) { | ||
linter = await determineLinterOptions(parsedArgs, { preferEslint: true }); | ||
formatter = await determineFormatterOptions(parsedArgs, { | ||
preferPrettier: true, | ||
}); | ||
linter = await determineLinterOptions(parsedArgs); | ||
formatter = await determineFormatterOptions(parsedArgs); | ||
} | ||
@@ -680,6 +678,4 @@ else { | ||
if (workspaces) { | ||
linter = await determineLinterOptions(parsedArgs, { preferEslint: true }); | ||
formatter = await determineFormatterOptions(parsedArgs, { | ||
preferPrettier: true, | ||
}); | ||
linter = await determineLinterOptions(parsedArgs); | ||
formatter = await determineFormatterOptions(parsedArgs); | ||
} | ||
@@ -920,6 +916,4 @@ else { | ||
if (workspaces) { | ||
linter = await determineLinterOptions(parsedArgs, { preferEslint: true }); | ||
formatter = await determineFormatterOptions(parsedArgs, { | ||
preferPrettier: true, | ||
}); | ||
linter = await determineLinterOptions(parsedArgs); | ||
formatter = await determineFormatterOptions(parsedArgs); | ||
} | ||
@@ -1214,5 +1208,5 @@ else { | ||
if (a.name === 'none') | ||
return -1; | ||
if (b.name === 'none') | ||
return 1; | ||
if (b.name === 'none') | ||
return -1; | ||
if (options?.preferVitest && a.name === 'vitest') | ||
@@ -1224,3 +1218,3 @@ return -1; | ||
}), | ||
initial: 0, // This should be either vite or jest | ||
initial: 0, | ||
}, | ||
@@ -1227,0 +1221,0 @@ ]); |
{ | ||
"name": "create-nx-workspace", | ||
"version": "0.0.0-pr-29935-9b48db9", | ||
"version": "0.0.0-pr-3-0b96150", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Smart Monorepos · Fast CI", |
114174
3124