Skip to content

Commit 48f011b

Browse files
authored
Merge pull request #2117 from NativeScript/plamen5kov/remove_obsolete_behavior
remove logic concerning app/tns_modules folder
2 parents a888d93 + 64a897b commit 48f011b

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
@@ -100,10 +100,7 @@ export class NodeModulesBuilder implements INodeModulesBuilder {
100100

101101
if (isNodeModulesModified && this.$fs.exists(absoluteOutputPath).wait()) {
102102
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);
107104
let tnsModulesInApp = this.$fs.readDirectory(tnsModulesPath).wait();
108105
let modulesToDelete = _.difference(currentPreparedTnsModules, tnsModulesInApp);
109106
_.each(modulesToDelete, moduleName => this.$fs.deleteDirectory(path.join(absoluteOutputPath, moduleName)).wait());

0 commit comments

Comments
 (0)