Skip to content

Commit 5a2c054

Browse files
Dimitar Kerezovrosen-vladimirov
authored andcommitted
refactor(livesync): include resources in initial patterns
1 parent 6f3ae4b commit 5a2c054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/livesync/livesync-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as choki from "chokidar";
33
import { EOL } from "os";
44
import { EventEmitter } from "events";
55
import { hook } from "../../common/helpers";
6-
import { APP_FOLDER_NAME, PACKAGE_JSON_FILE_NAME, LiveSyncTrackActionNames, USER_INTERACTION_NEEDED_EVENT_NAME, DEBUGGER_ATTACHED_EVENT_NAME, DEBUGGER_DETACHED_EVENT_NAME, TrackActionNames } from "../../constants";
6+
import { APP_FOLDER_NAME, APP_RESOURCES_FOLDER_NAME, PACKAGE_JSON_FILE_NAME, LiveSyncTrackActionNames, USER_INTERACTION_NEEDED_EVENT_NAME, DEBUGGER_ATTACHED_EVENT_NAME, DEBUGGER_DETACHED_EVENT_NAME, TrackActionNames } from "../../constants";
77
import { DeviceTypes, DeviceDiscoveryEventNames } from "../../common/constants";
88
import { cache } from "../../common/decorators";
99

@@ -292,7 +292,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
292292
@hook('watchPatterns')
293293
public async getWatcherPatterns(liveSyncData: ILiveSyncInfo): Promise<string[]> {
294294
// liveSyncData is used by plugins that make use of the watchPatterns hook
295-
return [APP_FOLDER_NAME];
295+
return [APP_FOLDER_NAME, path.join(APP_FOLDER_NAME, APP_RESOURCES_FOLDER_NAME)];
296296
}
297297

298298
public async disableDebuggingCore(deviceOption: IDisableDebuggingDeviceOptions, debuggingAdditionalOptions: IDebuggingAdditionalOptions): Promise<void> {

0 commit comments

Comments
 (0)