@@ -7,7 +7,7 @@ import prompts from './utils/prompts';
77import generateExampleApp from './exampleApp/generateExampleApp' ;
88import { addCodegenBuildScript } from './exampleApp/addCodegenBuildScript' ;
99import { createInitialGitCommit } from './utils/initialCommit' ;
10- import { assertAnswers , assertNpx } from './utils/assert' ;
10+ import { assertUserInput , assertNpxExists } from './utils/assert' ;
1111import { resolveBobVersionWithFallback } from './utils/promiseWithFallback' ;
1212import { applyTemplates , generateTemplateConfiguration } from './template' ;
1313import {
4040 . strict ( ) . argv ;
4141
4242async function create ( _argv : yargs . Arguments < Args > ) {
43+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4344 const { _, $0, ...argv } = _argv ;
4445
4546 // Prefetch bob version in background while asking questions
@@ -48,7 +49,7 @@ async function create(_argv: yargs.Arguments<Args>) {
4849 const local = await promptLocalLibrary ( argv ) ;
4950 const folder = await promptPath ( argv , local ) ;
5051
51- await assertNpx ( ) ;
52+ await assertNpxExists ( ) ;
5253
5354 const basename = path . basename ( folder ) ;
5455
@@ -58,7 +59,7 @@ async function create(_argv: yargs.Arguments<Args>) {
5859 argv,
5960 } ) ;
6061
61- assertAnswers ( questions , argv ) ;
62+ assertUserInput ( questions , argv ) ;
6263
6364 const promptAnswers = await prompts ( questions ) ;
6465
@@ -69,7 +70,7 @@ async function create(_argv: yargs.Arguments<Args>) {
6970 ...promptAnswers ,
7071 } as Required < Answers > ;
7172
72- assertAnswers ( questions , answers ) ;
73+ assertUserInput ( questions , answers ) ;
7374
7475 const bobVersion = await resolveBobVersion ( ) ;
7576
0 commit comments