1
0
mirror of synced 2025-11-08 21:07:23 +00:00

fix(CLI): include node types when user selects Node.js project

This commit is contained in:
Jason Dreyzehner
2018-03-12 02:22:26 -04:00
parent a89a03a760
commit 7ae6ec868e
2 changed files with 10 additions and 4 deletions

View File

@@ -114,13 +114,15 @@ export async function inquire(): Promise<TypescriptStarterUserOptions> {
description,
extras,
projectName,
runner
runner,
type
} = answers as {
readonly definitions?: TypeDefinitions;
readonly description: string;
readonly extras: ReadonlyArray<string>;
readonly projectName: string;
readonly runner: Runner;
readonly type: ProjectType;
};
return {
description,
@@ -135,7 +137,7 @@ export async function inquire(): Promise<TypescriptStarterUserOptions> {
? [TypeDefinitions.node, TypeDefinitions.nodeAndDom].includes(
definitions
)
: false,
: type === ProjectType.Node,
projectName,
runner,
strict: extras.includes(Extras.strict),