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
721
721
// setup tsconfig for native only projects
722
722
const tsconfigSetup = ( module . exports . tsconfigSetup = async ( options , dirPathPrefix , nativeAppPathModifier ) => {
723
723
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
725
725
let tsConfigContent = '' ;
726
726
let tsConfigPath = path . join ( dirPathPrefix , 'tsconfig.json' ) ;
727
727
@@ -736,6 +736,9 @@ const tsconfigSetup = (module.exports.tsconfigSetup = async (options, dirPathPre
736
736
tsConfigContent . compilerOptions . noImplicitAny = false ;
737
737
// // // tsConfigContent.compilerOptions.types = [];
738
738
739
+ // edit types attribute to fix build
740
+ tsConfigContent . compilerOptions . types = [ 'node' ] ;
741
+
739
742
// edit some of the options in compilerOptions.paths object array
740
743
tsConfigContent . compilerOptions . paths [ '@/*' ] = [ nativeAppPathModifier + '*' ] ;
741
744
tsConfigContent . compilerOptions . paths [ 'assets/*' ] = [ nativeAppPathModifier + 'assets/*' ] ;
You can’t perform that action at this time.
0 commit comments