Skip to content

Commit 3ca00af

Browse files
authored
Merge pull request #3711 from NativeScript/sis0k0/node-modules-tracking
fix(livesync): check node_modules for changes only with `--sync-all-files`
2 parents e4c14c2 + a684d20 commit 3ca00af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/project-changes-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class ProjectChangesService implements IProjectChangesService {
7070
const platformResourcesDir = path.join(projectData.appResourcesDirectoryPath, platformData.normalizedPlatformName);
7171
this._changesInfo.appResourcesChanged = this.containsNewerFiles(platformResourcesDir, null, projectData);
7272
/*done because currently all node_modules are traversed, a possible improvement could be traversing only the production dependencies*/
73-
this._changesInfo.nativeChanged = this.containsNewerFiles(
73+
this._changesInfo.nativeChanged = projectChangesOptions.skipModulesNativeCheck ? false : this.containsNewerFiles(
7474
path.join(projectData.projectDir, NODE_MODULES_FOLDER_NAME),
7575
path.join(projectData.projectDir, NODE_MODULES_FOLDER_NAME, "tns-ios-inspector"),
7676
projectData,

0 commit comments

Comments
 (0)