Skip to content

Commit cf61294

Browse files
Fix livesync of TypeScript projects
Pass .js.map and .ts as excluded patterns for livesync. Fix livesync of TypeScript projects - make sure gaze does not trigger any livesync logic in case the file that's changed is excluded via any pattern from livesync data. Currently when .ts file is change, gaze detects changes for .ts, .js and .js.map files and fails as only .js files exist in platforms dir.
1 parent 5e03b28 commit cf61294

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/common

lib/services/livesync/livesync-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ class LiveSyncService implements ILiveSyncService {
5353
let platformData = this.$platformsData.getPlatformData(platformLowerCase);
5454
this.ensureAndroidFrameworkVersion(platformData).wait();
5555

56-
let liveSyncData = {
56+
let liveSyncData: ILiveSyncData = {
5757
platform: platform,
5858
appIdentifier: this.$projectData.projectId,
5959
projectFilesPath: path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME),
6060
syncWorkingDirectory: path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME),
61+
excludedProjectDirsAndFiles: ["**/*.js.map", "**/*.ts"]
6162
};
6263
this.$liveSyncServiceBase.sync(liveSyncData).wait();
6364
}).future<void>()();

0 commit comments

Comments
 (0)