@teambit/watcher 1.0.187 → 1.0.188

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