File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,7 @@ export class NodeModulesBuilder implements INodeModulesBuilder {
100
100
101
101
if ( isNodeModulesModified && this . $fs . exists ( absoluteOutputPath ) . wait ( ) ) {
102
102
let currentPreparedTnsModules = this . $fs . readDirectory ( absoluteOutputPath ) . wait ( ) ;
103
- let tnsModulesPath = path . join ( projectDir , constants . APP_FOLDER_NAME , constants . TNS_MODULES_FOLDER_NAME ) ;
104
- if ( ! this . $fs . exists ( tnsModulesPath ) . wait ( ) ) {
105
- tnsModulesPath = path . join ( projectDir , constants . NODE_MODULES_FOLDER_NAME , constants . TNS_CORE_MODULES_NAME ) ;
106
- }
103
+ let tnsModulesPath = path . join ( projectDir , constants . NODE_MODULES_FOLDER_NAME , constants . TNS_CORE_MODULES_NAME ) ;
107
104
let tnsModulesInApp = this . $fs . readDirectory ( tnsModulesPath ) . wait ( ) ;
108
105
let modulesToDelete = _ . difference ( currentPreparedTnsModules , tnsModulesInApp ) ;
109
106
_ . each ( modulesToDelete , moduleName => this . $fs . deleteDirectory ( path . join ( absoluteOutputPath , moduleName ) ) . wait ( ) ) ;
You can’t perform that action at this time.
0 commit comments