File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
303303 }
304304
305305 const directoryPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
306- const excludedDirs = [ constants . APP_RESOURCES_FOLDER_NAME ] ;
306+ const excludedDirs = [ path . basename ( projectData . appResourcesDirectoryPath ) ] ;
307307 if ( ! changesInfo || ! changesInfo . modulesChanged ) {
308308 excludedDirs . push ( constants . TNS_MODULES_FOLDER_NAME ) ;
309309 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class PreparePlatformJSService extends PreparePlatformService implements
4242 if ( config . changesInfo && ! config . changesInfo . changesRequirePrepare ) {
4343 // remove the App_Resources folder from the app/assets as here we're applying other files changes.
4444 const appDestinationDirectoryPath = path . join ( config . platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
45- const appResourcesDirectoryPath = path . join ( appDestinationDirectoryPath , constants . APP_RESOURCES_FOLDER_NAME ) ;
45+ const appResourcesDirectoryPath = path . join ( appDestinationDirectoryPath , path . basename ( config . projectData . appResourcesDirectoryPath ) ) ;
4646 if ( this . $fs . exists ( appResourcesDirectoryPath ) ) {
4747 this . $fs . deleteDirectory ( appResourcesDirectoryPath ) ;
4848 }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
6262
6363 private copyAppResources ( platformData : IPlatformData , projectData : IProjectData ) : void {
6464 const appDestinationDirectoryPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
65- const appResourcesDirectoryPath = path . join ( appDestinationDirectoryPath , constants . APP_RESOURCES_FOLDER_NAME ) ;
65+ const appResourcesDirectoryPath = path . join ( appDestinationDirectoryPath , path . basename ( projectData . appResourcesDirectoryPath ) ) ;
6666 if ( this . $fs . exists ( appResourcesDirectoryPath ) ) {
6767 platformData . platformProjectService . prepareAppResources ( appResourcesDirectoryPath , projectData ) ;
6868 const appResourcesDestination = platformData . platformProjectService . getAppResourcesDestinationDirectoryPath ( projectData ) ;
You can’t perform that action at this time.
0 commit comments