From 231b9dfd617c4d585a2364b8127e4a50d3c41f59 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 30 May 2023 22:12:03 -0400 Subject: [PATCH] fix(core): remove extraneous appName prompts for Node standalone in CNW; remove invariant check for determining stack --- packages/create-nx-workspace/bin/create-nx-workspace.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index a8902425808aa..a6281b4f95616 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -369,10 +369,6 @@ async function determineStack( }, ]); - invariant(stack, { - title: 'Invalid stack selection', - }); - return stack; } @@ -503,7 +499,7 @@ async function determineReactOptions( const reply = await enquirer.prompt<{ style: string }>([ { name: 'style', - message: `Default stylesheet format `, + message: `Default stylesheet format`, initial: 'css' as any, type: 'autocomplete', choices: [ @@ -578,7 +574,7 @@ async function determineAngularOptions( const reply = await enquirer.prompt<{ style: string }>([ { name: 'style', - message: `Default stylesheet format `, + message: `Default stylesheet format`, initial: 'css' as any, type: 'autocomplete', choices: [ @@ -681,7 +677,6 @@ async function determineNodeOptions( const workspaceType = await determineStandAloneOrMonorepo(); if (workspaceType === 'standalone') { preset = Preset.NodeStandalone; - appName = await determineAppName(parsedArgs); appName = parsedArgs.name; } else { preset = Preset.NodeMonorepo;