File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ function getPluginProvider(plugin: Plugin) {
117117}
118118
119119function getPluginOptions ( plugin : Plugin ) : Record < string , unknown > {
120- const result : any = { } ;
120+ const result : Record < string , unknown > = { } ;
121121 for ( const field of plugin . fields ) {
122122 if ( field . name === 'provider' ) {
123123 continue ; // skip provider
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ const plugin: CliPlugin = {
77 name : 'TypeScript Schema Generator' ,
88 statusText : 'Generating TypeScript schema' ,
99 async generate ( { model, defaultOutputPath, pluginOptions } ) {
10- let ourDir = defaultOutputPath ;
10+ let outDir = defaultOutputPath ;
1111 if ( typeof pluginOptions [ 'output' ] === 'string' ) {
12- ourDir = path . resolve ( defaultOutputPath , pluginOptions [ 'output' ] ) ;
13- if ( ! fs . existsSync ( ourDir ) ) {
14- fs . mkdirSync ( ourDir , { recursive : true } ) ;
12+ outDir = path . resolve ( defaultOutputPath , pluginOptions [ 'output' ] ) ;
13+ if ( ! fs . existsSync ( outDir ) ) {
14+ fs . mkdirSync ( outDir , { recursive : true } ) ;
1515 }
1616 }
17- await new TsSchemaGenerator ( ) . generate ( model , ourDir ) ;
17+ await new TsSchemaGenerator ( ) . generate ( model , outDir ) ;
1818 } ,
1919} ;
2020
You can’t perform that action at this time.
0 commit comments