File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ const tslintSetup = (module.exports.tslintSetup = async (dirPathPrefix, tslintPa
721721// setup tsconfig for native only projects
722722const tsconfigSetup = ( module . exports . tsconfigSetup = async ( options , dirPathPrefix , nativeAppPathModifier ) => {
723723 try {
724- // setup the abilty to edit the tsconfig.json file in the root of the project
724+ // setup the ability to edit the tsconfig.json file in the root of the project
725725 let tsConfigContent = '' ;
726726 let tsConfigPath = path . join ( dirPathPrefix , 'tsconfig.json' ) ;
727727
@@ -736,6 +736,9 @@ const tsconfigSetup = (module.exports.tsconfigSetup = async (options, dirPathPre
736736 tsConfigContent . compilerOptions . noImplicitAny = false ;
737737 // // // tsConfigContent.compilerOptions.types = [];
738738
739+ // edit types attribute to fix build
740+ tsConfigContent . compilerOptions . types = [ 'node' ] ;
741+
739742 // edit some of the options in compilerOptions.paths object array
740743 tsConfigContent . compilerOptions . paths [ '@/*' ] = [ nativeAppPathModifier + '*' ] ;
741744 tsConfigContent . compilerOptions . paths [ 'assets/*' ] = [ nativeAppPathModifier + 'assets/*' ] ;
You can’t perform that action at this time.
0 commit comments