@@ -238,7 +238,7 @@ module.exports = async (api, options, rootOptions) => {
238
238
} ) ;
239
239
}
240
240
241
- api . onCreateComplete ( ( ) => {
241
+ api . onCreateComplete ( async ( ) => {
242
242
// make changes to .gitignore
243
243
gitignoreAdditions ( api ) ;
244
244
@@ -261,17 +261,17 @@ module.exports = async (api, options, rootOptions) => {
261
261
}
262
262
263
263
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
+
264
268
if ( fs . existsSync ( api . resolve ( 'tslint.json' ) ) ) {
265
269
const baseDir = genConfig . nativeAppPathModifier ;
266
270
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' ]
268
272
} , api , true ) ;
269
273
tslintSetup ( genConfig . dirPathPrefix , api . resolve ( 'tslint.json' ) , genConfig . tsExclusionArray ) ;
270
274
}
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 ) ;
275
275
}
276
276
277
277
// the main difference between New and Existing for this section is
0 commit comments