Skip to content

Commit 8512415

Browse files
Fix rebuilding application every time when a change is applied (#3002)
In case you have built your application and you add a new npm package as dependency, the LiveSync will always rebuild the app, no matter of the change applied afterwards. The problem is in our project-changes-service that persists shasum of the package.json. However it is never reset, so we always have the hashed shasum of the package.json when the applcation has been build for the first time. Fix this by setting the correct value for projectFileHash - this way the checks are correct and applying change in .js (.xml, .css) files will not trigger rebuild of app.
1 parent abb0aa8 commit 8512415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/services/project-changes-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ export class ProjectChangesService implements IProjectChangesService {
108108
if (this._prepareInfo.changesRequireBuild) {
109109
this._prepareInfo.changesRequireBuildTime = this._prepareInfo.time;
110110
}
111+
112+
this._prepareInfo.projectFileHash = this.getProjectFileStrippedHash(projectData, platform);
111113
}
112114

113115
this._changesInfo.nativePlatformStatus = this._prepareInfo.nativePlatformStatus;

0 commit comments

Comments
 (0)