Skip to content

Commit

Permalink
fix(core): remove extraneous appName prompts for Node standalone in C…
Browse files Browse the repository at this point in the history
…NW; remove invariant check for determining stack
  • Loading branch information
jaysoo authored and vsavkin committed May 31, 2023
1 parent 72b0f55 commit 231b9df
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/create-nx-workspace/bin/create-nx-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,6 @@ async function determineStack(
},
]);

invariant(stack, {
title: 'Invalid stack selection',
});

return stack;
}

Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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;
Expand Down

1 comment on commit 231b9df

@vercel
Copy link

@vercel vercel bot commented on 231b9df May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.