@teambit/watcher 1.0.512 → 1.0.514

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2795 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
+ },
23
+ "signature": "type WatchOptions = {\n msgs?: EventMessages;\n initiator?: CompilationInitiator;\n verbose?: boolean;\n spawnTSServer?: boolean;\n checkTypes?: CheckTypes;\n preCompile?: boolean;\n compile?: boolean;\n import?: boolean;\n generateTypes?: boolean;\n trigger?: ComponentID;\n}",
24
+ "name": "WatchOptions",
25
+ "exportNode": {
26
+ "__schema": "TypeSchema",
27
+ "location": {
28
+ "filePath": "watcher.ts",
29
+ "line": 50,
30
+ "character": 1
31
+ },
32
+ "signature": "type WatchOptions = {\n msgs?: EventMessages;\n initiator?: CompilationInitiator;\n verbose?: boolean;\n spawnTSServer?: boolean;\n checkTypes?: CheckTypes;\n preCompile?: boolean;\n compile?: boolean;\n import?: boolean;\n generateTypes?: boolean;\n trigger?: ComponentID;\n}",
33
+ "name": "WatchOptions",
34
+ "type": {
35
+ "__schema": "TypeLiteralSchema",
36
+ "location": {
37
+ "filePath": "watcher.ts",
38
+ "line": 50,
39
+ "character": 28
40
+ },
41
+ "members": [
42
+ {
43
+ "__schema": "VariableLikeSchema",
44
+ "location": {
45
+ "filePath": "watcher.ts",
46
+ "line": 51,
47
+ "character": 3
48
+ },
49
+ "signature": "(property) msgs?: EventMessages | undefined",
50
+ "name": "msgs",
51
+ "type": {
52
+ "__schema": "TypeRefSchema",
53
+ "location": {
54
+ "filePath": "watcher.ts",
55
+ "line": 51,
56
+ "character": 10
57
+ },
58
+ "name": "EventMessages",
59
+ "internalFilePath": "watcher.ts"
60
+ },
61
+ "isOptional": true
62
+ },
63
+ {
64
+ "__schema": "VariableLikeSchema",
65
+ "location": {
66
+ "filePath": "watcher.ts",
67
+ "line": 52,
68
+ "character": 3
69
+ },
70
+ "signature": "(property) initiator?: CompilationInitiator | undefined",
71
+ "name": "initiator",
72
+ "type": {
73
+ "__schema": "TypeRefSchema",
74
+ "location": {
75
+ "filePath": "watcher.ts",
76
+ "line": 52,
77
+ "character": 15
78
+ },
79
+ "name": "CompilationInitiator",
80
+ "componentId": {
81
+ "scope": "teambit.compilation",
82
+ "name": "compiler"
83
+ }
84
+ },
85
+ "isOptional": true
86
+ },
87
+ {
88
+ "__schema": "VariableLikeSchema",
89
+ "location": {
90
+ "filePath": "watcher.ts",
91
+ "line": 53,
92
+ "character": 3
93
+ },
94
+ "signature": "(property) verbose?: boolean | undefined",
95
+ "name": "verbose",
96
+ "type": {
97
+ "__schema": "KeywordTypeSchema",
98
+ "location": {
99
+ "filePath": "watcher.ts",
100
+ "line": 53,
101
+ "character": 13
102
+ },
103
+ "name": "boolean"
104
+ },
105
+ "isOptional": true
106
+ },
107
+ {
108
+ "__schema": "VariableLikeSchema",
109
+ "location": {
110
+ "filePath": "watcher.ts",
111
+ "line": 54,
112
+ "character": 3
113
+ },
114
+ "signature": "(property) spawnTSServer?: boolean | undefined",
115
+ "name": "spawnTSServer",
116
+ "type": {
117
+ "__schema": "KeywordTypeSchema",
118
+ "location": {
119
+ "filePath": "watcher.ts",
120
+ "line": 54,
121
+ "character": 19
122
+ },
123
+ "name": "boolean"
124
+ },
125
+ "isOptional": true
126
+ },
127
+ {
128
+ "__schema": "VariableLikeSchema",
129
+ "location": {
130
+ "filePath": "watcher.ts",
131
+ "line": 55,
132
+ "character": 3
133
+ },
134
+ "signature": "(property) checkTypes?: CheckTypes | undefined",
135
+ "name": "checkTypes",
136
+ "type": {
137
+ "__schema": "TypeRefSchema",
138
+ "location": {
139
+ "filePath": "watcher.ts",
140
+ "line": 55,
141
+ "character": 16
142
+ },
143
+ "name": "CheckTypes"
144
+ },
145
+ "isOptional": true
146
+ },
147
+ {
148
+ "__schema": "VariableLikeSchema",
149
+ "location": {
150
+ "filePath": "watcher.ts",
151
+ "line": 56,
152
+ "character": 3
153
+ },
154
+ "signature": "(property) preCompile?: boolean | undefined",
155
+ "name": "preCompile",
156
+ "type": {
157
+ "__schema": "KeywordTypeSchema",
158
+ "location": {
159
+ "filePath": "watcher.ts",
160
+ "line": 56,
161
+ "character": 16
162
+ },
163
+ "name": "boolean"
164
+ },
165
+ "isOptional": true
166
+ },
167
+ {
168
+ "__schema": "VariableLikeSchema",
169
+ "location": {
170
+ "filePath": "watcher.ts",
171
+ "line": 57,
172
+ "character": 3
173
+ },
174
+ "signature": "(property) compile?: boolean | undefined",
175
+ "name": "compile",
176
+ "type": {
177
+ "__schema": "KeywordTypeSchema",
178
+ "location": {
179
+ "filePath": "watcher.ts",
180
+ "line": 57,
181
+ "character": 13
182
+ },
183
+ "name": "boolean"
184
+ },
185
+ "isOptional": true
186
+ },
187
+ {
188
+ "__schema": "VariableLikeSchema",
189
+ "location": {
190
+ "filePath": "watcher.ts",
191
+ "line": 58,
192
+ "character": 3
193
+ },
194
+ "signature": "(property) import?: boolean | undefined",
195
+ "name": "import",
196
+ "type": {
197
+ "__schema": "KeywordTypeSchema",
198
+ "location": {
199
+ "filePath": "watcher.ts",
200
+ "line": 58,
201
+ "character": 12
202
+ },
203
+ "name": "boolean"
204
+ },
205
+ "isOptional": true
206
+ },
207
+ {
208
+ "__schema": "VariableLikeSchema",
209
+ "location": {
210
+ "filePath": "watcher.ts",
211
+ "line": 59,
212
+ "character": 3
213
+ },
214
+ "signature": "(property) generateTypes?: boolean | undefined",
215
+ "name": "generateTypes",
216
+ "type": {
217
+ "__schema": "KeywordTypeSchema",
218
+ "location": {
219
+ "filePath": "watcher.ts",
220
+ "line": 59,
221
+ "character": 19
222
+ },
223
+ "name": "boolean"
224
+ },
225
+ "isOptional": true
226
+ },
227
+ {
228
+ "__schema": "VariableLikeSchema",
229
+ "location": {
230
+ "filePath": "watcher.ts",
231
+ "line": 60,
232
+ "character": 3
233
+ },
234
+ "signature": "(property) trigger?: ComponentID | undefined",
235
+ "name": "trigger",
236
+ "type": {
237
+ "__schema": "TypeRefSchema",
238
+ "location": {
239
+ "filePath": "watcher.ts",
240
+ "line": 60,
241
+ "character": 13
242
+ },
243
+ "name": "ComponentID",
244
+ "componentId": {
245
+ "scope": "teambit.component",
246
+ "name": "component-id",
247
+ "version": "1.2.2"
248
+ }
249
+ },
250
+ "isOptional": true
251
+ }
252
+ ]
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "__schema": "ExportSchema",
258
+ "location": {
259
+ "filePath": "index.ts",
260
+ "line": 4,
261
+ "character": 10
262
+ },
263
+ "signature": "enum CheckTypes",
264
+ "name": "CheckTypes",
265
+ "exportNode": {
266
+ "__schema": "EnumSchema",
267
+ "location": {
268
+ "filePath": "check-types.ts",
269
+ "line": 1,
270
+ "character": 1
271
+ },
272
+ "signature": "enum CheckTypes",
273
+ "name": "CheckTypes",
274
+ "members": [
275
+ {
276
+ "__schema": "EnumMemberSchema",
277
+ "location": {
278
+ "filePath": "check-types.ts",
279
+ "line": 2,
280
+ "character": 3
281
+ },
282
+ "signature": "(enum member) CheckTypes.None = 0",
283
+ "name": "None"
284
+ },
285
+ {
286
+ "__schema": "EnumMemberSchema",
287
+ "location": {
288
+ "filePath": "check-types.ts",
289
+ "line": 3,
290
+ "character": 3
291
+ },
292
+ "signature": "(enum member) CheckTypes.EntireProject = 1",
293
+ "name": "EntireProject"
294
+ },
295
+ {
296
+ "__schema": "EnumMemberSchema",
297
+ "location": {
298
+ "filePath": "check-types.ts",
299
+ "line": 4,
300
+ "character": 3
301
+ },
302
+ "signature": "(enum member) CheckTypes.ChangedFile = 2",
303
+ "name": "ChangedFile"
304
+ }
305
+ ]
306
+ }
307
+ },
308
+ {
309
+ "__schema": "ExportSchema",
310
+ "location": {
311
+ "filePath": "index.ts",
312
+ "line": 5,
313
+ "character": 15
314
+ },
315
+ "signature": "class WatcherMain",
316
+ "name": "WatcherMain",
317
+ "exportNode": {
318
+ "__schema": "ClassSchema",
319
+ "location": {
320
+ "filePath": "watcher.main.runtime.ts",
321
+ "line": 18,
322
+ "character": 1
323
+ },
324
+ "signature": "class WatcherMain",
325
+ "name": "WatcherMain",
326
+ "members": [
327
+ {
328
+ "__schema": "ConstructorSchema",
329
+ "location": {
330
+ "filePath": "watcher.main.runtime.ts",
331
+ "line": 19,
332
+ "character": 3
333
+ },
334
+ "signature": "constructor WatcherMain(workspace: Workspace, scope: ScopeMain, pubsub: PubsubMain, onPreWatchSlot: OnPreWatchSlot, ipcEvents: IpcEventsMain, logger: Logger, globalConfig: GlobalConfigMain): WatcherMain",
335
+ "name": "constructor",
336
+ "params": [
337
+ {
338
+ "__schema": "ParameterSchema",
339
+ "location": {
340
+ "filePath": "watcher.main.runtime.ts",
341
+ "line": 20,
342
+ "character": 5
343
+ },
344
+ "name": "workspace",
345
+ "type": {
346
+ "__schema": "TypeRefSchema",
347
+ "location": {
348
+ "filePath": "watcher.main.runtime.ts",
349
+ "line": 20,
350
+ "character": 24
351
+ },
352
+ "name": "Workspace",
353
+ "componentId": {
354
+ "scope": "teambit.workspace",
355
+ "name": "workspace"
356
+ }
357
+ },
358
+ "isOptional": false,
359
+ "isSpread": false
360
+ },
361
+ {
362
+ "__schema": "ParameterSchema",
363
+ "location": {
364
+ "filePath": "watcher.main.runtime.ts",
365
+ "line": 21,
366
+ "character": 5
367
+ },
368
+ "name": "scope",
369
+ "type": {
370
+ "__schema": "TypeRefSchema",
371
+ "location": {
372
+ "filePath": "watcher.main.runtime.ts",
373
+ "line": 21,
374
+ "character": 20
375
+ },
376
+ "name": "ScopeMain",
377
+ "componentId": {
378
+ "scope": "teambit.scope",
379
+ "name": "scope"
380
+ }
381
+ },
382
+ "isOptional": false,
383
+ "isSpread": false
384
+ },
385
+ {
386
+ "__schema": "ParameterSchema",
387
+ "location": {
388
+ "filePath": "watcher.main.runtime.ts",
389
+ "line": 22,
390
+ "character": 5
391
+ },
392
+ "name": "pubsub",
393
+ "type": {
394
+ "__schema": "TypeRefSchema",
395
+ "location": {
396
+ "filePath": "watcher.main.runtime.ts",
397
+ "line": 22,
398
+ "character": 21
399
+ },
400
+ "name": "PubsubMain",
401
+ "componentId": {
402
+ "scope": "teambit.harmony",
403
+ "name": "pubsub"
404
+ }
405
+ },
406
+ "isOptional": false,
407
+ "isSpread": false
408
+ },
409
+ {
410
+ "__schema": "ParameterSchema",
411
+ "location": {
412
+ "filePath": "watcher.main.runtime.ts",
413
+ "line": 23,
414
+ "character": 5
415
+ },
416
+ "name": "onPreWatchSlot",
417
+ "type": {
418
+ "__schema": "TypeRefSchema",
419
+ "location": {
420
+ "filePath": "watcher.main.runtime.ts",
421
+ "line": 23,
422
+ "character": 29
423
+ },
424
+ "name": "OnPreWatchSlot",
425
+ "internalFilePath": "watcher.main.runtime.ts"
426
+ },
427
+ "isOptional": false,
428
+ "isSpread": false
429
+ },
430
+ {
431
+ "__schema": "ParameterSchema",
432
+ "location": {
433
+ "filePath": "watcher.main.runtime.ts",
434
+ "line": 24,
435
+ "character": 5
436
+ },
437
+ "name": "ipcEvents",
438
+ "type": {
439
+ "__schema": "TypeRefSchema",
440
+ "location": {
441
+ "filePath": "watcher.main.runtime.ts",
442
+ "line": 24,
443
+ "character": 25
444
+ },
445
+ "name": "IpcEventsMain",
446
+ "componentId": {
447
+ "scope": "teambit.harmony",
448
+ "name": "ipc-events"
449
+ }
450
+ },
451
+ "isOptional": false,
452
+ "isSpread": false
453
+ },
454
+ {
455
+ "__schema": "ParameterSchema",
456
+ "location": {
457
+ "filePath": "watcher.main.runtime.ts",
458
+ "line": 25,
459
+ "character": 5
460
+ },
461
+ "name": "logger",
462
+ "type": {
463
+ "__schema": "TypeRefSchema",
464
+ "location": {
465
+ "filePath": "watcher.main.runtime.ts",
466
+ "line": 25,
467
+ "character": 22
468
+ },
469
+ "name": "Logger",
470
+ "componentId": {
471
+ "scope": "teambit.harmony",
472
+ "name": "logger"
473
+ }
474
+ },
475
+ "isOptional": false,
476
+ "isSpread": false
477
+ },
478
+ {
479
+ "__schema": "ParameterSchema",
480
+ "location": {
481
+ "filePath": "watcher.main.runtime.ts",
482
+ "line": 26,
483
+ "character": 5
484
+ },
485
+ "name": "globalConfig",
486
+ "type": {
487
+ "__schema": "TypeRefSchema",
488
+ "location": {
489
+ "filePath": "watcher.main.runtime.ts",
490
+ "line": 26,
491
+ "character": 28
492
+ },
493
+ "name": "GlobalConfigMain",
494
+ "componentId": {
495
+ "scope": "teambit.harmony",
496
+ "name": "global-config"
497
+ }
498
+ },
499
+ "isOptional": false,
500
+ "isSpread": false
501
+ }
502
+ ],
503
+ "returnType": {
504
+ "__schema": "ThisTypeSchema",
505
+ "location": {
506
+ "filePath": "watcher.main.runtime.ts",
507
+ "line": 18,
508
+ "character": 1
509
+ },
510
+ "name": "WatcherMain"
511
+ },
512
+ "modifiers": []
513
+ },
514
+ {
515
+ "__schema": "FunctionLikeSchema",
516
+ "location": {
517
+ "filePath": "watcher.main.runtime.ts",
518
+ "line": 29,
519
+ "character": 3
520
+ },
521
+ "signature": "(method) WatcherMain.watch(opts: WatchOptions): Promise<void>",
522
+ "name": "watch",
523
+ "params": [
524
+ {
525
+ "__schema": "ParameterSchema",
526
+ "location": {
527
+ "filePath": "watcher.main.runtime.ts",
528
+ "line": 29,
529
+ "character": 15
530
+ },
531
+ "name": "opts",
532
+ "type": {
533
+ "__schema": "TypeRefSchema",
534
+ "location": {
535
+ "filePath": "watcher.main.runtime.ts",
536
+ "line": 29,
537
+ "character": 21
538
+ },
539
+ "name": "WatchOptions"
540
+ },
541
+ "isOptional": false,
542
+ "isSpread": false
543
+ }
544
+ ],
545
+ "returnType": {
546
+ "__schema": "InferenceTypeSchema",
547
+ "location": {
548
+ "filePath": "watcher.main.runtime.ts",
549
+ "line": 29,
550
+ "character": 3
551
+ },
552
+ "type": "Promise<void>"
553
+ },
554
+ "modifiers": [
555
+ "async"
556
+ ]
557
+ },
558
+ {
559
+ "__schema": "FunctionLikeSchema",
560
+ "location": {
561
+ "filePath": "watcher.main.runtime.ts",
562
+ "line": 35,
563
+ "character": 3
564
+ },
565
+ "signature": "(method) WatcherMain.watchScopeInternalFiles(): Promise<void>",
566
+ "name": "watchScopeInternalFiles",
567
+ "params": [],
568
+ "returnType": {
569
+ "__schema": "InferenceTypeSchema",
570
+ "location": {
571
+ "filePath": "watcher.main.runtime.ts",
572
+ "line": 35,
573
+ "character": 3
574
+ },
575
+ "type": "Promise<void>"
576
+ },
577
+ "modifiers": [
578
+ "async"
579
+ ]
580
+ },
581
+ {
582
+ "__schema": "FunctionLikeSchema",
583
+ "location": {
584
+ "filePath": "watcher.main.runtime.ts",
585
+ "line": 39,
586
+ "character": 3
587
+ },
588
+ "signature": "(method) WatcherMain.triggerOnPreWatch(componentIds: ComponentID[], watchOpts: WatchOptions): Promise<void>",
589
+ "name": "triggerOnPreWatch",
590
+ "params": [
591
+ {
592
+ "__schema": "ParameterSchema",
593
+ "location": {
594
+ "filePath": "watcher.main.runtime.ts",
595
+ "line": 39,
596
+ "character": 27
597
+ },
598
+ "name": "componentIds",
599
+ "type": {
600
+ "__schema": "TypeArraySchema",
601
+ "location": {
602
+ "filePath": "watcher.main.runtime.ts",
603
+ "line": 39,
604
+ "character": 41
605
+ },
606
+ "type": {
607
+ "__schema": "TypeRefSchema",
608
+ "location": {
609
+ "filePath": "watcher.main.runtime.ts",
610
+ "line": 39,
611
+ "character": 41
612
+ },
613
+ "name": "ComponentID",
614
+ "componentId": {
615
+ "scope": "teambit.component",
616
+ "name": "component-id",
617
+ "version": "1.2.2"
618
+ }
619
+ }
620
+ },
621
+ "isOptional": false,
622
+ "isSpread": false
623
+ },
624
+ {
625
+ "__schema": "ParameterSchema",
626
+ "location": {
627
+ "filePath": "watcher.main.runtime.ts",
628
+ "line": 39,
629
+ "character": 56
630
+ },
631
+ "name": "watchOpts",
632
+ "type": {
633
+ "__schema": "TypeRefSchema",
634
+ "location": {
635
+ "filePath": "watcher.main.runtime.ts",
636
+ "line": 39,
637
+ "character": 67
638
+ },
639
+ "name": "WatchOptions"
640
+ },
641
+ "isOptional": false,
642
+ "isSpread": false
643
+ }
644
+ ],
645
+ "returnType": {
646
+ "__schema": "InferenceTypeSchema",
647
+ "location": {
648
+ "filePath": "watcher.main.runtime.ts",
649
+ "line": 39,
650
+ "character": 3
651
+ },
652
+ "type": "Promise<void>"
653
+ },
654
+ "modifiers": [
655
+ "async"
656
+ ]
657
+ },
658
+ {
659
+ "__schema": "FunctionLikeSchema",
660
+ "location": {
661
+ "filePath": "watcher.main.runtime.ts",
662
+ "line": 46,
663
+ "character": 3
664
+ },
665
+ "signature": "(method) WatcherMain.registerOnPreWatch(onPreWatchFunc: OnPreWatch): this",
666
+ "name": "registerOnPreWatch",
667
+ "params": [
668
+ {
669
+ "__schema": "ParameterSchema",
670
+ "location": {
671
+ "filePath": "watcher.main.runtime.ts",
672
+ "line": 46,
673
+ "character": 22
674
+ },
675
+ "name": "onPreWatchFunc",
676
+ "type": {
677
+ "__schema": "TypeRefSchema",
678
+ "location": {
679
+ "filePath": "watcher.main.runtime.ts",
680
+ "line": 46,
681
+ "character": 38
682
+ },
683
+ "name": "OnPreWatch",
684
+ "internalFilePath": "watcher.main.runtime.ts"
685
+ },
686
+ "isOptional": false,
687
+ "isSpread": false
688
+ }
689
+ ],
690
+ "returnType": {
691
+ "__schema": "TypeRefSchema",
692
+ "location": {
693
+ "filePath": "watcher.main.runtime.ts",
694
+ "line": 46,
695
+ "character": 3
696
+ },
697
+ "name": "WatcherMain"
698
+ },
699
+ "modifiers": []
700
+ },
701
+ {
702
+ "__schema": "VariableLikeSchema",
703
+ "location": {
704
+ "filePath": "watcher.main.runtime.ts",
705
+ "line": 51,
706
+ "character": 3
707
+ },
708
+ "signature": "(property) WatcherMain.slots: ((registerFn: () => string) => SlotRegistry<OnPreWatch>)[]",
709
+ "name": "slots",
710
+ "type": {
711
+ "__schema": "InferenceTypeSchema",
712
+ "location": {
713
+ "filePath": "watcher.main.runtime.ts",
714
+ "line": 51,
715
+ "character": 3
716
+ },
717
+ "type": "((registerFn: () => string) => SlotRegistry<OnPreWatch>)[]"
718
+ },
719
+ "isOptional": true,
720
+ "defaultValue": "[Slot.withType<OnPreWatch>()]"
721
+ },
722
+ {
723
+ "__schema": "VariableLikeSchema",
724
+ "location": {
725
+ "filePath": "watcher.main.runtime.ts",
726
+ "line": 52,
727
+ "character": 3
728
+ },
729
+ "signature": "(property) WatcherMain.dependencies: Aspect[]",
730
+ "name": "dependencies",
731
+ "type": {
732
+ "__schema": "InferenceTypeSchema",
733
+ "location": {
734
+ "filePath": "watcher.main.runtime.ts",
735
+ "line": 52,
736
+ "character": 3
737
+ },
738
+ "type": "Aspect[]"
739
+ },
740
+ "isOptional": true,
741
+ "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n ScopeAspect,\n PubsubAspect,\n LoggerAspect,\n IpcEventsAspect,\n GlobalConfigAspect,\n ]"
742
+ },
743
+ {
744
+ "__schema": "VariableLikeSchema",
745
+ "location": {
746
+ "filePath": "watcher.main.runtime.ts",
747
+ "line": 61,
748
+ "character": 3
749
+ },
750
+ "signature": "(property) WatcherMain.runtime: RuntimeDefinition",
751
+ "name": "runtime",
752
+ "type": {
753
+ "__schema": "InferenceTypeSchema",
754
+ "location": {
755
+ "filePath": "watcher.main.runtime.ts",
756
+ "line": 61,
757
+ "character": 3
758
+ },
759
+ "type": "RuntimeDefinition"
760
+ },
761
+ "isOptional": true,
762
+ "defaultValue": "MainRuntime"
763
+ },
764
+ {
765
+ "__schema": "FunctionLikeSchema",
766
+ "location": {
767
+ "filePath": "watcher.main.runtime.ts",
768
+ "line": 63,
769
+ "character": 3
770
+ },
771
+ "signature": "(method) WatcherMain.provider([cli, workspace, scope, pubsub, loggerMain, ipcEvents, globalConfig]: [CLIMain, Workspace, ScopeMain, PubsubMain, LoggerMain, IpcEventsMain, GlobalConfigMain], _: any, [onPreWatchSlot]: [OnPreWatchSlot]): Promise<...>",
772
+ "name": "provider",
773
+ "params": [
774
+ {
775
+ "__schema": "ParameterSchema",
776
+ "location": {
777
+ "filePath": "watcher.main.runtime.ts",
778
+ "line": 64,
779
+ "character": 5
780
+ },
781
+ "name": "[ cli, workspace, scope, pubsub, loggerMain, ipcEvents, globalConfig ]",
782
+ "type": {
783
+ "__schema": "TupleTypeSchema",
784
+ "location": {
785
+ "filePath": "watcher.main.runtime.ts",
786
+ "line": 64,
787
+ "character": 75
788
+ },
789
+ "elements": [
790
+ {
791
+ "__schema": "TypeRefSchema",
792
+ "location": {
793
+ "filePath": "watcher.main.runtime.ts",
794
+ "line": 65,
795
+ "character": 7
796
+ },
797
+ "name": "CLIMain",
798
+ "componentId": {
799
+ "scope": "teambit.harmony",
800
+ "name": "cli"
801
+ }
802
+ },
803
+ {
804
+ "__schema": "TypeRefSchema",
805
+ "location": {
806
+ "filePath": "watcher.main.runtime.ts",
807
+ "line": 66,
808
+ "character": 7
809
+ },
810
+ "name": "Workspace",
811
+ "componentId": {
812
+ "scope": "teambit.workspace",
813
+ "name": "workspace"
814
+ }
815
+ },
816
+ {
817
+ "__schema": "TypeRefSchema",
818
+ "location": {
819
+ "filePath": "watcher.main.runtime.ts",
820
+ "line": 67,
821
+ "character": 7
822
+ },
823
+ "name": "ScopeMain",
824
+ "componentId": {
825
+ "scope": "teambit.scope",
826
+ "name": "scope"
827
+ }
828
+ },
829
+ {
830
+ "__schema": "TypeRefSchema",
831
+ "location": {
832
+ "filePath": "watcher.main.runtime.ts",
833
+ "line": 68,
834
+ "character": 7
835
+ },
836
+ "name": "PubsubMain",
837
+ "componentId": {
838
+ "scope": "teambit.harmony",
839
+ "name": "pubsub"
840
+ }
841
+ },
842
+ {
843
+ "__schema": "TypeRefSchema",
844
+ "location": {
845
+ "filePath": "watcher.main.runtime.ts",
846
+ "line": 69,
847
+ "character": 7
848
+ },
849
+ "name": "LoggerMain",
850
+ "componentId": {
851
+ "scope": "teambit.harmony",
852
+ "name": "logger"
853
+ }
854
+ },
855
+ {
856
+ "__schema": "TypeRefSchema",
857
+ "location": {
858
+ "filePath": "watcher.main.runtime.ts",
859
+ "line": 70,
860
+ "character": 7
861
+ },
862
+ "name": "IpcEventsMain",
863
+ "componentId": {
864
+ "scope": "teambit.harmony",
865
+ "name": "ipc-events"
866
+ }
867
+ },
868
+ {
869
+ "__schema": "TypeRefSchema",
870
+ "location": {
871
+ "filePath": "watcher.main.runtime.ts",
872
+ "line": 71,
873
+ "character": 7
874
+ },
875
+ "name": "GlobalConfigMain",
876
+ "componentId": {
877
+ "scope": "teambit.harmony",
878
+ "name": "global-config"
879
+ }
880
+ }
881
+ ]
882
+ },
883
+ "isOptional": false,
884
+ "isSpread": false
885
+ },
886
+ {
887
+ "__schema": "ParameterSchema",
888
+ "location": {
889
+ "filePath": "watcher.main.runtime.ts",
890
+ "line": 73,
891
+ "character": 5
892
+ },
893
+ "name": "_",
894
+ "type": {
895
+ "__schema": "InferenceTypeSchema",
896
+ "location": {
897
+ "filePath": "watcher.main.runtime.ts",
898
+ "line": 73,
899
+ "character": 5
900
+ },
901
+ "type": "any"
902
+ },
903
+ "isOptional": false,
904
+ "isSpread": false
905
+ },
906
+ {
907
+ "__schema": "ParameterSchema",
908
+ "location": {
909
+ "filePath": "watcher.main.runtime.ts",
910
+ "line": 74,
911
+ "character": 5
912
+ },
913
+ "name": "[ onPreWatchSlot ]",
914
+ "type": {
915
+ "__schema": "TupleTypeSchema",
916
+ "location": {
917
+ "filePath": "watcher.main.runtime.ts",
918
+ "line": 74,
919
+ "character": 23
920
+ },
921
+ "elements": [
922
+ {
923
+ "__schema": "TypeRefSchema",
924
+ "location": {
925
+ "filePath": "watcher.main.runtime.ts",
926
+ "line": 74,
927
+ "character": 24
928
+ },
929
+ "name": "OnPreWatchSlot",
930
+ "internalFilePath": "watcher.main.runtime.ts"
931
+ }
932
+ ]
933
+ },
934
+ "isOptional": false,
935
+ "isSpread": false
936
+ }
937
+ ],
938
+ "returnType": {
939
+ "__schema": "InferenceTypeSchema",
940
+ "location": {
941
+ "filePath": "watcher.main.runtime.ts",
942
+ "line": 63,
943
+ "character": 3
944
+ },
945
+ "type": "Promise<...>"
946
+ },
947
+ "modifiers": [
948
+ "static",
949
+ "async"
950
+ ]
951
+ }
952
+ ],
953
+ "extendsNodes": [],
954
+ "implementNodes": []
955
+ }
956
+ },
957
+ {
958
+ "__schema": "UnImplementedSchema",
959
+ "location": {
960
+ "filePath": "index.ts",
961
+ "line": 6,
962
+ "character": 16
963
+ },
964
+ "name": "WatcherAspect",
965
+ "type": "Identifier"
966
+ },
967
+ {
968
+ "__schema": "ExportSchema",
969
+ "location": {
970
+ "filePath": "index.ts",
971
+ "line": 7,
972
+ "character": 10
973
+ },
974
+ "signature": "const WatcherAspect: Aspect",
975
+ "name": "WatcherAspect",
976
+ "exportNode": {
977
+ "__schema": "VariableLikeSchema",
978
+ "location": {
979
+ "filePath": "watcher.aspect.ts",
980
+ "line": 3,
981
+ "character": 14
982
+ },
983
+ "signature": "const WatcherAspect: Aspect",
984
+ "name": "WatcherAspect",
985
+ "type": {
986
+ "__schema": "TypeRefSchema",
987
+ "location": {
988
+ "filePath": "watcher.aspect.ts",
989
+ "line": 3,
990
+ "character": 14
991
+ },
992
+ "name": "Aspect",
993
+ "componentId": {
994
+ "scope": "teambit.harmony",
995
+ "name": "harmony",
996
+ "version": "0.4.6"
997
+ }
998
+ },
999
+ "isOptional": false,
1000
+ "defaultValue": "Aspect.create({\n id: 'teambit.workspace/watcher',\n})"
1001
+ }
1002
+ }
1003
+ ],
1004
+ "internals": []
1005
+ },
1006
+ "internals": [
1007
+ {
1008
+ "__schema": "ModuleSchema",
1009
+ "location": {
1010
+ "filePath": "watcher.ts",
1011
+ "line": 1,
1012
+ "character": 1
1013
+ },
1014
+ "exports": [
1015
+ {
1016
+ "__schema": "TypeSchema",
1017
+ "location": {
1018
+ "filePath": "watcher.ts",
1019
+ "line": 30,
1020
+ "character": 1
1021
+ },
1022
+ "signature": "type WatcherProcessData = {\n watchProcess: ChildProcess;\n compilerId: ComponentID;\n componentIds: ComponentID[];\n}",
1023
+ "name": "WatcherProcessData",
1024
+ "type": {
1025
+ "__schema": "TypeLiteralSchema",
1026
+ "location": {
1027
+ "filePath": "watcher.ts",
1028
+ "line": 30,
1029
+ "character": 34
1030
+ },
1031
+ "members": [
1032
+ {
1033
+ "__schema": "VariableLikeSchema",
1034
+ "location": {
1035
+ "filePath": "watcher.ts",
1036
+ "line": 30,
1037
+ "character": 36
1038
+ },
1039
+ "signature": "(property) watchProcess: ChildProcess",
1040
+ "name": "watchProcess",
1041
+ "type": {
1042
+ "__schema": "TypeRefSchema",
1043
+ "location": {
1044
+ "filePath": "watcher.ts",
1045
+ "line": 30,
1046
+ "character": 36
1047
+ },
1048
+ "name": "ChildProcess",
1049
+ "packageName": "child_process"
1050
+ },
1051
+ "isOptional": false
1052
+ },
1053
+ {
1054
+ "__schema": "VariableLikeSchema",
1055
+ "location": {
1056
+ "filePath": "watcher.ts",
1057
+ "line": 30,
1058
+ "character": 64
1059
+ },
1060
+ "signature": "(property) compilerId: ComponentID",
1061
+ "name": "compilerId",
1062
+ "type": {
1063
+ "__schema": "TypeRefSchema",
1064
+ "location": {
1065
+ "filePath": "watcher.ts",
1066
+ "line": 30,
1067
+ "character": 64
1068
+ },
1069
+ "name": "ComponentID",
1070
+ "componentId": {
1071
+ "scope": "teambit.component",
1072
+ "name": "component-id",
1073
+ "version": "1.2.2"
1074
+ }
1075
+ },
1076
+ "isOptional": false
1077
+ },
1078
+ {
1079
+ "__schema": "VariableLikeSchema",
1080
+ "location": {
1081
+ "filePath": "watcher.ts",
1082
+ "line": 30,
1083
+ "character": 89
1084
+ },
1085
+ "signature": "(property) componentIds: ComponentID[]",
1086
+ "name": "componentIds",
1087
+ "type": {
1088
+ "__schema": "TypeArraySchema",
1089
+ "location": {
1090
+ "filePath": "watcher.ts",
1091
+ "line": 30,
1092
+ "character": 103
1093
+ },
1094
+ "type": {
1095
+ "__schema": "TypeRefSchema",
1096
+ "location": {
1097
+ "filePath": "watcher.ts",
1098
+ "line": 30,
1099
+ "character": 103
1100
+ },
1101
+ "name": "ComponentID",
1102
+ "componentId": {
1103
+ "scope": "teambit.component",
1104
+ "name": "component-id",
1105
+ "version": "1.2.2"
1106
+ }
1107
+ }
1108
+ },
1109
+ "isOptional": false
1110
+ }
1111
+ ]
1112
+ }
1113
+ },
1114
+ {
1115
+ "__schema": "TypeSchema",
1116
+ "location": {
1117
+ "filePath": "watcher.ts",
1118
+ "line": 32,
1119
+ "character": 1
1120
+ },
1121
+ "signature": "type EventMessages = {\n onAll: Function;\n onStart: Function;\n onReady: Function;\n onChange: OnFileEventFunc;\n onAdd: OnFileEventFunc;\n onUnlink: OnFileEventFunc;\n onError: Function;\n}",
1122
+ "name": "EventMessages",
1123
+ "type": {
1124
+ "__schema": "TypeLiteralSchema",
1125
+ "location": {
1126
+ "filePath": "watcher.ts",
1127
+ "line": 32,
1128
+ "character": 29
1129
+ },
1130
+ "members": [
1131
+ {
1132
+ "__schema": "VariableLikeSchema",
1133
+ "location": {
1134
+ "filePath": "watcher.ts",
1135
+ "line": 33,
1136
+ "character": 3
1137
+ },
1138
+ "signature": "(property) onAll: Function",
1139
+ "name": "onAll",
1140
+ "type": {
1141
+ "__schema": "TypeRefSchema",
1142
+ "location": {
1143
+ "filePath": "watcher.ts",
1144
+ "line": 33,
1145
+ "character": 10
1146
+ },
1147
+ "name": "Function"
1148
+ },
1149
+ "isOptional": false
1150
+ },
1151
+ {
1152
+ "__schema": "VariableLikeSchema",
1153
+ "location": {
1154
+ "filePath": "watcher.ts",
1155
+ "line": 34,
1156
+ "character": 3
1157
+ },
1158
+ "signature": "(property) onStart: Function",
1159
+ "name": "onStart",
1160
+ "type": {
1161
+ "__schema": "TypeRefSchema",
1162
+ "location": {
1163
+ "filePath": "watcher.ts",
1164
+ "line": 34,
1165
+ "character": 12
1166
+ },
1167
+ "name": "Function"
1168
+ },
1169
+ "isOptional": false
1170
+ },
1171
+ {
1172
+ "__schema": "VariableLikeSchema",
1173
+ "location": {
1174
+ "filePath": "watcher.ts",
1175
+ "line": 35,
1176
+ "character": 3
1177
+ },
1178
+ "signature": "(property) onReady: Function",
1179
+ "name": "onReady",
1180
+ "type": {
1181
+ "__schema": "TypeRefSchema",
1182
+ "location": {
1183
+ "filePath": "watcher.ts",
1184
+ "line": 35,
1185
+ "character": 12
1186
+ },
1187
+ "name": "Function"
1188
+ },
1189
+ "isOptional": false
1190
+ },
1191
+ {
1192
+ "__schema": "VariableLikeSchema",
1193
+ "location": {
1194
+ "filePath": "watcher.ts",
1195
+ "line": 36,
1196
+ "character": 3
1197
+ },
1198
+ "signature": "(property) onChange: OnFileEventFunc",
1199
+ "name": "onChange",
1200
+ "type": {
1201
+ "__schema": "TypeRefSchema",
1202
+ "location": {
1203
+ "filePath": "watcher.ts",
1204
+ "line": 36,
1205
+ "character": 3
1206
+ },
1207
+ "name": "OnFileEventFunc",
1208
+ "internalFilePath": "watcher.ts"
1209
+ },
1210
+ "isOptional": false
1211
+ },
1212
+ {
1213
+ "__schema": "VariableLikeSchema",
1214
+ "location": {
1215
+ "filePath": "watcher.ts",
1216
+ "line": 37,
1217
+ "character": 3
1218
+ },
1219
+ "signature": "(property) onAdd: OnFileEventFunc",
1220
+ "name": "onAdd",
1221
+ "type": {
1222
+ "__schema": "TypeRefSchema",
1223
+ "location": {
1224
+ "filePath": "watcher.ts",
1225
+ "line": 37,
1226
+ "character": 3
1227
+ },
1228
+ "name": "OnFileEventFunc",
1229
+ "internalFilePath": "watcher.ts"
1230
+ },
1231
+ "isOptional": false
1232
+ },
1233
+ {
1234
+ "__schema": "VariableLikeSchema",
1235
+ "location": {
1236
+ "filePath": "watcher.ts",
1237
+ "line": 38,
1238
+ "character": 3
1239
+ },
1240
+ "signature": "(property) onUnlink: OnFileEventFunc",
1241
+ "name": "onUnlink",
1242
+ "type": {
1243
+ "__schema": "TypeRefSchema",
1244
+ "location": {
1245
+ "filePath": "watcher.ts",
1246
+ "line": 38,
1247
+ "character": 3
1248
+ },
1249
+ "name": "OnFileEventFunc",
1250
+ "internalFilePath": "watcher.ts"
1251
+ },
1252
+ "isOptional": false
1253
+ },
1254
+ {
1255
+ "__schema": "VariableLikeSchema",
1256
+ "location": {
1257
+ "filePath": "watcher.ts",
1258
+ "line": 39,
1259
+ "character": 3
1260
+ },
1261
+ "signature": "(property) onError: Function",
1262
+ "name": "onError",
1263
+ "type": {
1264
+ "__schema": "TypeRefSchema",
1265
+ "location": {
1266
+ "filePath": "watcher.ts",
1267
+ "line": 39,
1268
+ "character": 12
1269
+ },
1270
+ "name": "Function"
1271
+ },
1272
+ "isOptional": false
1273
+ }
1274
+ ]
1275
+ }
1276
+ },
1277
+ {
1278
+ "__schema": "TypeSchema",
1279
+ "location": {
1280
+ "filePath": "watcher.ts",
1281
+ "line": 42,
1282
+ "character": 1
1283
+ },
1284
+ "signature": "type OnFileEventFunc = (filePaths: string[], buildResults: OnComponentEventResult[], verbose: boolean, duration: number, failureMsg?: string) => void",
1285
+ "name": "OnFileEventFunc",
1286
+ "type": {
1287
+ "__schema": "FunctionLikeSchema",
1288
+ "location": {
1289
+ "filePath": "watcher.ts",
1290
+ "line": 42,
1291
+ "character": 31
1292
+ },
1293
+ "signature": "(filePaths: string[], buildResults: (component: teambit.workspace/workspace) OnComponentEventResult[], verbose: boolean, duration: number, failureMsg?: string): void",
1294
+ "name": "",
1295
+ "params": [
1296
+ {
1297
+ "__schema": "ParameterSchema",
1298
+ "location": {
1299
+ "filePath": "watcher.ts",
1300
+ "line": 43,
1301
+ "character": 3
1302
+ },
1303
+ "name": "filePaths",
1304
+ "type": {
1305
+ "__schema": "TypeArraySchema",
1306
+ "location": {
1307
+ "filePath": "watcher.ts",
1308
+ "line": 43,
1309
+ "character": 14
1310
+ },
1311
+ "type": {
1312
+ "__schema": "KeywordTypeSchema",
1313
+ "location": {
1314
+ "filePath": "watcher.ts",
1315
+ "line": 43,
1316
+ "character": 14
1317
+ },
1318
+ "name": "string"
1319
+ }
1320
+ },
1321
+ "isOptional": false,
1322
+ "isSpread": false
1323
+ },
1324
+ {
1325
+ "__schema": "ParameterSchema",
1326
+ "location": {
1327
+ "filePath": "watcher.ts",
1328
+ "line": 44,
1329
+ "character": 3
1330
+ },
1331
+ "name": "buildResults",
1332
+ "type": {
1333
+ "__schema": "TypeArraySchema",
1334
+ "location": {
1335
+ "filePath": "watcher.ts",
1336
+ "line": 44,
1337
+ "character": 17
1338
+ },
1339
+ "type": {
1340
+ "__schema": "TypeRefSchema",
1341
+ "location": {
1342
+ "filePath": "watcher.ts",
1343
+ "line": 44,
1344
+ "character": 17
1345
+ },
1346
+ "name": "OnComponentEventResult",
1347
+ "componentId": {
1348
+ "scope": "teambit.workspace",
1349
+ "name": "workspace"
1350
+ }
1351
+ }
1352
+ },
1353
+ "isOptional": false,
1354
+ "isSpread": false
1355
+ },
1356
+ {
1357
+ "__schema": "ParameterSchema",
1358
+ "location": {
1359
+ "filePath": "watcher.ts",
1360
+ "line": 45,
1361
+ "character": 3
1362
+ },
1363
+ "name": "verbose",
1364
+ "type": {
1365
+ "__schema": "KeywordTypeSchema",
1366
+ "location": {
1367
+ "filePath": "watcher.ts",
1368
+ "line": 45,
1369
+ "character": 12
1370
+ },
1371
+ "name": "boolean"
1372
+ },
1373
+ "isOptional": false,
1374
+ "isSpread": false
1375
+ },
1376
+ {
1377
+ "__schema": "ParameterSchema",
1378
+ "location": {
1379
+ "filePath": "watcher.ts",
1380
+ "line": 46,
1381
+ "character": 3
1382
+ },
1383
+ "name": "duration",
1384
+ "type": {
1385
+ "__schema": "KeywordTypeSchema",
1386
+ "location": {
1387
+ "filePath": "watcher.ts",
1388
+ "line": 46,
1389
+ "character": 13
1390
+ },
1391
+ "name": "number"
1392
+ },
1393
+ "isOptional": false,
1394
+ "isSpread": false
1395
+ },
1396
+ {
1397
+ "__schema": "ParameterSchema",
1398
+ "location": {
1399
+ "filePath": "watcher.ts",
1400
+ "line": 47,
1401
+ "character": 3
1402
+ },
1403
+ "name": "failureMsg",
1404
+ "type": {
1405
+ "__schema": "KeywordTypeSchema",
1406
+ "location": {
1407
+ "filePath": "watcher.ts",
1408
+ "line": 47,
1409
+ "character": 16
1410
+ },
1411
+ "name": "string"
1412
+ },
1413
+ "isOptional": true,
1414
+ "isSpread": false
1415
+ }
1416
+ ],
1417
+ "returnType": {
1418
+ "__schema": "KeywordTypeSchema",
1419
+ "location": {
1420
+ "filePath": "watcher.ts",
1421
+ "line": 48,
1422
+ "character": 6
1423
+ },
1424
+ "name": "void"
1425
+ },
1426
+ "modifiers": []
1427
+ }
1428
+ },
1429
+ {
1430
+ "__schema": "TypeSchema",
1431
+ "location": {
1432
+ "filePath": "watcher.ts",
1433
+ "line": 50,
1434
+ "character": 1
1435
+ },
1436
+ "signature": "type WatchOptions = {\n msgs?: EventMessages;\n initiator?: CompilationInitiator;\n verbose?: boolean;\n spawnTSServer?: boolean;\n checkTypes?: CheckTypes;\n preCompile?: boolean;\n compile?: boolean;\n import?: boolean;\n generateTypes?: boolean;\n trigger?: ComponentID;\n}",
1437
+ "name": "WatchOptions",
1438
+ "type": {
1439
+ "__schema": "TypeLiteralSchema",
1440
+ "location": {
1441
+ "filePath": "watcher.ts",
1442
+ "line": 50,
1443
+ "character": 28
1444
+ },
1445
+ "members": [
1446
+ {
1447
+ "__schema": "VariableLikeSchema",
1448
+ "location": {
1449
+ "filePath": "watcher.ts",
1450
+ "line": 51,
1451
+ "character": 3
1452
+ },
1453
+ "signature": "(property) msgs?: EventMessages | undefined",
1454
+ "name": "msgs",
1455
+ "type": {
1456
+ "__schema": "TypeRefSchema",
1457
+ "location": {
1458
+ "filePath": "watcher.ts",
1459
+ "line": 51,
1460
+ "character": 10
1461
+ },
1462
+ "name": "EventMessages",
1463
+ "internalFilePath": "watcher.ts"
1464
+ },
1465
+ "isOptional": true
1466
+ },
1467
+ {
1468
+ "__schema": "VariableLikeSchema",
1469
+ "location": {
1470
+ "filePath": "watcher.ts",
1471
+ "line": 52,
1472
+ "character": 3
1473
+ },
1474
+ "signature": "(property) initiator?: CompilationInitiator | undefined",
1475
+ "name": "initiator",
1476
+ "type": {
1477
+ "__schema": "TypeRefSchema",
1478
+ "location": {
1479
+ "filePath": "watcher.ts",
1480
+ "line": 52,
1481
+ "character": 15
1482
+ },
1483
+ "name": "CompilationInitiator",
1484
+ "componentId": {
1485
+ "scope": "teambit.compilation",
1486
+ "name": "compiler"
1487
+ }
1488
+ },
1489
+ "isOptional": true
1490
+ },
1491
+ {
1492
+ "__schema": "VariableLikeSchema",
1493
+ "location": {
1494
+ "filePath": "watcher.ts",
1495
+ "line": 53,
1496
+ "character": 3
1497
+ },
1498
+ "signature": "(property) verbose?: boolean | undefined",
1499
+ "name": "verbose",
1500
+ "type": {
1501
+ "__schema": "KeywordTypeSchema",
1502
+ "location": {
1503
+ "filePath": "watcher.ts",
1504
+ "line": 53,
1505
+ "character": 13
1506
+ },
1507
+ "name": "boolean"
1508
+ },
1509
+ "isOptional": true
1510
+ },
1511
+ {
1512
+ "__schema": "VariableLikeSchema",
1513
+ "location": {
1514
+ "filePath": "watcher.ts",
1515
+ "line": 54,
1516
+ "character": 3
1517
+ },
1518
+ "signature": "(property) spawnTSServer?: boolean | undefined",
1519
+ "name": "spawnTSServer",
1520
+ "type": {
1521
+ "__schema": "KeywordTypeSchema",
1522
+ "location": {
1523
+ "filePath": "watcher.ts",
1524
+ "line": 54,
1525
+ "character": 19
1526
+ },
1527
+ "name": "boolean"
1528
+ },
1529
+ "isOptional": true
1530
+ },
1531
+ {
1532
+ "__schema": "VariableLikeSchema",
1533
+ "location": {
1534
+ "filePath": "watcher.ts",
1535
+ "line": 55,
1536
+ "character": 3
1537
+ },
1538
+ "signature": "(property) checkTypes?: CheckTypes | undefined",
1539
+ "name": "checkTypes",
1540
+ "type": {
1541
+ "__schema": "TypeRefSchema",
1542
+ "location": {
1543
+ "filePath": "watcher.ts",
1544
+ "line": 55,
1545
+ "character": 16
1546
+ },
1547
+ "name": "CheckTypes"
1548
+ },
1549
+ "isOptional": true
1550
+ },
1551
+ {
1552
+ "__schema": "VariableLikeSchema",
1553
+ "location": {
1554
+ "filePath": "watcher.ts",
1555
+ "line": 56,
1556
+ "character": 3
1557
+ },
1558
+ "signature": "(property) preCompile?: boolean | undefined",
1559
+ "name": "preCompile",
1560
+ "type": {
1561
+ "__schema": "KeywordTypeSchema",
1562
+ "location": {
1563
+ "filePath": "watcher.ts",
1564
+ "line": 56,
1565
+ "character": 16
1566
+ },
1567
+ "name": "boolean"
1568
+ },
1569
+ "isOptional": true
1570
+ },
1571
+ {
1572
+ "__schema": "VariableLikeSchema",
1573
+ "location": {
1574
+ "filePath": "watcher.ts",
1575
+ "line": 57,
1576
+ "character": 3
1577
+ },
1578
+ "signature": "(property) compile?: boolean | undefined",
1579
+ "name": "compile",
1580
+ "type": {
1581
+ "__schema": "KeywordTypeSchema",
1582
+ "location": {
1583
+ "filePath": "watcher.ts",
1584
+ "line": 57,
1585
+ "character": 13
1586
+ },
1587
+ "name": "boolean"
1588
+ },
1589
+ "isOptional": true
1590
+ },
1591
+ {
1592
+ "__schema": "VariableLikeSchema",
1593
+ "location": {
1594
+ "filePath": "watcher.ts",
1595
+ "line": 58,
1596
+ "character": 3
1597
+ },
1598
+ "signature": "(property) import?: boolean | undefined",
1599
+ "name": "import",
1600
+ "type": {
1601
+ "__schema": "KeywordTypeSchema",
1602
+ "location": {
1603
+ "filePath": "watcher.ts",
1604
+ "line": 58,
1605
+ "character": 12
1606
+ },
1607
+ "name": "boolean"
1608
+ },
1609
+ "isOptional": true
1610
+ },
1611
+ {
1612
+ "__schema": "VariableLikeSchema",
1613
+ "location": {
1614
+ "filePath": "watcher.ts",
1615
+ "line": 59,
1616
+ "character": 3
1617
+ },
1618
+ "signature": "(property) generateTypes?: boolean | undefined",
1619
+ "name": "generateTypes",
1620
+ "type": {
1621
+ "__schema": "KeywordTypeSchema",
1622
+ "location": {
1623
+ "filePath": "watcher.ts",
1624
+ "line": 59,
1625
+ "character": 19
1626
+ },
1627
+ "name": "boolean"
1628
+ },
1629
+ "isOptional": true
1630
+ },
1631
+ {
1632
+ "__schema": "VariableLikeSchema",
1633
+ "location": {
1634
+ "filePath": "watcher.ts",
1635
+ "line": 60,
1636
+ "character": 3
1637
+ },
1638
+ "signature": "(property) trigger?: ComponentID | undefined",
1639
+ "name": "trigger",
1640
+ "type": {
1641
+ "__schema": "TypeRefSchema",
1642
+ "location": {
1643
+ "filePath": "watcher.ts",
1644
+ "line": 60,
1645
+ "character": 13
1646
+ },
1647
+ "name": "ComponentID",
1648
+ "componentId": {
1649
+ "scope": "teambit.component",
1650
+ "name": "component-id",
1651
+ "version": "1.2.2"
1652
+ }
1653
+ },
1654
+ "isOptional": true
1655
+ }
1656
+ ]
1657
+ }
1658
+ },
1659
+ {
1660
+ "__schema": "TypeSchema",
1661
+ "location": {
1662
+ "filePath": "watcher.ts",
1663
+ "line": 63,
1664
+ "character": 1
1665
+ },
1666
+ "signature": "type RootDirs = {\n [dir: string]: ComponentID;\n}",
1667
+ "name": "RootDirs",
1668
+ "type": {
1669
+ "__schema": "TypeLiteralSchema",
1670
+ "location": {
1671
+ "filePath": "watcher.ts",
1672
+ "line": 63,
1673
+ "character": 24
1674
+ },
1675
+ "members": [
1676
+ {
1677
+ "__schema": "IndexSignatureSchema",
1678
+ "location": {
1679
+ "filePath": "watcher.ts",
1680
+ "line": 63,
1681
+ "character": 26
1682
+ },
1683
+ "keyType": {
1684
+ "__schema": "ParameterSchema",
1685
+ "location": {
1686
+ "filePath": "watcher.ts",
1687
+ "line": 63,
1688
+ "character": 27
1689
+ },
1690
+ "name": "dir",
1691
+ "type": {
1692
+ "__schema": "TypeRefSchema",
1693
+ "location": {
1694
+ "filePath": "watcher.ts",
1695
+ "line": 63,
1696
+ "character": 32
1697
+ },
1698
+ "name": "PathLinux",
1699
+ "internalFilePath": "watcher.ts"
1700
+ },
1701
+ "isOptional": false,
1702
+ "isSpread": false
1703
+ },
1704
+ "valueType": {
1705
+ "__schema": "TypeRefSchema",
1706
+ "location": {
1707
+ "filePath": "watcher.ts",
1708
+ "line": 63,
1709
+ "character": 44
1710
+ },
1711
+ "name": "ComponentID",
1712
+ "componentId": {
1713
+ "scope": "teambit.component",
1714
+ "name": "component-id",
1715
+ "version": "1.2.2"
1716
+ }
1717
+ }
1718
+ }
1719
+ ]
1720
+ }
1721
+ },
1722
+ {
1723
+ "__schema": "ClassSchema",
1724
+ "location": {
1725
+ "filePath": "watcher.ts",
1726
+ "line": 68,
1727
+ "character": 1
1728
+ },
1729
+ "signature": "class Watcher",
1730
+ "name": "Watcher",
1731
+ "members": [
1732
+ {
1733
+ "__schema": "ConstructorSchema",
1734
+ "location": {
1735
+ "filePath": "watcher.ts",
1736
+ "line": 78,
1737
+ "character": 3
1738
+ },
1739
+ "signature": "constructor Watcher(workspace: Workspace, pubsub: PubsubMain, watcherMain: WatcherMain, options: WatchOptions): Watcher",
1740
+ "name": "constructor",
1741
+ "params": [
1742
+ {
1743
+ "__schema": "ParameterSchema",
1744
+ "location": {
1745
+ "filePath": "watcher.ts",
1746
+ "line": 79,
1747
+ "character": 5
1748
+ },
1749
+ "name": "workspace",
1750
+ "type": {
1751
+ "__schema": "TypeRefSchema",
1752
+ "location": {
1753
+ "filePath": "watcher.ts",
1754
+ "line": 79,
1755
+ "character": 24
1756
+ },
1757
+ "name": "Workspace",
1758
+ "componentId": {
1759
+ "scope": "teambit.workspace",
1760
+ "name": "workspace"
1761
+ }
1762
+ },
1763
+ "isOptional": false,
1764
+ "isSpread": false
1765
+ },
1766
+ {
1767
+ "__schema": "ParameterSchema",
1768
+ "location": {
1769
+ "filePath": "watcher.ts",
1770
+ "line": 80,
1771
+ "character": 5
1772
+ },
1773
+ "name": "pubsub",
1774
+ "type": {
1775
+ "__schema": "TypeRefSchema",
1776
+ "location": {
1777
+ "filePath": "watcher.ts",
1778
+ "line": 80,
1779
+ "character": 21
1780
+ },
1781
+ "name": "PubsubMain",
1782
+ "componentId": {
1783
+ "scope": "teambit.harmony",
1784
+ "name": "pubsub"
1785
+ }
1786
+ },
1787
+ "isOptional": false,
1788
+ "isSpread": false
1789
+ },
1790
+ {
1791
+ "__schema": "ParameterSchema",
1792
+ "location": {
1793
+ "filePath": "watcher.ts",
1794
+ "line": 81,
1795
+ "character": 5
1796
+ },
1797
+ "name": "watcherMain",
1798
+ "type": {
1799
+ "__schema": "TypeRefSchema",
1800
+ "location": {
1801
+ "filePath": "watcher.ts",
1802
+ "line": 81,
1803
+ "character": 26
1804
+ },
1805
+ "name": "WatcherMain"
1806
+ },
1807
+ "isOptional": false,
1808
+ "isSpread": false
1809
+ },
1810
+ {
1811
+ "__schema": "ParameterSchema",
1812
+ "location": {
1813
+ "filePath": "watcher.ts",
1814
+ "line": 82,
1815
+ "character": 5
1816
+ },
1817
+ "name": "options",
1818
+ "type": {
1819
+ "__schema": "TypeRefSchema",
1820
+ "location": {
1821
+ "filePath": "watcher.ts",
1822
+ "line": 82,
1823
+ "character": 22
1824
+ },
1825
+ "name": "WatchOptions"
1826
+ },
1827
+ "isOptional": false,
1828
+ "isSpread": false
1829
+ }
1830
+ ],
1831
+ "returnType": {
1832
+ "__schema": "ThisTypeSchema",
1833
+ "location": {
1834
+ "filePath": "watcher.ts",
1835
+ "line": 68,
1836
+ "character": 1
1837
+ },
1838
+ "name": "Watcher"
1839
+ },
1840
+ "modifiers": []
1841
+ },
1842
+ {
1843
+ "__schema": "GetAccessorSchema",
1844
+ "location": {
1845
+ "filePath": "watcher.ts",
1846
+ "line": 89,
1847
+ "character": 3
1848
+ },
1849
+ "signature": "(getter) Watcher.consumer: Consumer",
1850
+ "name": "consumer",
1851
+ "type": {
1852
+ "__schema": "TypeRefSchema",
1853
+ "location": {
1854
+ "filePath": "watcher.ts",
1855
+ "line": 89,
1856
+ "character": 3
1857
+ },
1858
+ "name": "Consumer",
1859
+ "componentId": {
1860
+ "scope": "teambit.legacy",
1861
+ "name": "consumer",
1862
+ "version": "0.0.20"
1863
+ }
1864
+ }
1865
+ },
1866
+ {
1867
+ "__schema": "FunctionLikeSchema",
1868
+ "location": {
1869
+ "filePath": "watcher.ts",
1870
+ "line": 93,
1871
+ "character": 3
1872
+ },
1873
+ "signature": "(method) Watcher.watch(): Promise<unknown>",
1874
+ "name": "watch",
1875
+ "params": [],
1876
+ "returnType": {
1877
+ "__schema": "InferenceTypeSchema",
1878
+ "location": {
1879
+ "filePath": "watcher.ts",
1880
+ "line": 93,
1881
+ "character": 3
1882
+ },
1883
+ "type": "Promise<unknown>"
1884
+ },
1885
+ "modifiers": [
1886
+ "async"
1887
+ ]
1888
+ }
1889
+ ],
1890
+ "extendsNodes": [],
1891
+ "implementNodes": []
1892
+ }
1893
+ ],
1894
+ "internals": [
1895
+ {
1896
+ "__schema": "ModuleSchema",
1897
+ "location": {
1898
+ "filePath": "watcher.ts",
1899
+ "line": 65,
1900
+ "character": 1
1901
+ },
1902
+ "exports": [
1903
+ {
1904
+ "__schema": "VariableLikeSchema",
1905
+ "location": {
1906
+ "filePath": "watcher.ts",
1907
+ "line": 65,
1908
+ "character": 7
1909
+ },
1910
+ "signature": "const DEBOUNCE_WAIT_MS: 100",
1911
+ "name": "DEBOUNCE_WAIT_MS",
1912
+ "type": {
1913
+ "__schema": "InferenceTypeSchema",
1914
+ "location": {
1915
+ "filePath": "watcher.ts",
1916
+ "line": 65,
1917
+ "character": 7
1918
+ },
1919
+ "type": "100"
1920
+ },
1921
+ "isOptional": false,
1922
+ "defaultValue": "100"
1923
+ }
1924
+ ],
1925
+ "internals": []
1926
+ },
1927
+ {
1928
+ "__schema": "TypeSchema",
1929
+ "location": {
1930
+ "filePath": "watcher.ts",
1931
+ "line": 66,
1932
+ "character": 1
1933
+ },
1934
+ "signature": "type PathLinux = string",
1935
+ "name": "PathLinux",
1936
+ "type": {
1937
+ "__schema": "KeywordTypeSchema",
1938
+ "location": {
1939
+ "filePath": "watcher.ts",
1940
+ "line": 66,
1941
+ "character": 18
1942
+ },
1943
+ "name": "string"
1944
+ }
1945
+ }
1946
+ ]
1947
+ },
1948
+ {
1949
+ "__schema": "ModuleSchema",
1950
+ "location": {
1951
+ "filePath": "watcher.main.runtime.ts",
1952
+ "line": 1,
1953
+ "character": 1
1954
+ },
1955
+ "exports": [
1956
+ {
1957
+ "__schema": "TypeSchema",
1958
+ "location": {
1959
+ "filePath": "watcher.main.runtime.ts",
1960
+ "line": 15,
1961
+ "character": 1
1962
+ },
1963
+ "signature": "type OnPreWatch = (componentIds: ComponentID[], watchOpts: WatchOptions) => Promise<void>",
1964
+ "name": "OnPreWatch",
1965
+ "type": {
1966
+ "__schema": "FunctionLikeSchema",
1967
+ "location": {
1968
+ "filePath": "watcher.main.runtime.ts",
1969
+ "line": 15,
1970
+ "character": 26
1971
+ },
1972
+ "signature": "(componentIds: (component: teambit.component/component-id) ComponentID[], watchOpts: WatchOptions): Promise<void>",
1973
+ "name": "",
1974
+ "params": [
1975
+ {
1976
+ "__schema": "ParameterSchema",
1977
+ "location": {
1978
+ "filePath": "watcher.main.runtime.ts",
1979
+ "line": 15,
1980
+ "character": 27
1981
+ },
1982
+ "name": "componentIds",
1983
+ "type": {
1984
+ "__schema": "TypeArraySchema",
1985
+ "location": {
1986
+ "filePath": "watcher.main.runtime.ts",
1987
+ "line": 15,
1988
+ "character": 41
1989
+ },
1990
+ "type": {
1991
+ "__schema": "TypeRefSchema",
1992
+ "location": {
1993
+ "filePath": "watcher.main.runtime.ts",
1994
+ "line": 15,
1995
+ "character": 41
1996
+ },
1997
+ "name": "ComponentID",
1998
+ "componentId": {
1999
+ "scope": "teambit.component",
2000
+ "name": "component-id",
2001
+ "version": "1.2.2"
2002
+ }
2003
+ }
2004
+ },
2005
+ "isOptional": false,
2006
+ "isSpread": false
2007
+ },
2008
+ {
2009
+ "__schema": "ParameterSchema",
2010
+ "location": {
2011
+ "filePath": "watcher.main.runtime.ts",
2012
+ "line": 15,
2013
+ "character": 56
2014
+ },
2015
+ "name": "watchOpts",
2016
+ "type": {
2017
+ "__schema": "TypeRefSchema",
2018
+ "location": {
2019
+ "filePath": "watcher.main.runtime.ts",
2020
+ "line": 15,
2021
+ "character": 67
2022
+ },
2023
+ "name": "WatchOptions"
2024
+ },
2025
+ "isOptional": false,
2026
+ "isSpread": false
2027
+ }
2028
+ ],
2029
+ "returnType": {
2030
+ "__schema": "TypeRefSchema",
2031
+ "location": {
2032
+ "filePath": "watcher.main.runtime.ts",
2033
+ "line": 15,
2034
+ "character": 84
2035
+ },
2036
+ "name": "Promise",
2037
+ "typeArgs": [
2038
+ {
2039
+ "__schema": "KeywordTypeSchema",
2040
+ "location": {
2041
+ "filePath": "watcher.main.runtime.ts",
2042
+ "line": 15,
2043
+ "character": 92
2044
+ },
2045
+ "name": "void"
2046
+ }
2047
+ ]
2048
+ },
2049
+ "modifiers": []
2050
+ }
2051
+ },
2052
+ {
2053
+ "__schema": "TypeSchema",
2054
+ "location": {
2055
+ "filePath": "watcher.main.runtime.ts",
2056
+ "line": 16,
2057
+ "character": 1
2058
+ },
2059
+ "signature": "type OnPreWatchSlot = SlotRegistry<OnPreWatch>",
2060
+ "name": "OnPreWatchSlot",
2061
+ "type": {
2062
+ "__schema": "TypeRefSchema",
2063
+ "location": {
2064
+ "filePath": "watcher.main.runtime.ts",
2065
+ "line": 16,
2066
+ "character": 30
2067
+ },
2068
+ "name": "SlotRegistry",
2069
+ "componentId": {
2070
+ "scope": "teambit.harmony",
2071
+ "name": "harmony",
2072
+ "version": "0.4.6"
2073
+ },
2074
+ "typeArgs": [
2075
+ {
2076
+ "__schema": "TypeRefSchema",
2077
+ "location": {
2078
+ "filePath": "watcher.main.runtime.ts",
2079
+ "line": 16,
2080
+ "character": 43
2081
+ },
2082
+ "name": "OnPreWatch",
2083
+ "internalFilePath": "watcher.main.runtime.ts"
2084
+ }
2085
+ ]
2086
+ }
2087
+ },
2088
+ {
2089
+ "__schema": "ClassSchema",
2090
+ "location": {
2091
+ "filePath": "watcher.main.runtime.ts",
2092
+ "line": 18,
2093
+ "character": 1
2094
+ },
2095
+ "signature": "class WatcherMain",
2096
+ "name": "WatcherMain",
2097
+ "members": [
2098
+ {
2099
+ "__schema": "ConstructorSchema",
2100
+ "location": {
2101
+ "filePath": "watcher.main.runtime.ts",
2102
+ "line": 19,
2103
+ "character": 3
2104
+ },
2105
+ "signature": "constructor WatcherMain(workspace: Workspace, scope: ScopeMain, pubsub: PubsubMain, onPreWatchSlot: OnPreWatchSlot, ipcEvents: IpcEventsMain, logger: Logger, globalConfig: GlobalConfigMain): WatcherMain",
2106
+ "name": "constructor",
2107
+ "params": [
2108
+ {
2109
+ "__schema": "ParameterSchema",
2110
+ "location": {
2111
+ "filePath": "watcher.main.runtime.ts",
2112
+ "line": 20,
2113
+ "character": 5
2114
+ },
2115
+ "name": "workspace",
2116
+ "type": {
2117
+ "__schema": "TypeRefSchema",
2118
+ "location": {
2119
+ "filePath": "watcher.main.runtime.ts",
2120
+ "line": 20,
2121
+ "character": 24
2122
+ },
2123
+ "name": "Workspace",
2124
+ "componentId": {
2125
+ "scope": "teambit.workspace",
2126
+ "name": "workspace"
2127
+ }
2128
+ },
2129
+ "isOptional": false,
2130
+ "isSpread": false
2131
+ },
2132
+ {
2133
+ "__schema": "ParameterSchema",
2134
+ "location": {
2135
+ "filePath": "watcher.main.runtime.ts",
2136
+ "line": 21,
2137
+ "character": 5
2138
+ },
2139
+ "name": "scope",
2140
+ "type": {
2141
+ "__schema": "TypeRefSchema",
2142
+ "location": {
2143
+ "filePath": "watcher.main.runtime.ts",
2144
+ "line": 21,
2145
+ "character": 20
2146
+ },
2147
+ "name": "ScopeMain",
2148
+ "componentId": {
2149
+ "scope": "teambit.scope",
2150
+ "name": "scope"
2151
+ }
2152
+ },
2153
+ "isOptional": false,
2154
+ "isSpread": false
2155
+ },
2156
+ {
2157
+ "__schema": "ParameterSchema",
2158
+ "location": {
2159
+ "filePath": "watcher.main.runtime.ts",
2160
+ "line": 22,
2161
+ "character": 5
2162
+ },
2163
+ "name": "pubsub",
2164
+ "type": {
2165
+ "__schema": "TypeRefSchema",
2166
+ "location": {
2167
+ "filePath": "watcher.main.runtime.ts",
2168
+ "line": 22,
2169
+ "character": 21
2170
+ },
2171
+ "name": "PubsubMain",
2172
+ "componentId": {
2173
+ "scope": "teambit.harmony",
2174
+ "name": "pubsub"
2175
+ }
2176
+ },
2177
+ "isOptional": false,
2178
+ "isSpread": false
2179
+ },
2180
+ {
2181
+ "__schema": "ParameterSchema",
2182
+ "location": {
2183
+ "filePath": "watcher.main.runtime.ts",
2184
+ "line": 23,
2185
+ "character": 5
2186
+ },
2187
+ "name": "onPreWatchSlot",
2188
+ "type": {
2189
+ "__schema": "TypeRefSchema",
2190
+ "location": {
2191
+ "filePath": "watcher.main.runtime.ts",
2192
+ "line": 23,
2193
+ "character": 29
2194
+ },
2195
+ "name": "OnPreWatchSlot",
2196
+ "internalFilePath": "watcher.main.runtime.ts"
2197
+ },
2198
+ "isOptional": false,
2199
+ "isSpread": false
2200
+ },
2201
+ {
2202
+ "__schema": "ParameterSchema",
2203
+ "location": {
2204
+ "filePath": "watcher.main.runtime.ts",
2205
+ "line": 24,
2206
+ "character": 5
2207
+ },
2208
+ "name": "ipcEvents",
2209
+ "type": {
2210
+ "__schema": "TypeRefSchema",
2211
+ "location": {
2212
+ "filePath": "watcher.main.runtime.ts",
2213
+ "line": 24,
2214
+ "character": 25
2215
+ },
2216
+ "name": "IpcEventsMain",
2217
+ "componentId": {
2218
+ "scope": "teambit.harmony",
2219
+ "name": "ipc-events"
2220
+ }
2221
+ },
2222
+ "isOptional": false,
2223
+ "isSpread": false
2224
+ },
2225
+ {
2226
+ "__schema": "ParameterSchema",
2227
+ "location": {
2228
+ "filePath": "watcher.main.runtime.ts",
2229
+ "line": 25,
2230
+ "character": 5
2231
+ },
2232
+ "name": "logger",
2233
+ "type": {
2234
+ "__schema": "TypeRefSchema",
2235
+ "location": {
2236
+ "filePath": "watcher.main.runtime.ts",
2237
+ "line": 25,
2238
+ "character": 22
2239
+ },
2240
+ "name": "Logger",
2241
+ "componentId": {
2242
+ "scope": "teambit.harmony",
2243
+ "name": "logger"
2244
+ }
2245
+ },
2246
+ "isOptional": false,
2247
+ "isSpread": false
2248
+ },
2249
+ {
2250
+ "__schema": "ParameterSchema",
2251
+ "location": {
2252
+ "filePath": "watcher.main.runtime.ts",
2253
+ "line": 26,
2254
+ "character": 5
2255
+ },
2256
+ "name": "globalConfig",
2257
+ "type": {
2258
+ "__schema": "TypeRefSchema",
2259
+ "location": {
2260
+ "filePath": "watcher.main.runtime.ts",
2261
+ "line": 26,
2262
+ "character": 28
2263
+ },
2264
+ "name": "GlobalConfigMain",
2265
+ "componentId": {
2266
+ "scope": "teambit.harmony",
2267
+ "name": "global-config"
2268
+ }
2269
+ },
2270
+ "isOptional": false,
2271
+ "isSpread": false
2272
+ }
2273
+ ],
2274
+ "returnType": {
2275
+ "__schema": "ThisTypeSchema",
2276
+ "location": {
2277
+ "filePath": "watcher.main.runtime.ts",
2278
+ "line": 18,
2279
+ "character": 1
2280
+ },
2281
+ "name": "WatcherMain"
2282
+ },
2283
+ "modifiers": []
2284
+ },
2285
+ {
2286
+ "__schema": "FunctionLikeSchema",
2287
+ "location": {
2288
+ "filePath": "watcher.main.runtime.ts",
2289
+ "line": 29,
2290
+ "character": 3
2291
+ },
2292
+ "signature": "(method) WatcherMain.watch(opts: WatchOptions): Promise<void>",
2293
+ "name": "watch",
2294
+ "params": [
2295
+ {
2296
+ "__schema": "ParameterSchema",
2297
+ "location": {
2298
+ "filePath": "watcher.main.runtime.ts",
2299
+ "line": 29,
2300
+ "character": 15
2301
+ },
2302
+ "name": "opts",
2303
+ "type": {
2304
+ "__schema": "TypeRefSchema",
2305
+ "location": {
2306
+ "filePath": "watcher.main.runtime.ts",
2307
+ "line": 29,
2308
+ "character": 21
2309
+ },
2310
+ "name": "WatchOptions"
2311
+ },
2312
+ "isOptional": false,
2313
+ "isSpread": false
2314
+ }
2315
+ ],
2316
+ "returnType": {
2317
+ "__schema": "InferenceTypeSchema",
2318
+ "location": {
2319
+ "filePath": "watcher.main.runtime.ts",
2320
+ "line": 29,
2321
+ "character": 3
2322
+ },
2323
+ "type": "Promise<void>"
2324
+ },
2325
+ "modifiers": [
2326
+ "async"
2327
+ ]
2328
+ },
2329
+ {
2330
+ "__schema": "FunctionLikeSchema",
2331
+ "location": {
2332
+ "filePath": "watcher.main.runtime.ts",
2333
+ "line": 35,
2334
+ "character": 3
2335
+ },
2336
+ "signature": "(method) WatcherMain.watchScopeInternalFiles(): Promise<void>",
2337
+ "name": "watchScopeInternalFiles",
2338
+ "params": [],
2339
+ "returnType": {
2340
+ "__schema": "InferenceTypeSchema",
2341
+ "location": {
2342
+ "filePath": "watcher.main.runtime.ts",
2343
+ "line": 35,
2344
+ "character": 3
2345
+ },
2346
+ "type": "Promise<void>"
2347
+ },
2348
+ "modifiers": [
2349
+ "async"
2350
+ ]
2351
+ },
2352
+ {
2353
+ "__schema": "FunctionLikeSchema",
2354
+ "location": {
2355
+ "filePath": "watcher.main.runtime.ts",
2356
+ "line": 39,
2357
+ "character": 3
2358
+ },
2359
+ "signature": "(method) WatcherMain.triggerOnPreWatch(componentIds: ComponentID[], watchOpts: WatchOptions): Promise<void>",
2360
+ "name": "triggerOnPreWatch",
2361
+ "params": [
2362
+ {
2363
+ "__schema": "ParameterSchema",
2364
+ "location": {
2365
+ "filePath": "watcher.main.runtime.ts",
2366
+ "line": 39,
2367
+ "character": 27
2368
+ },
2369
+ "name": "componentIds",
2370
+ "type": {
2371
+ "__schema": "TypeArraySchema",
2372
+ "location": {
2373
+ "filePath": "watcher.main.runtime.ts",
2374
+ "line": 39,
2375
+ "character": 41
2376
+ },
2377
+ "type": {
2378
+ "__schema": "TypeRefSchema",
2379
+ "location": {
2380
+ "filePath": "watcher.main.runtime.ts",
2381
+ "line": 39,
2382
+ "character": 41
2383
+ },
2384
+ "name": "ComponentID",
2385
+ "componentId": {
2386
+ "scope": "teambit.component",
2387
+ "name": "component-id",
2388
+ "version": "1.2.2"
2389
+ }
2390
+ }
2391
+ },
2392
+ "isOptional": false,
2393
+ "isSpread": false
2394
+ },
2395
+ {
2396
+ "__schema": "ParameterSchema",
2397
+ "location": {
2398
+ "filePath": "watcher.main.runtime.ts",
2399
+ "line": 39,
2400
+ "character": 56
2401
+ },
2402
+ "name": "watchOpts",
2403
+ "type": {
2404
+ "__schema": "TypeRefSchema",
2405
+ "location": {
2406
+ "filePath": "watcher.main.runtime.ts",
2407
+ "line": 39,
2408
+ "character": 67
2409
+ },
2410
+ "name": "WatchOptions"
2411
+ },
2412
+ "isOptional": false,
2413
+ "isSpread": false
2414
+ }
2415
+ ],
2416
+ "returnType": {
2417
+ "__schema": "InferenceTypeSchema",
2418
+ "location": {
2419
+ "filePath": "watcher.main.runtime.ts",
2420
+ "line": 39,
2421
+ "character": 3
2422
+ },
2423
+ "type": "Promise<void>"
2424
+ },
2425
+ "modifiers": [
2426
+ "async"
2427
+ ]
2428
+ },
2429
+ {
2430
+ "__schema": "FunctionLikeSchema",
2431
+ "location": {
2432
+ "filePath": "watcher.main.runtime.ts",
2433
+ "line": 46,
2434
+ "character": 3
2435
+ },
2436
+ "signature": "(method) WatcherMain.registerOnPreWatch(onPreWatchFunc: OnPreWatch): this",
2437
+ "name": "registerOnPreWatch",
2438
+ "params": [
2439
+ {
2440
+ "__schema": "ParameterSchema",
2441
+ "location": {
2442
+ "filePath": "watcher.main.runtime.ts",
2443
+ "line": 46,
2444
+ "character": 22
2445
+ },
2446
+ "name": "onPreWatchFunc",
2447
+ "type": {
2448
+ "__schema": "TypeRefSchema",
2449
+ "location": {
2450
+ "filePath": "watcher.main.runtime.ts",
2451
+ "line": 46,
2452
+ "character": 38
2453
+ },
2454
+ "name": "OnPreWatch",
2455
+ "internalFilePath": "watcher.main.runtime.ts"
2456
+ },
2457
+ "isOptional": false,
2458
+ "isSpread": false
2459
+ }
2460
+ ],
2461
+ "returnType": {
2462
+ "__schema": "TypeRefSchema",
2463
+ "location": {
2464
+ "filePath": "watcher.main.runtime.ts",
2465
+ "line": 46,
2466
+ "character": 3
2467
+ },
2468
+ "name": "WatcherMain"
2469
+ },
2470
+ "modifiers": []
2471
+ },
2472
+ {
2473
+ "__schema": "VariableLikeSchema",
2474
+ "location": {
2475
+ "filePath": "watcher.main.runtime.ts",
2476
+ "line": 51,
2477
+ "character": 3
2478
+ },
2479
+ "signature": "(property) WatcherMain.slots: ((registerFn: () => string) => SlotRegistry<OnPreWatch>)[]",
2480
+ "name": "slots",
2481
+ "type": {
2482
+ "__schema": "InferenceTypeSchema",
2483
+ "location": {
2484
+ "filePath": "watcher.main.runtime.ts",
2485
+ "line": 51,
2486
+ "character": 3
2487
+ },
2488
+ "type": "((registerFn: () => string) => SlotRegistry<OnPreWatch>)[]"
2489
+ },
2490
+ "isOptional": true,
2491
+ "defaultValue": "[Slot.withType<OnPreWatch>()]"
2492
+ },
2493
+ {
2494
+ "__schema": "VariableLikeSchema",
2495
+ "location": {
2496
+ "filePath": "watcher.main.runtime.ts",
2497
+ "line": 52,
2498
+ "character": 3
2499
+ },
2500
+ "signature": "(property) WatcherMain.dependencies: Aspect[]",
2501
+ "name": "dependencies",
2502
+ "type": {
2503
+ "__schema": "InferenceTypeSchema",
2504
+ "location": {
2505
+ "filePath": "watcher.main.runtime.ts",
2506
+ "line": 52,
2507
+ "character": 3
2508
+ },
2509
+ "type": "Aspect[]"
2510
+ },
2511
+ "isOptional": true,
2512
+ "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n ScopeAspect,\n PubsubAspect,\n LoggerAspect,\n IpcEventsAspect,\n GlobalConfigAspect,\n ]"
2513
+ },
2514
+ {
2515
+ "__schema": "VariableLikeSchema",
2516
+ "location": {
2517
+ "filePath": "watcher.main.runtime.ts",
2518
+ "line": 61,
2519
+ "character": 3
2520
+ },
2521
+ "signature": "(property) WatcherMain.runtime: RuntimeDefinition",
2522
+ "name": "runtime",
2523
+ "type": {
2524
+ "__schema": "InferenceTypeSchema",
2525
+ "location": {
2526
+ "filePath": "watcher.main.runtime.ts",
2527
+ "line": 61,
2528
+ "character": 3
2529
+ },
2530
+ "type": "RuntimeDefinition"
2531
+ },
2532
+ "isOptional": true,
2533
+ "defaultValue": "MainRuntime"
2534
+ },
2535
+ {
2536
+ "__schema": "FunctionLikeSchema",
2537
+ "location": {
2538
+ "filePath": "watcher.main.runtime.ts",
2539
+ "line": 63,
2540
+ "character": 3
2541
+ },
2542
+ "signature": "(method) WatcherMain.provider([cli, workspace, scope, pubsub, loggerMain, ipcEvents, globalConfig]: [CLIMain, Workspace, ScopeMain, PubsubMain, LoggerMain, IpcEventsMain, GlobalConfigMain], _: any, [onPreWatchSlot]: [OnPreWatchSlot]): Promise<...>",
2543
+ "name": "provider",
2544
+ "params": [
2545
+ {
2546
+ "__schema": "ParameterSchema",
2547
+ "location": {
2548
+ "filePath": "watcher.main.runtime.ts",
2549
+ "line": 64,
2550
+ "character": 5
2551
+ },
2552
+ "name": "[ cli, workspace, scope, pubsub, loggerMain, ipcEvents, globalConfig ]",
2553
+ "type": {
2554
+ "__schema": "TupleTypeSchema",
2555
+ "location": {
2556
+ "filePath": "watcher.main.runtime.ts",
2557
+ "line": 64,
2558
+ "character": 75
2559
+ },
2560
+ "elements": [
2561
+ {
2562
+ "__schema": "TypeRefSchema",
2563
+ "location": {
2564
+ "filePath": "watcher.main.runtime.ts",
2565
+ "line": 65,
2566
+ "character": 7
2567
+ },
2568
+ "name": "CLIMain",
2569
+ "componentId": {
2570
+ "scope": "teambit.harmony",
2571
+ "name": "cli"
2572
+ }
2573
+ },
2574
+ {
2575
+ "__schema": "TypeRefSchema",
2576
+ "location": {
2577
+ "filePath": "watcher.main.runtime.ts",
2578
+ "line": 66,
2579
+ "character": 7
2580
+ },
2581
+ "name": "Workspace",
2582
+ "componentId": {
2583
+ "scope": "teambit.workspace",
2584
+ "name": "workspace"
2585
+ }
2586
+ },
2587
+ {
2588
+ "__schema": "TypeRefSchema",
2589
+ "location": {
2590
+ "filePath": "watcher.main.runtime.ts",
2591
+ "line": 67,
2592
+ "character": 7
2593
+ },
2594
+ "name": "ScopeMain",
2595
+ "componentId": {
2596
+ "scope": "teambit.scope",
2597
+ "name": "scope"
2598
+ }
2599
+ },
2600
+ {
2601
+ "__schema": "TypeRefSchema",
2602
+ "location": {
2603
+ "filePath": "watcher.main.runtime.ts",
2604
+ "line": 68,
2605
+ "character": 7
2606
+ },
2607
+ "name": "PubsubMain",
2608
+ "componentId": {
2609
+ "scope": "teambit.harmony",
2610
+ "name": "pubsub"
2611
+ }
2612
+ },
2613
+ {
2614
+ "__schema": "TypeRefSchema",
2615
+ "location": {
2616
+ "filePath": "watcher.main.runtime.ts",
2617
+ "line": 69,
2618
+ "character": 7
2619
+ },
2620
+ "name": "LoggerMain",
2621
+ "componentId": {
2622
+ "scope": "teambit.harmony",
2623
+ "name": "logger"
2624
+ }
2625
+ },
2626
+ {
2627
+ "__schema": "TypeRefSchema",
2628
+ "location": {
2629
+ "filePath": "watcher.main.runtime.ts",
2630
+ "line": 70,
2631
+ "character": 7
2632
+ },
2633
+ "name": "IpcEventsMain",
2634
+ "componentId": {
2635
+ "scope": "teambit.harmony",
2636
+ "name": "ipc-events"
2637
+ }
2638
+ },
2639
+ {
2640
+ "__schema": "TypeRefSchema",
2641
+ "location": {
2642
+ "filePath": "watcher.main.runtime.ts",
2643
+ "line": 71,
2644
+ "character": 7
2645
+ },
2646
+ "name": "GlobalConfigMain",
2647
+ "componentId": {
2648
+ "scope": "teambit.harmony",
2649
+ "name": "global-config"
2650
+ }
2651
+ }
2652
+ ]
2653
+ },
2654
+ "isOptional": false,
2655
+ "isSpread": false
2656
+ },
2657
+ {
2658
+ "__schema": "ParameterSchema",
2659
+ "location": {
2660
+ "filePath": "watcher.main.runtime.ts",
2661
+ "line": 73,
2662
+ "character": 5
2663
+ },
2664
+ "name": "_",
2665
+ "type": {
2666
+ "__schema": "InferenceTypeSchema",
2667
+ "location": {
2668
+ "filePath": "watcher.main.runtime.ts",
2669
+ "line": 73,
2670
+ "character": 5
2671
+ },
2672
+ "type": "any"
2673
+ },
2674
+ "isOptional": false,
2675
+ "isSpread": false
2676
+ },
2677
+ {
2678
+ "__schema": "ParameterSchema",
2679
+ "location": {
2680
+ "filePath": "watcher.main.runtime.ts",
2681
+ "line": 74,
2682
+ "character": 5
2683
+ },
2684
+ "name": "[ onPreWatchSlot ]",
2685
+ "type": {
2686
+ "__schema": "TupleTypeSchema",
2687
+ "location": {
2688
+ "filePath": "watcher.main.runtime.ts",
2689
+ "line": 74,
2690
+ "character": 23
2691
+ },
2692
+ "elements": [
2693
+ {
2694
+ "__schema": "TypeRefSchema",
2695
+ "location": {
2696
+ "filePath": "watcher.main.runtime.ts",
2697
+ "line": 74,
2698
+ "character": 24
2699
+ },
2700
+ "name": "OnPreWatchSlot",
2701
+ "internalFilePath": "watcher.main.runtime.ts"
2702
+ }
2703
+ ]
2704
+ },
2705
+ "isOptional": false,
2706
+ "isSpread": false
2707
+ }
2708
+ ],
2709
+ "returnType": {
2710
+ "__schema": "InferenceTypeSchema",
2711
+ "location": {
2712
+ "filePath": "watcher.main.runtime.ts",
2713
+ "line": 63,
2714
+ "character": 3
2715
+ },
2716
+ "type": "Promise<...>"
2717
+ },
2718
+ "modifiers": [
2719
+ "static",
2720
+ "async"
2721
+ ]
2722
+ }
2723
+ ],
2724
+ "extendsNodes": [],
2725
+ "implementNodes": []
2726
+ },
2727
+ {
2728
+ "__schema": "UnImplementedSchema",
2729
+ "location": {
2730
+ "filePath": "watcher.main.runtime.ts",
2731
+ "line": 86,
2732
+ "character": 16
2733
+ },
2734
+ "name": "WatcherMain",
2735
+ "type": "Identifier"
2736
+ }
2737
+ ],
2738
+ "internals": [
2739
+ {
2740
+ "__schema": "UnImplementedSchema",
2741
+ "location": {
2742
+ "filePath": "watcher.main.runtime.ts",
2743
+ "line": 84,
2744
+ "character": 1
2745
+ },
2746
+ "name": "WatcherAspect.addRuntime(WatcherMain);",
2747
+ "type": "ExpressionStatement"
2748
+ }
2749
+ ]
2750
+ },
2751
+ {
2752
+ "__schema": "ModuleSchema",
2753
+ "location": {
2754
+ "filePath": "watcher.aspect.ts",
2755
+ "line": 1,
2756
+ "character": 1
2757
+ },
2758
+ "exports": [
2759
+ {
2760
+ "__schema": "VariableLikeSchema",
2761
+ "location": {
2762
+ "filePath": "watcher.aspect.ts",
2763
+ "line": 3,
2764
+ "character": 14
2765
+ },
2766
+ "signature": "const WatcherAspect: Aspect",
2767
+ "name": "WatcherAspect",
2768
+ "type": {
2769
+ "__schema": "TypeRefSchema",
2770
+ "location": {
2771
+ "filePath": "watcher.aspect.ts",
2772
+ "line": 3,
2773
+ "character": 14
2774
+ },
2775
+ "name": "Aspect",
2776
+ "componentId": {
2777
+ "scope": "teambit.harmony",
2778
+ "name": "harmony",
2779
+ "version": "0.4.6"
2780
+ }
2781
+ },
2782
+ "isOptional": false,
2783
+ "defaultValue": "Aspect.create({\n id: 'teambit.workspace/watcher',\n})"
2784
+ }
2785
+ ],
2786
+ "internals": []
2787
+ }
2788
+ ],
2789
+ "componentId": {
2790
+ "scope": "teambit.workspace",
2791
+ "name": "watcher",
2792
+ "version": "1.0.514"
2793
+ },
2794
+ "taggedModuleExports": []
2795
+ }