File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { help, notRecognised } from './help';
55import { folderNameMissingOptionPrompt } from './prompts/foldername' ;
66import { templateMissingOptionPrompt } from './prompts/template' ;
77import { downloadTemplateKit } from './main' ;
8+ import { Ioptions } from './interfaces' ;
89
910let parseArgumentsIntoOptions = ( rawArgs : string [ ] ) => {
1011
@@ -62,7 +63,7 @@ let parseArgumentsIntoOptions = (rawArgs: string[]) => {
6263 }
6364}
6465
65- let otherOptions = async ( options : any ) => {
66+ let otherOptions = async ( options : Ioptions ) => {
6667 if ( options . skipInstall ) {
6768 options . runInstall = false ;
6869 }
@@ -93,7 +94,7 @@ export let cli = async (args: string[]) => {
9394 } else if ( options ?. version ) {
9495 version ( ) ;
9596 } else {
96- await otherOptions ( options ) ;
97+ await otherOptions ( options as Ioptions ) ;
9798 }
9899 } catch ( err ) {
99100 console . log ( '' ) ;
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ export type ItemplateOptions = "ts" | "esm" | "cjs";
1010
1111export interface Ioptions {
1212 skipPrompts : boolean ;
13- git : true ;
13+ git : boolean ;
1414 skipGit : string | undefined ;
1515 folderName : string ;
1616 template : ItemplateOptions ;
1717 targetDirectory : string ;
1818 templateDirectory : string ;
19- runInstall : true ;
19+ runInstall : boolean ;
2020 skipInstall : boolean ;
2121 help : string | boolean ;
2222 version : string | boolean ;
You can’t perform that action at this time.
0 commit comments