File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,14 @@ export class PlatformService implements IPlatformService {
212212 platformData . platformProjectService . prepareProject ( ) . wait ( ) ;
213213
214214 // Process node_modules folder
215+ let appDir = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME ) ;
215216 try {
216217 this . $pluginsService . ensureAllDependenciesAreInstalled ( ) . wait ( ) ;
217- let tnsModulesDestinationPath = path . join ( platformData . appDestinationDirectoryPath , constants . APP_FOLDER_NAME , PlatformService . TNS_MODULES_FOLDER_NAME ) ;
218+ let tnsModulesDestinationPath = path . join ( appDir , PlatformService . TNS_MODULES_FOLDER_NAME ) ;
218219 this . $broccoliBuilder . prepareNodeModules ( tnsModulesDestinationPath , platform , lastModifiedTime ) . wait ( ) ;
219220 } catch ( error ) {
220221 this . $logger . debug ( error ) ;
221- shell . rm ( "-rf" , appResourcesDirectoryPath ) ;
222+ shell . rm ( "-rf" , appDir ) ;
222223 this . $errors . failWithoutHelp ( `Processing node_modules failed. ${ error } ` ) ;
223224 }
224225
You can’t perform that action at this time.
0 commit comments