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 @@ -315,7 +315,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
315
315
}
316
316
317
317
const directoryPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
318
- const excludedDirs = [ constants . APP_RESOURCES_FOLDER_NAME ] ;
318
+ const excludedDirs = [ path . basename ( projectData . appResourcesDirectoryPath ) ] ;
319
319
if ( ! changesInfo || ! changesInfo . modulesChanged ) {
320
320
excludedDirs . push ( constants . TNS_MODULES_FOLDER_NAME ) ;
321
321
}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class PreparePlatformJSService extends PreparePlatformService implements
42
42
if ( config . changesInfo && ! config . changesInfo . changesRequirePrepare ) {
43
43
// remove the App_Resources folder from the app/assets as here we're applying other files changes.
44
44
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 ) ) ;
46
46
if ( this . $fs . exists ( appResourcesDirectoryPath ) ) {
47
47
this . $fs . deleteDirectory ( appResourcesDirectoryPath ) ;
48
48
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
62
62
63
63
private copyAppResources ( platformData : IPlatformData , projectData : IProjectData ) : void {
64
64
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 ) ) ;
66
66
if ( this . $fs . exists ( appResourcesDirectoryPath ) ) {
67
67
platformData . platformProjectService . prepareAppResources ( appResourcesDirectoryPath , projectData ) ;
68
68
const appResourcesDestination = platformData . platformProjectService . getAppResourcesDestinationDirectoryPath ( projectData ) ;
You can’t perform that action at this time.
0 commit comments