@teambit/watcher 1.0.256 → 1.0.258

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