File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -212,9 +212,11 @@ interface IDebugLiveSyncService extends ILiveSyncService {
212
212
/**
213
213
* Method used to retrieve the glob patterns which CLI will watch for file changes. Defaults to the whole app directory.
214
214
* @param {ILiveSyncInfo } liveSyncData Information needed for livesync - for example if bundle is passed or if a release build should be performed.
215
+ * @param {IProjectData } projectData Project data.
216
+ * @param {string[] } platforms Platforms to start the watcher for.
215
217
* @returns {Promise<string[]> } The glob patterns.
216
218
*/
217
- getWatcherPatterns ( liveSyncData : ILiveSyncInfo , projectData : IProjectData ) : Promise < string [ ] > ;
219
+ getWatcherPatterns ( liveSyncData : ILiveSyncInfo , projectData : IProjectData , platforms : string [ ] ) : Promise < string [ ] > ;
218
220
219
221
/**
220
222
* Prints debug information.
Original file line number Diff line number Diff line change @@ -290,8 +290,8 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
290
290
}
291
291
292
292
@hook ( 'watchPatterns' )
293
- public async getWatcherPatterns ( liveSyncData : ILiveSyncInfo , projectData : IProjectData ) : Promise < string [ ] > {
294
- // liveSyncData is used by plugins that make use of the watchPatterns hook
293
+ public async getWatcherPatterns ( liveSyncData : ILiveSyncInfo , projectData : IProjectData , platforms : string [ ] ) : Promise < string [ ] > {
294
+ // liveSyncData and platforms are used by plugins that make use of the watchPatterns hook
295
295
return [ projectData . getAppDirectoryRelativePath ( ) , projectData . getAppResourcesRelativeDirectoryPath ( ) ] ;
296
296
}
297
297
@@ -525,7 +525,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
525
525
}
526
526
527
527
private async startWatcher ( projectData : IProjectData , liveSyncData : ILiveSyncInfo , platforms : string [ ] ) : Promise < void > {
528
- const patterns = await this . getWatcherPatterns ( liveSyncData , projectData ) ;
528
+ const patterns = await this . getWatcherPatterns ( liveSyncData , projectData , platforms ) ;
529
529
530
530
if ( liveSyncData . watchAllFiles ) {
531
531
const productionDependencies = this . $nodeModulesDependenciesBuilder . getProductionDependencies ( projectData . projectDir ) ;
You can’t perform that action at this time.
0 commit comments