@@ -238,7 +238,7 @@ module.exports = async (api, options, rootOptions) => {
238238 } ) ;
239239 }
240240
241- api . onCreateComplete ( ( ) => {
241+ api . onCreateComplete ( async ( ) => {
242242 // make changes to .gitignore
243243 gitignoreAdditions ( api ) ;
244244
@@ -261,17 +261,17 @@ module.exports = async (api, options, rootOptions) => {
261261 }
262262
263263 if ( api . hasPlugin ( 'typescript' ) ) {
264+ // we need to edit the tsconfig.json file in /app
265+ // for a Native only project to remove references to /src
266+ await tsconfigSetup ( options , genConfig . dirPathPrefix , genConfig . nativeAppPathModifier ) ;
267+
264268 if ( fs . existsSync ( api . resolve ( 'tslint.json' ) ) ) {
265269 const baseDir = genConfig . nativeAppPathModifier ;
266270 require ( '../lib/tslint' ) ( {
267- '_' : [ `${ baseDir } / **/*.ts` , `${ baseDir } / **/*.vue` , `${ baseDir } / **/*.tsx` , 'tests/**/*.ts' , 'tests/**/*.tsx' ]
271+ '_' : [ `${ baseDir } **/*.ts` , `${ baseDir } **/*.vue` , `${ baseDir } **/*.tsx` , 'tests/**/*.ts' , 'tests/**/*.tsx' ]
268272 } , api , true ) ;
269273 tslintSetup ( genConfig . dirPathPrefix , api . resolve ( 'tslint.json' ) , genConfig . tsExclusionArray ) ;
270274 }
271-
272- // we need to edit the tsconfig.json file in /app
273- // for a Native only project to remove references to /src
274- tsconfigSetup ( options , genConfig . dirPathPrefix , genConfig . nativeAppPathModifier ) ;
275275 }
276276
277277 // the main difference between New and Existing for this section is
0 commit comments