File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -283,12 +283,21 @@ export class PlatformService extends EventEmitter implements IPlatformService {
283
283
284
284
if ( ! changesInfo || changesInfo . appFilesChanged ) {
285
285
await this . copyAppFiles ( platform , appFilesUpdaterOptions , projectData ) ;
286
+
287
+ // remove the App_Resources folder from the app/assets as here we're applying other files changes.
288
+ const appDestinationDirectoryPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
289
+ const appResourcesDirectoryPath = path . join ( appDestinationDirectoryPath , constants . APP_RESOURCES_FOLDER_NAME ) ;
290
+ if ( this . $fs . exists ( appResourcesDirectoryPath ) ) {
291
+ this . $fs . deleteDirectory ( appResourcesDirectoryPath ) ;
292
+ }
286
293
}
294
+
287
295
if ( ! changesInfo || changesInfo . appResourcesChanged ) {
288
296
await this . copyAppFiles ( platform , appFilesUpdaterOptions , projectData ) ;
289
297
this . copyAppResources ( platform , projectData ) ;
290
298
await platformData . platformProjectService . prepareProject ( projectData , platformSpecificData ) ;
291
299
}
300
+
292
301
if ( ! changesInfo || changesInfo . modulesChanged ) {
293
302
await this . copyTnsModules ( platform , projectData ) ;
294
303
}
You can’t perform that action at this time.
0 commit comments