File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,11 @@ export class Builder implements IBroccoliBuilder {
5656
5757 if ( isNodeModulesModified && this . $fs . exists ( absoluteOutputPath ) . wait ( ) ) {
5858 let currentPreparedTnsModules = this . $fs . readDirectory ( absoluteOutputPath ) . wait ( ) ;
59- let tnsModulesInApp = this . $fs . readDirectory ( path . join ( projectDir , "app" , "tns_modules" ) ) . wait ( ) ;
59+ let tnsModulesPath = path . join ( projectDir , "app" , "tns_modules" ) ;
60+ if ( ! this . $fs . exists ( tnsModulesPath ) . wait ( ) ) {
61+ tnsModulesPath = path . join ( projectDir , "node_modules" , "tns-core-modules" ) ;
62+ }
63+ let tnsModulesInApp = this . $fs . readDirectory ( tnsModulesPath ) . wait ( ) ;
6064 let modulesToDelete = _ . difference ( currentPreparedTnsModules , tnsModulesInApp ) ;
6165 _ . each ( modulesToDelete , moduleName => this . $fs . deleteDirectory ( path . join ( absoluteOutputPath , moduleName ) ) . wait ( ) ) ;
6266 }
You can’t perform that action at this time.
0 commit comments