Skip to content

Commit 64a897b

Browse files
committed
remove logic concerning app/tns_modules folder
1 parent a21f61d commit 64a897b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/tools/node-modules/node-modules-builder.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ export class NodeModulesBuilder implements INodeModulesBuilder {
9898

9999
if (isNodeModulesModified && this.$fs.exists(absoluteOutputPath).wait()) {
100100
let currentPreparedTnsModules = this.$fs.readDirectory(absoluteOutputPath).wait();
101-
let tnsModulesPath = path.join(projectDir, constants.APP_FOLDER_NAME, constants.TNS_MODULES_FOLDER_NAME);
102-
if (!this.$fs.exists(tnsModulesPath).wait()) {
103-
tnsModulesPath = path.join(projectDir, constants.NODE_MODULES_FOLDER_NAME, constants.TNS_CORE_MODULES_NAME);
104-
}
101+
let tnsModulesPath = path.join(projectDir, constants.NODE_MODULES_FOLDER_NAME, constants.TNS_CORE_MODULES_NAME);
105102
let tnsModulesInApp = this.$fs.readDirectory(tnsModulesPath).wait();
106103
let modulesToDelete = _.difference(currentPreparedTnsModules, tnsModulesInApp);
107104
_.each(modulesToDelete, moduleName => this.$fs.deleteDirectory(path.join(absoluteOutputPath, moduleName)).wait());

0 commit comments

Comments
 (0)