@teambit/watcher 1.0.512 → 1.0.513

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