@teambit/watcher 1.0.258 → 1.0.259

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