@teambit/dev-files 1.0.158 → 1.0.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2019 @@
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": "VariableLikeSchema",
18
+ "location": {
19
+ "filePath": "dev-files.aspect.ts",
20
+ "line": 3,
21
+ "character": 14
22
+ },
23
+ "signature": "const DevFilesAspect: Aspect",
24
+ "name": "DevFilesAspect",
25
+ "type": {
26
+ "__schema": "TypeRefSchema",
27
+ "location": {
28
+ "filePath": "dev-files.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
32
+ "name": "Aspect",
33
+ "componentId": {
34
+ "scope": "teambit.harmony",
35
+ "name": "harmony",
36
+ "version": "0.4.6"
37
+ }
38
+ },
39
+ "isOptional": false,
40
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/dev-files',\n})"
41
+ },
42
+ {
43
+ "__schema": "ClassSchema",
44
+ "location": {
45
+ "filePath": "dev-files.main.runtime.ts",
46
+ "line": 45,
47
+ "character": 1
48
+ },
49
+ "signature": "class DevFilesMain",
50
+ "name": "DevFilesMain",
51
+ "members": [
52
+ {
53
+ "__schema": "ConstructorSchema",
54
+ "location": {
55
+ "filePath": "dev-files.main.runtime.ts",
56
+ "line": 46,
57
+ "character": 3
58
+ },
59
+ "signature": "constructor DevFilesMain(envs: EnvsMain, workspace: Workspace, devPatternSlot: DevPatternSlot, config: DevFilesConfig): DevFilesMain",
60
+ "name": "constructor",
61
+ "params": [
62
+ {
63
+ "__schema": "ParameterSchema",
64
+ "location": {
65
+ "filePath": "dev-files.main.runtime.ts",
66
+ "line": 47,
67
+ "character": 5
68
+ },
69
+ "name": "envs",
70
+ "type": {
71
+ "__schema": "TypeRefSchema",
72
+ "location": {
73
+ "filePath": "dev-files.main.runtime.ts",
74
+ "line": 47,
75
+ "character": 19
76
+ },
77
+ "name": "EnvsMain"
78
+ },
79
+ "isOptional": false,
80
+ "isSpread": false
81
+ },
82
+ {
83
+ "__schema": "ParameterSchema",
84
+ "location": {
85
+ "filePath": "dev-files.main.runtime.ts",
86
+ "line": 49,
87
+ "character": 5
88
+ },
89
+ "name": "workspace",
90
+ "type": {
91
+ "__schema": "TypeRefSchema",
92
+ "location": {
93
+ "filePath": "dev-files.main.runtime.ts",
94
+ "line": 49,
95
+ "character": 24
96
+ },
97
+ "name": "Workspace"
98
+ },
99
+ "isOptional": false,
100
+ "isSpread": false
101
+ },
102
+ {
103
+ "__schema": "ParameterSchema",
104
+ "location": {
105
+ "filePath": "dev-files.main.runtime.ts",
106
+ "line": 51,
107
+ "character": 5
108
+ },
109
+ "name": "devPatternSlot",
110
+ "type": {
111
+ "__schema": "TypeRefSchema",
112
+ "location": {
113
+ "filePath": "dev-files.main.runtime.ts",
114
+ "line": 51,
115
+ "character": 29
116
+ },
117
+ "name": "DevPatternSlot"
118
+ },
119
+ "isOptional": false,
120
+ "isSpread": false
121
+ },
122
+ {
123
+ "__schema": "ParameterSchema",
124
+ "location": {
125
+ "filePath": "dev-files.main.runtime.ts",
126
+ "line": 56,
127
+ "character": 5
128
+ },
129
+ "name": "config",
130
+ "type": {
131
+ "__schema": "TypeRefSchema",
132
+ "location": {
133
+ "filePath": "dev-files.main.runtime.ts",
134
+ "line": 56,
135
+ "character": 22
136
+ },
137
+ "name": "DevFilesConfig"
138
+ },
139
+ "isOptional": false,
140
+ "isSpread": false
141
+ }
142
+ ],
143
+ "returnType": {
144
+ "__schema": "ThisTypeSchema",
145
+ "location": {
146
+ "filePath": "dev-files.main.runtime.ts",
147
+ "line": 45,
148
+ "character": 1
149
+ },
150
+ "name": "DevFilesMain"
151
+ },
152
+ "modifiers": []
153
+ },
154
+ {
155
+ "__schema": "FunctionLikeSchema",
156
+ "location": {
157
+ "filePath": "dev-files.main.runtime.ts",
158
+ "line": 64,
159
+ "character": 3
160
+ },
161
+ "doc": {
162
+ "__schema": "DocSchema",
163
+ "location": {
164
+ "filePath": "dev-files.main.runtime.ts",
165
+ "line": 59,
166
+ "character": 3
167
+ },
168
+ "raw": "/**\n * compute all dev patterns on a component.\n * computing of dev patterns is a merge of the configuration, the env (env.getDevPatterns(component)) and\n * the registering aspects (through registerDevPattern()).\n */",
169
+ "comment": "compute all dev patterns on a component.\ncomputing of dev patterns is a merge of the configuration, the env (env.getDevPatterns(component)) and\nthe registering aspects (through registerDevPattern())."
170
+ },
171
+ "signature": "(method) DevFilesMain.computeDevPatterns(component: Component): Promise<{\n config: any;\n} & {\n [id: string]: string[];\n} & {\n [id: string]: string[];\n}>",
172
+ "name": "computeDevPatterns",
173
+ "params": [
174
+ {
175
+ "__schema": "ParameterSchema",
176
+ "location": {
177
+ "filePath": "dev-files.main.runtime.ts",
178
+ "line": 64,
179
+ "character": 28
180
+ },
181
+ "name": "component",
182
+ "type": {
183
+ "__schema": "TypeRefSchema",
184
+ "location": {
185
+ "filePath": "dev-files.main.runtime.ts",
186
+ "line": 64,
187
+ "character": 39
188
+ },
189
+ "name": "Component"
190
+ },
191
+ "isOptional": false,
192
+ "isSpread": false
193
+ }
194
+ ],
195
+ "returnType": {
196
+ "__schema": "InferenceTypeSchema",
197
+ "location": {
198
+ "filePath": "dev-files.main.runtime.ts",
199
+ "line": 64,
200
+ "character": 3
201
+ },
202
+ "type": "Promise<{\n config: any;\n} & {\n [id: string]: string[];\n} & {\n [id: string]: string[];\n}>"
203
+ },
204
+ "modifiers": [
205
+ "async"
206
+ ]
207
+ },
208
+ {
209
+ "__schema": "FunctionLikeSchema",
210
+ "location": {
211
+ "filePath": "dev-files.main.runtime.ts",
212
+ "line": 161,
213
+ "character": 3
214
+ },
215
+ "doc": {
216
+ "__schema": "DocSchema",
217
+ "location": {
218
+ "filePath": "dev-files.main.runtime.ts",
219
+ "line": 158,
220
+ "character": 3
221
+ },
222
+ "raw": "/**\n * get all dev files configured on a component.\n */",
223
+ "comment": "get all dev files configured on a component."
224
+ },
225
+ "signature": "(method) DevFilesMain.getDevPatterns(component: Component, aspectId?: string): string[]",
226
+ "name": "getDevPatterns",
227
+ "params": [
228
+ {
229
+ "__schema": "ParameterSchema",
230
+ "location": {
231
+ "filePath": "dev-files.main.runtime.ts",
232
+ "line": 161,
233
+ "character": 18
234
+ },
235
+ "name": "component",
236
+ "type": {
237
+ "__schema": "TypeRefSchema",
238
+ "location": {
239
+ "filePath": "dev-files.main.runtime.ts",
240
+ "line": 161,
241
+ "character": 29
242
+ },
243
+ "name": "Component"
244
+ },
245
+ "isOptional": false,
246
+ "isSpread": false
247
+ },
248
+ {
249
+ "__schema": "ParameterSchema",
250
+ "location": {
251
+ "filePath": "dev-files.main.runtime.ts",
252
+ "line": 161,
253
+ "character": 40
254
+ },
255
+ "name": "aspectId",
256
+ "type": {
257
+ "__schema": "KeywordTypeSchema",
258
+ "location": {
259
+ "filePath": "dev-files.main.runtime.ts",
260
+ "line": 161,
261
+ "character": 51
262
+ },
263
+ "name": "string"
264
+ },
265
+ "isOptional": true,
266
+ "isSpread": false
267
+ }
268
+ ],
269
+ "returnType": {
270
+ "__schema": "TypeArraySchema",
271
+ "location": {
272
+ "filePath": "dev-files.main.runtime.ts",
273
+ "line": 161,
274
+ "character": 60
275
+ },
276
+ "type": {
277
+ "__schema": "KeywordTypeSchema",
278
+ "location": {
279
+ "filePath": "dev-files.main.runtime.ts",
280
+ "line": 161,
281
+ "character": 60
282
+ },
283
+ "name": "string"
284
+ }
285
+ },
286
+ "modifiers": []
287
+ },
288
+ {
289
+ "__schema": "FunctionLikeSchema",
290
+ "location": {
291
+ "filePath": "dev-files.main.runtime.ts",
292
+ "line": 170,
293
+ "character": 3
294
+ },
295
+ "doc": {
296
+ "__schema": "DocSchema",
297
+ "location": {
298
+ "filePath": "dev-files.main.runtime.ts",
299
+ "line": 167,
300
+ "character": 3
301
+ },
302
+ "raw": "/**\n * determine whether a file of a component is a dev file.\n */",
303
+ "comment": "determine whether a file of a component is a dev file."
304
+ },
305
+ "signature": "(method) DevFilesMain.isDevFile(component: Component, filePath: string): boolean",
306
+ "name": "isDevFile",
307
+ "params": [
308
+ {
309
+ "__schema": "ParameterSchema",
310
+ "location": {
311
+ "filePath": "dev-files.main.runtime.ts",
312
+ "line": 170,
313
+ "character": 13
314
+ },
315
+ "name": "component",
316
+ "type": {
317
+ "__schema": "TypeRefSchema",
318
+ "location": {
319
+ "filePath": "dev-files.main.runtime.ts",
320
+ "line": 170,
321
+ "character": 24
322
+ },
323
+ "name": "Component"
324
+ },
325
+ "isOptional": false,
326
+ "isSpread": false
327
+ },
328
+ {
329
+ "__schema": "ParameterSchema",
330
+ "location": {
331
+ "filePath": "dev-files.main.runtime.ts",
332
+ "line": 170,
333
+ "character": 35
334
+ },
335
+ "name": "filePath",
336
+ "type": {
337
+ "__schema": "KeywordTypeSchema",
338
+ "location": {
339
+ "filePath": "dev-files.main.runtime.ts",
340
+ "line": 170,
341
+ "character": 45
342
+ },
343
+ "name": "string"
344
+ },
345
+ "isOptional": false,
346
+ "isSpread": false
347
+ }
348
+ ],
349
+ "returnType": {
350
+ "__schema": "KeywordTypeSchema",
351
+ "location": {
352
+ "filePath": "dev-files.main.runtime.ts",
353
+ "line": 170,
354
+ "character": 54
355
+ },
356
+ "name": "boolean"
357
+ },
358
+ "modifiers": []
359
+ },
360
+ {
361
+ "__schema": "FunctionLikeSchema",
362
+ "location": {
363
+ "filePath": "dev-files.main.runtime.ts",
364
+ "line": 179,
365
+ "character": 3
366
+ },
367
+ "doc": {
368
+ "__schema": "DocSchema",
369
+ "location": {
370
+ "filePath": "dev-files.main.runtime.ts",
371
+ "line": 175,
372
+ "character": 3
373
+ },
374
+ "raw": "/**\n * register a new dev pattern.\n * @param regex dev pattern\n */",
375
+ "comment": "register a new dev pattern.",
376
+ "tags": [
377
+ {
378
+ "__schema": "PropertyLikeTagSchema",
379
+ "location": {
380
+ "filePath": "dev-files.main.runtime.ts",
381
+ "line": 177,
382
+ "character": 6
383
+ },
384
+ "name": "regex",
385
+ "tagName": "parameter",
386
+ "comment": "dev pattern"
387
+ }
388
+ ]
389
+ },
390
+ "signature": "(method) DevFilesMain.registerDevPattern(pattern: DevPatterns): void",
391
+ "name": "registerDevPattern",
392
+ "params": [
393
+ {
394
+ "__schema": "ParameterSchema",
395
+ "location": {
396
+ "filePath": "dev-files.main.runtime.ts",
397
+ "line": 179,
398
+ "character": 22
399
+ },
400
+ "name": "pattern",
401
+ "type": {
402
+ "__schema": "TypeRefSchema",
403
+ "location": {
404
+ "filePath": "dev-files.main.runtime.ts",
405
+ "line": 179,
406
+ "character": 31
407
+ },
408
+ "name": "DevPatterns"
409
+ },
410
+ "isOptional": false,
411
+ "isSpread": false
412
+ }
413
+ ],
414
+ "returnType": {
415
+ "__schema": "InferenceTypeSchema",
416
+ "location": {
417
+ "filePath": "dev-files.main.runtime.ts",
418
+ "line": 179,
419
+ "character": 3
420
+ },
421
+ "type": "void"
422
+ },
423
+ "modifiers": []
424
+ },
425
+ {
426
+ "__schema": "FunctionLikeSchema",
427
+ "location": {
428
+ "filePath": "dev-files.main.runtime.ts",
429
+ "line": 187,
430
+ "character": 3
431
+ },
432
+ "doc": {
433
+ "__schema": "DocSchema",
434
+ "location": {
435
+ "filePath": "dev-files.main.runtime.ts",
436
+ "line": 183,
437
+ "character": 3
438
+ },
439
+ "raw": "/**\n * get all dev patterns registered.\n * If you want to use this during onLoad event you might need to use computeDevFiles instead, since the component might not include this data yet\n */",
440
+ "comment": "get all dev patterns registered.\nIf you want to use this during onLoad event you might need to use computeDevFiles instead, since the component might not include this data yet"
441
+ },
442
+ "signature": "(method) DevFilesMain.getDevFiles(component: Component): DevFiles",
443
+ "name": "getDevFiles",
444
+ "params": [
445
+ {
446
+ "__schema": "ParameterSchema",
447
+ "location": {
448
+ "filePath": "dev-files.main.runtime.ts",
449
+ "line": 187,
450
+ "character": 15
451
+ },
452
+ "name": "component",
453
+ "type": {
454
+ "__schema": "TypeRefSchema",
455
+ "location": {
456
+ "filePath": "dev-files.main.runtime.ts",
457
+ "line": 187,
458
+ "character": 26
459
+ },
460
+ "name": "Component"
461
+ },
462
+ "isOptional": false,
463
+ "isSpread": false
464
+ }
465
+ ],
466
+ "returnType": {
467
+ "__schema": "TypeRefSchema",
468
+ "location": {
469
+ "filePath": "dev-files.main.runtime.ts",
470
+ "line": 187,
471
+ "character": 3
472
+ },
473
+ "name": "DevFiles",
474
+ "internalFilePath": "dev-files.ts"
475
+ },
476
+ "modifiers": []
477
+ },
478
+ {
479
+ "__schema": "FunctionLikeSchema",
480
+ "location": {
481
+ "filePath": "dev-files.main.runtime.ts",
482
+ "line": 193,
483
+ "character": 3
484
+ },
485
+ "signature": "(method) DevFilesMain.getDevFilesForConsumerComp(consumerComponent: LegacyComponent): Promise<string[]>",
486
+ "name": "getDevFilesForConsumerComp",
487
+ "params": [
488
+ {
489
+ "__schema": "ParameterSchema",
490
+ "location": {
491
+ "filePath": "dev-files.main.runtime.ts",
492
+ "line": 193,
493
+ "character": 36
494
+ },
495
+ "name": "consumerComponent",
496
+ "type": {
497
+ "__schema": "TypeRefSchema",
498
+ "location": {
499
+ "filePath": "dev-files.main.runtime.ts",
500
+ "line": 193,
501
+ "character": 55
502
+ },
503
+ "name": "LegacyComponent"
504
+ },
505
+ "isOptional": false,
506
+ "isSpread": false
507
+ }
508
+ ],
509
+ "returnType": {
510
+ "__schema": "TypeRefSchema",
511
+ "location": {
512
+ "filePath": "dev-files.main.runtime.ts",
513
+ "line": 193,
514
+ "character": 73
515
+ },
516
+ "name": "Promise",
517
+ "typeArgs": [
518
+ {
519
+ "__schema": "TypeArraySchema",
520
+ "location": {
521
+ "filePath": "dev-files.main.runtime.ts",
522
+ "line": 193,
523
+ "character": 81
524
+ },
525
+ "type": {
526
+ "__schema": "KeywordTypeSchema",
527
+ "location": {
528
+ "filePath": "dev-files.main.runtime.ts",
529
+ "line": 193,
530
+ "character": 81
531
+ },
532
+ "name": "string"
533
+ }
534
+ }
535
+ ]
536
+ },
537
+ "modifiers": [
538
+ "async"
539
+ ]
540
+ },
541
+ {
542
+ "__schema": "FunctionLikeSchema",
543
+ "location": {
544
+ "filePath": "dev-files.main.runtime.ts",
545
+ "line": 205,
546
+ "character": 3
547
+ },
548
+ "doc": {
549
+ "__schema": "DocSchema",
550
+ "location": {
551
+ "filePath": "dev-files.main.runtime.ts",
552
+ "line": 202,
553
+ "character": 3
554
+ },
555
+ "raw": "/**\n * compute all dev files of a component.\n */",
556
+ "comment": "compute all dev files of a component."
557
+ },
558
+ "signature": "(method) DevFilesMain.computeDevFiles(component: Component): Promise<DevFiles>",
559
+ "name": "computeDevFiles",
560
+ "params": [
561
+ {
562
+ "__schema": "ParameterSchema",
563
+ "location": {
564
+ "filePath": "dev-files.main.runtime.ts",
565
+ "line": 205,
566
+ "character": 25
567
+ },
568
+ "name": "component",
569
+ "type": {
570
+ "__schema": "TypeRefSchema",
571
+ "location": {
572
+ "filePath": "dev-files.main.runtime.ts",
573
+ "line": 205,
574
+ "character": 36
575
+ },
576
+ "name": "Component"
577
+ },
578
+ "isOptional": false,
579
+ "isSpread": false
580
+ }
581
+ ],
582
+ "returnType": {
583
+ "__schema": "TypeRefSchema",
584
+ "location": {
585
+ "filePath": "dev-files.main.runtime.ts",
586
+ "line": 205,
587
+ "character": 48
588
+ },
589
+ "name": "Promise",
590
+ "typeArgs": [
591
+ {
592
+ "__schema": "TypeRefSchema",
593
+ "location": {
594
+ "filePath": "dev-files.main.runtime.ts",
595
+ "line": 205,
596
+ "character": 56
597
+ },
598
+ "name": "DevFiles"
599
+ }
600
+ ]
601
+ },
602
+ "modifiers": [
603
+ "async"
604
+ ]
605
+ },
606
+ {
607
+ "__schema": "VariableLikeSchema",
608
+ "location": {
609
+ "filePath": "dev-files.main.runtime.ts",
610
+ "line": 217,
611
+ "character": 3
612
+ },
613
+ "signature": "(property) DevFilesMain.slots: ((registerFn: () => string) => SlotRegistry<DevPatterns>)[]",
614
+ "name": "slots",
615
+ "type": {
616
+ "__schema": "InferenceTypeSchema",
617
+ "location": {
618
+ "filePath": "dev-files.main.runtime.ts",
619
+ "line": 217,
620
+ "character": 3
621
+ },
622
+ "type": "((registerFn: () => string) => SlotRegistry<DevPatterns>)[]"
623
+ },
624
+ "isOptional": true,
625
+ "defaultValue": "[Slot.withType<DevPatterns>()]"
626
+ },
627
+ {
628
+ "__schema": "VariableLikeSchema",
629
+ "location": {
630
+ "filePath": "dev-files.main.runtime.ts",
631
+ "line": 219,
632
+ "character": 3
633
+ },
634
+ "signature": "(property) DevFilesMain.defaultConfig: {\n patterns: never[];\n}",
635
+ "name": "defaultConfig",
636
+ "type": {
637
+ "__schema": "InferenceTypeSchema",
638
+ "location": {
639
+ "filePath": "dev-files.main.runtime.ts",
640
+ "line": 219,
641
+ "character": 3
642
+ },
643
+ "type": "{\n patterns: never[];\n}"
644
+ },
645
+ "isOptional": true,
646
+ "defaultValue": "{\n patterns: [],\n }"
647
+ },
648
+ {
649
+ "__schema": "VariableLikeSchema",
650
+ "location": {
651
+ "filePath": "dev-files.main.runtime.ts",
652
+ "line": 223,
653
+ "character": 3
654
+ },
655
+ "signature": "(property) DevFilesMain.runtime: RuntimeDefinition",
656
+ "name": "runtime",
657
+ "type": {
658
+ "__schema": "InferenceTypeSchema",
659
+ "location": {
660
+ "filePath": "dev-files.main.runtime.ts",
661
+ "line": 223,
662
+ "character": 3
663
+ },
664
+ "type": "RuntimeDefinition"
665
+ },
666
+ "isOptional": true,
667
+ "defaultValue": "MainRuntime"
668
+ },
669
+ {
670
+ "__schema": "VariableLikeSchema",
671
+ "location": {
672
+ "filePath": "dev-files.main.runtime.ts",
673
+ "line": 225,
674
+ "character": 3
675
+ },
676
+ "signature": "(property) DevFilesMain.dependencies: Aspect[]",
677
+ "name": "dependencies",
678
+ "type": {
679
+ "__schema": "InferenceTypeSchema",
680
+ "location": {
681
+ "filePath": "dev-files.main.runtime.ts",
682
+ "line": 225,
683
+ "character": 3
684
+ },
685
+ "type": "Aspect[]"
686
+ },
687
+ "isOptional": true,
688
+ "defaultValue": "[EnvsAspect, WorkspaceAspect, ComponentAspect, GraphqlAspect, ScopeAspect]"
689
+ },
690
+ {
691
+ "__schema": "FunctionLikeSchema",
692
+ "location": {
693
+ "filePath": "dev-files.main.runtime.ts",
694
+ "line": 227,
695
+ "character": 3
696
+ },
697
+ "signature": "(method) DevFilesMain.provider([envs, workspace, componentAspect, graphql, scope]: [EnvsMain, Workspace, ComponentMain, GraphqlMain, ScopeMain], config: DevFilesConfig, [devPatternSlot]: [DevPatternSlot]): Promise<DevFilesMain>",
698
+ "name": "provider",
699
+ "params": [
700
+ {
701
+ "__schema": "ParameterSchema",
702
+ "location": {
703
+ "filePath": "dev-files.main.runtime.ts",
704
+ "line": 228,
705
+ "character": 5
706
+ },
707
+ "name": "[ envs, workspace, componentAspect, graphql, scope ]",
708
+ "type": {
709
+ "__schema": "TupleTypeSchema",
710
+ "location": {
711
+ "filePath": "dev-files.main.runtime.ts",
712
+ "line": 228,
713
+ "character": 57
714
+ },
715
+ "elements": [
716
+ {
717
+ "__schema": "TypeRefSchema",
718
+ "location": {
719
+ "filePath": "dev-files.main.runtime.ts",
720
+ "line": 228,
721
+ "character": 58
722
+ },
723
+ "name": "EnvsMain"
724
+ },
725
+ {
726
+ "__schema": "TypeRefSchema",
727
+ "location": {
728
+ "filePath": "dev-files.main.runtime.ts",
729
+ "line": 228,
730
+ "character": 68
731
+ },
732
+ "name": "Workspace"
733
+ },
734
+ {
735
+ "__schema": "TypeRefSchema",
736
+ "location": {
737
+ "filePath": "dev-files.main.runtime.ts",
738
+ "line": 228,
739
+ "character": 79
740
+ },
741
+ "name": "ComponentMain"
742
+ },
743
+ {
744
+ "__schema": "TypeRefSchema",
745
+ "location": {
746
+ "filePath": "dev-files.main.runtime.ts",
747
+ "line": 228,
748
+ "character": 94
749
+ },
750
+ "name": "GraphqlMain"
751
+ },
752
+ {
753
+ "__schema": "TypeRefSchema",
754
+ "location": {
755
+ "filePath": "dev-files.main.runtime.ts",
756
+ "line": 228,
757
+ "character": 107
758
+ },
759
+ "name": "ScopeMain"
760
+ }
761
+ ]
762
+ },
763
+ "isOptional": false,
764
+ "isSpread": false
765
+ },
766
+ {
767
+ "__schema": "ParameterSchema",
768
+ "location": {
769
+ "filePath": "dev-files.main.runtime.ts",
770
+ "line": 229,
771
+ "character": 5
772
+ },
773
+ "name": "config",
774
+ "type": {
775
+ "__schema": "TypeRefSchema",
776
+ "location": {
777
+ "filePath": "dev-files.main.runtime.ts",
778
+ "line": 229,
779
+ "character": 13
780
+ },
781
+ "name": "DevFilesConfig"
782
+ },
783
+ "isOptional": false,
784
+ "isSpread": false
785
+ },
786
+ {
787
+ "__schema": "ParameterSchema",
788
+ "location": {
789
+ "filePath": "dev-files.main.runtime.ts",
790
+ "line": 230,
791
+ "character": 5
792
+ },
793
+ "name": "[ devPatternSlot ]",
794
+ "type": {
795
+ "__schema": "TupleTypeSchema",
796
+ "location": {
797
+ "filePath": "dev-files.main.runtime.ts",
798
+ "line": 230,
799
+ "character": 23
800
+ },
801
+ "elements": [
802
+ {
803
+ "__schema": "TypeRefSchema",
804
+ "location": {
805
+ "filePath": "dev-files.main.runtime.ts",
806
+ "line": 230,
807
+ "character": 24
808
+ },
809
+ "name": "DevPatternSlot"
810
+ }
811
+ ]
812
+ },
813
+ "isOptional": false,
814
+ "isSpread": false
815
+ }
816
+ ],
817
+ "returnType": {
818
+ "__schema": "InferenceTypeSchema",
819
+ "location": {
820
+ "filePath": "dev-files.main.runtime.ts",
821
+ "line": 227,
822
+ "character": 3
823
+ },
824
+ "type": "Promise<DevFilesMain>"
825
+ },
826
+ "modifiers": [
827
+ "static",
828
+ "async"
829
+ ]
830
+ }
831
+ ],
832
+ "extendsNodes": [],
833
+ "implementNodes": []
834
+ },
835
+ {
836
+ "__schema": "UnImplementedSchema",
837
+ "location": {
838
+ "filePath": "index.ts",
839
+ "line": 5,
840
+ "character": 16
841
+ },
842
+ "name": "DevFilesAspect",
843
+ "type": "Identifier"
844
+ }
845
+ ],
846
+ "internals": []
847
+ },
848
+ "internals": [
849
+ {
850
+ "__schema": "ModuleSchema",
851
+ "location": {
852
+ "filePath": "dev-files.aspect.ts",
853
+ "line": 1,
854
+ "character": 1
855
+ },
856
+ "exports": [
857
+ {
858
+ "__schema": "VariableLikeSchema",
859
+ "location": {
860
+ "filePath": "dev-files.aspect.ts",
861
+ "line": 3,
862
+ "character": 14
863
+ },
864
+ "signature": "const DevFilesAspect: Aspect",
865
+ "name": "DevFilesAspect",
866
+ "type": {
867
+ "__schema": "TypeRefSchema",
868
+ "location": {
869
+ "filePath": "dev-files.aspect.ts",
870
+ "line": 3,
871
+ "character": 14
872
+ },
873
+ "name": "Aspect",
874
+ "componentId": {
875
+ "scope": "teambit.harmony",
876
+ "name": "harmony",
877
+ "version": "0.4.6"
878
+ }
879
+ },
880
+ "isOptional": false,
881
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/dev-files',\n})"
882
+ }
883
+ ],
884
+ "internals": []
885
+ },
886
+ {
887
+ "__schema": "ModuleSchema",
888
+ "location": {
889
+ "filePath": "dev-files.main.runtime.ts",
890
+ "line": 1,
891
+ "character": 1
892
+ },
893
+ "exports": [
894
+ {
895
+ "__schema": "TypeSchema",
896
+ "location": {
897
+ "filePath": "dev-files.main.runtime.ts",
898
+ "line": 34,
899
+ "character": 1
900
+ },
901
+ "doc": {
902
+ "__schema": "DocSchema",
903
+ "location": {
904
+ "filePath": "dev-files.main.runtime.ts",
905
+ "line": 31,
906
+ "character": 1
907
+ },
908
+ "raw": "/**\n * dev pattern is a list of strings or a function that returns a list of strings. an example to a pattern can be \"[*.spec.ts]\"\n */",
909
+ "comment": "dev pattern is a list of strings or a function that returns a list of strings. an example to a pattern can be \"[*.spec.ts]\""
910
+ },
911
+ "signature": "type DevPatterns = ((component: Component) => DevPattern) | DevPattern",
912
+ "name": "DevPatterns",
913
+ "type": {
914
+ "__schema": "TypeUnionSchema",
915
+ "location": {
916
+ "filePath": "dev-files.main.runtime.ts",
917
+ "line": 34,
918
+ "character": 27
919
+ },
920
+ "types": [
921
+ {
922
+ "__schema": "ParenthesizedTypeSchema",
923
+ "location": {
924
+ "filePath": "dev-files.main.runtime.ts",
925
+ "line": 34,
926
+ "character": 27
927
+ },
928
+ "type": {
929
+ "__schema": "FunctionLikeSchema",
930
+ "location": {
931
+ "filePath": "dev-files.main.runtime.ts",
932
+ "line": 34,
933
+ "character": 28
934
+ },
935
+ "signature": "(component: Component): DevPattern",
936
+ "name": "",
937
+ "params": [
938
+ {
939
+ "__schema": "ParameterSchema",
940
+ "location": {
941
+ "filePath": "dev-files.main.runtime.ts",
942
+ "line": 34,
943
+ "character": 29
944
+ },
945
+ "name": "component",
946
+ "type": {
947
+ "__schema": "TypeRefSchema",
948
+ "location": {
949
+ "filePath": "dev-files.main.runtime.ts",
950
+ "line": 34,
951
+ "character": 40
952
+ },
953
+ "name": "Component"
954
+ },
955
+ "isOptional": false,
956
+ "isSpread": false
957
+ }
958
+ ],
959
+ "returnType": {
960
+ "__schema": "TypeRefSchema",
961
+ "location": {
962
+ "filePath": "dev-files.main.runtime.ts",
963
+ "line": 34,
964
+ "character": 54
965
+ },
966
+ "name": "DevPattern"
967
+ },
968
+ "modifiers": []
969
+ }
970
+ },
971
+ {
972
+ "__schema": "TypeRefSchema",
973
+ "location": {
974
+ "filePath": "dev-files.main.runtime.ts",
975
+ "line": 34,
976
+ "character": 68
977
+ },
978
+ "name": "DevPattern"
979
+ }
980
+ ]
981
+ }
982
+ },
983
+ {
984
+ "__schema": "TypeSchema",
985
+ "location": {
986
+ "filePath": "dev-files.main.runtime.ts",
987
+ "line": 39,
988
+ "character": 1
989
+ },
990
+ "doc": {
991
+ "__schema": "DocSchema",
992
+ "location": {
993
+ "filePath": "dev-files.main.runtime.ts",
994
+ "line": 36,
995
+ "character": 1
996
+ },
997
+ "raw": "/**\n * slot for dev file patterns.\n */",
998
+ "comment": "slot for dev file patterns."
999
+ },
1000
+ "signature": "type DevPatternSlot = SlotRegistry<DevPatterns>",
1001
+ "name": "DevPatternSlot",
1002
+ "type": {
1003
+ "__schema": "TypeRefSchema",
1004
+ "location": {
1005
+ "filePath": "dev-files.main.runtime.ts",
1006
+ "line": 39,
1007
+ "character": 30
1008
+ },
1009
+ "name": "SlotRegistry",
1010
+ "typeArgs": [
1011
+ {
1012
+ "__schema": "TypeRefSchema",
1013
+ "location": {
1014
+ "filePath": "dev-files.main.runtime.ts",
1015
+ "line": 39,
1016
+ "character": 43
1017
+ },
1018
+ "name": "DevPatterns"
1019
+ }
1020
+ ]
1021
+ }
1022
+ },
1023
+ {
1024
+ "__schema": "TypeSchema",
1025
+ "location": {
1026
+ "filePath": "dev-files.main.runtime.ts",
1027
+ "line": 41,
1028
+ "character": 1
1029
+ },
1030
+ "signature": "type DevFilesConfig = {\n patterns: string[];\n}",
1031
+ "name": "DevFilesConfig",
1032
+ "type": {
1033
+ "__schema": "TypeLiteralSchema",
1034
+ "location": {
1035
+ "filePath": "dev-files.main.runtime.ts",
1036
+ "line": 41,
1037
+ "character": 30
1038
+ },
1039
+ "members": [
1040
+ {
1041
+ "__schema": "VariableLikeSchema",
1042
+ "location": {
1043
+ "filePath": "dev-files.main.runtime.ts",
1044
+ "line": 42,
1045
+ "character": 3
1046
+ },
1047
+ "signature": "(property) patterns: string[]",
1048
+ "name": "patterns",
1049
+ "type": {
1050
+ "__schema": "TypeArraySchema",
1051
+ "location": {
1052
+ "filePath": "dev-files.main.runtime.ts",
1053
+ "line": 42,
1054
+ "character": 13
1055
+ },
1056
+ "type": {
1057
+ "__schema": "KeywordTypeSchema",
1058
+ "location": {
1059
+ "filePath": "dev-files.main.runtime.ts",
1060
+ "line": 42,
1061
+ "character": 13
1062
+ },
1063
+ "name": "string"
1064
+ }
1065
+ },
1066
+ "isOptional": false
1067
+ }
1068
+ ]
1069
+ }
1070
+ },
1071
+ {
1072
+ "__schema": "ClassSchema",
1073
+ "location": {
1074
+ "filePath": "dev-files.main.runtime.ts",
1075
+ "line": 45,
1076
+ "character": 1
1077
+ },
1078
+ "signature": "class DevFilesMain",
1079
+ "name": "DevFilesMain",
1080
+ "members": [
1081
+ {
1082
+ "__schema": "ConstructorSchema",
1083
+ "location": {
1084
+ "filePath": "dev-files.main.runtime.ts",
1085
+ "line": 46,
1086
+ "character": 3
1087
+ },
1088
+ "signature": "constructor DevFilesMain(envs: EnvsMain, workspace: Workspace, devPatternSlot: DevPatternSlot, config: DevFilesConfig): DevFilesMain",
1089
+ "name": "constructor",
1090
+ "params": [
1091
+ {
1092
+ "__schema": "ParameterSchema",
1093
+ "location": {
1094
+ "filePath": "dev-files.main.runtime.ts",
1095
+ "line": 47,
1096
+ "character": 5
1097
+ },
1098
+ "name": "envs",
1099
+ "type": {
1100
+ "__schema": "TypeRefSchema",
1101
+ "location": {
1102
+ "filePath": "dev-files.main.runtime.ts",
1103
+ "line": 47,
1104
+ "character": 19
1105
+ },
1106
+ "name": "EnvsMain"
1107
+ },
1108
+ "isOptional": false,
1109
+ "isSpread": false
1110
+ },
1111
+ {
1112
+ "__schema": "ParameterSchema",
1113
+ "location": {
1114
+ "filePath": "dev-files.main.runtime.ts",
1115
+ "line": 49,
1116
+ "character": 5
1117
+ },
1118
+ "name": "workspace",
1119
+ "type": {
1120
+ "__schema": "TypeRefSchema",
1121
+ "location": {
1122
+ "filePath": "dev-files.main.runtime.ts",
1123
+ "line": 49,
1124
+ "character": 24
1125
+ },
1126
+ "name": "Workspace"
1127
+ },
1128
+ "isOptional": false,
1129
+ "isSpread": false
1130
+ },
1131
+ {
1132
+ "__schema": "ParameterSchema",
1133
+ "location": {
1134
+ "filePath": "dev-files.main.runtime.ts",
1135
+ "line": 51,
1136
+ "character": 5
1137
+ },
1138
+ "name": "devPatternSlot",
1139
+ "type": {
1140
+ "__schema": "TypeRefSchema",
1141
+ "location": {
1142
+ "filePath": "dev-files.main.runtime.ts",
1143
+ "line": 51,
1144
+ "character": 29
1145
+ },
1146
+ "name": "DevPatternSlot"
1147
+ },
1148
+ "isOptional": false,
1149
+ "isSpread": false
1150
+ },
1151
+ {
1152
+ "__schema": "ParameterSchema",
1153
+ "location": {
1154
+ "filePath": "dev-files.main.runtime.ts",
1155
+ "line": 56,
1156
+ "character": 5
1157
+ },
1158
+ "name": "config",
1159
+ "type": {
1160
+ "__schema": "TypeRefSchema",
1161
+ "location": {
1162
+ "filePath": "dev-files.main.runtime.ts",
1163
+ "line": 56,
1164
+ "character": 22
1165
+ },
1166
+ "name": "DevFilesConfig"
1167
+ },
1168
+ "isOptional": false,
1169
+ "isSpread": false
1170
+ }
1171
+ ],
1172
+ "returnType": {
1173
+ "__schema": "ThisTypeSchema",
1174
+ "location": {
1175
+ "filePath": "dev-files.main.runtime.ts",
1176
+ "line": 45,
1177
+ "character": 1
1178
+ },
1179
+ "name": "DevFilesMain"
1180
+ },
1181
+ "modifiers": []
1182
+ },
1183
+ {
1184
+ "__schema": "FunctionLikeSchema",
1185
+ "location": {
1186
+ "filePath": "dev-files.main.runtime.ts",
1187
+ "line": 64,
1188
+ "character": 3
1189
+ },
1190
+ "doc": {
1191
+ "__schema": "DocSchema",
1192
+ "location": {
1193
+ "filePath": "dev-files.main.runtime.ts",
1194
+ "line": 59,
1195
+ "character": 3
1196
+ },
1197
+ "raw": "/**\n * compute all dev patterns on a component.\n * computing of dev patterns is a merge of the configuration, the env (env.getDevPatterns(component)) and\n * the registering aspects (through registerDevPattern()).\n */",
1198
+ "comment": "compute all dev patterns on a component.\ncomputing of dev patterns is a merge of the configuration, the env (env.getDevPatterns(component)) and\nthe registering aspects (through registerDevPattern())."
1199
+ },
1200
+ "signature": "(method) DevFilesMain.computeDevPatterns(component: Component): Promise<{\n config: any;\n} & {\n [id: string]: string[];\n} & {\n [id: string]: string[];\n}>",
1201
+ "name": "computeDevPatterns",
1202
+ "params": [
1203
+ {
1204
+ "__schema": "ParameterSchema",
1205
+ "location": {
1206
+ "filePath": "dev-files.main.runtime.ts",
1207
+ "line": 64,
1208
+ "character": 28
1209
+ },
1210
+ "name": "component",
1211
+ "type": {
1212
+ "__schema": "TypeRefSchema",
1213
+ "location": {
1214
+ "filePath": "dev-files.main.runtime.ts",
1215
+ "line": 64,
1216
+ "character": 39
1217
+ },
1218
+ "name": "Component"
1219
+ },
1220
+ "isOptional": false,
1221
+ "isSpread": false
1222
+ }
1223
+ ],
1224
+ "returnType": {
1225
+ "__schema": "InferenceTypeSchema",
1226
+ "location": {
1227
+ "filePath": "dev-files.main.runtime.ts",
1228
+ "line": 64,
1229
+ "character": 3
1230
+ },
1231
+ "type": "Promise<{\n config: any;\n} & {\n [id: string]: string[];\n} & {\n [id: string]: string[];\n}>"
1232
+ },
1233
+ "modifiers": [
1234
+ "async"
1235
+ ]
1236
+ },
1237
+ {
1238
+ "__schema": "FunctionLikeSchema",
1239
+ "location": {
1240
+ "filePath": "dev-files.main.runtime.ts",
1241
+ "line": 161,
1242
+ "character": 3
1243
+ },
1244
+ "doc": {
1245
+ "__schema": "DocSchema",
1246
+ "location": {
1247
+ "filePath": "dev-files.main.runtime.ts",
1248
+ "line": 158,
1249
+ "character": 3
1250
+ },
1251
+ "raw": "/**\n * get all dev files configured on a component.\n */",
1252
+ "comment": "get all dev files configured on a component."
1253
+ },
1254
+ "signature": "(method) DevFilesMain.getDevPatterns(component: Component, aspectId?: string): string[]",
1255
+ "name": "getDevPatterns",
1256
+ "params": [
1257
+ {
1258
+ "__schema": "ParameterSchema",
1259
+ "location": {
1260
+ "filePath": "dev-files.main.runtime.ts",
1261
+ "line": 161,
1262
+ "character": 18
1263
+ },
1264
+ "name": "component",
1265
+ "type": {
1266
+ "__schema": "TypeRefSchema",
1267
+ "location": {
1268
+ "filePath": "dev-files.main.runtime.ts",
1269
+ "line": 161,
1270
+ "character": 29
1271
+ },
1272
+ "name": "Component"
1273
+ },
1274
+ "isOptional": false,
1275
+ "isSpread": false
1276
+ },
1277
+ {
1278
+ "__schema": "ParameterSchema",
1279
+ "location": {
1280
+ "filePath": "dev-files.main.runtime.ts",
1281
+ "line": 161,
1282
+ "character": 40
1283
+ },
1284
+ "name": "aspectId",
1285
+ "type": {
1286
+ "__schema": "KeywordTypeSchema",
1287
+ "location": {
1288
+ "filePath": "dev-files.main.runtime.ts",
1289
+ "line": 161,
1290
+ "character": 51
1291
+ },
1292
+ "name": "string"
1293
+ },
1294
+ "isOptional": true,
1295
+ "isSpread": false
1296
+ }
1297
+ ],
1298
+ "returnType": {
1299
+ "__schema": "TypeArraySchema",
1300
+ "location": {
1301
+ "filePath": "dev-files.main.runtime.ts",
1302
+ "line": 161,
1303
+ "character": 60
1304
+ },
1305
+ "type": {
1306
+ "__schema": "KeywordTypeSchema",
1307
+ "location": {
1308
+ "filePath": "dev-files.main.runtime.ts",
1309
+ "line": 161,
1310
+ "character": 60
1311
+ },
1312
+ "name": "string"
1313
+ }
1314
+ },
1315
+ "modifiers": []
1316
+ },
1317
+ {
1318
+ "__schema": "FunctionLikeSchema",
1319
+ "location": {
1320
+ "filePath": "dev-files.main.runtime.ts",
1321
+ "line": 170,
1322
+ "character": 3
1323
+ },
1324
+ "doc": {
1325
+ "__schema": "DocSchema",
1326
+ "location": {
1327
+ "filePath": "dev-files.main.runtime.ts",
1328
+ "line": 167,
1329
+ "character": 3
1330
+ },
1331
+ "raw": "/**\n * determine whether a file of a component is a dev file.\n */",
1332
+ "comment": "determine whether a file of a component is a dev file."
1333
+ },
1334
+ "signature": "(method) DevFilesMain.isDevFile(component: Component, filePath: string): boolean",
1335
+ "name": "isDevFile",
1336
+ "params": [
1337
+ {
1338
+ "__schema": "ParameterSchema",
1339
+ "location": {
1340
+ "filePath": "dev-files.main.runtime.ts",
1341
+ "line": 170,
1342
+ "character": 13
1343
+ },
1344
+ "name": "component",
1345
+ "type": {
1346
+ "__schema": "TypeRefSchema",
1347
+ "location": {
1348
+ "filePath": "dev-files.main.runtime.ts",
1349
+ "line": 170,
1350
+ "character": 24
1351
+ },
1352
+ "name": "Component"
1353
+ },
1354
+ "isOptional": false,
1355
+ "isSpread": false
1356
+ },
1357
+ {
1358
+ "__schema": "ParameterSchema",
1359
+ "location": {
1360
+ "filePath": "dev-files.main.runtime.ts",
1361
+ "line": 170,
1362
+ "character": 35
1363
+ },
1364
+ "name": "filePath",
1365
+ "type": {
1366
+ "__schema": "KeywordTypeSchema",
1367
+ "location": {
1368
+ "filePath": "dev-files.main.runtime.ts",
1369
+ "line": 170,
1370
+ "character": 45
1371
+ },
1372
+ "name": "string"
1373
+ },
1374
+ "isOptional": false,
1375
+ "isSpread": false
1376
+ }
1377
+ ],
1378
+ "returnType": {
1379
+ "__schema": "KeywordTypeSchema",
1380
+ "location": {
1381
+ "filePath": "dev-files.main.runtime.ts",
1382
+ "line": 170,
1383
+ "character": 54
1384
+ },
1385
+ "name": "boolean"
1386
+ },
1387
+ "modifiers": []
1388
+ },
1389
+ {
1390
+ "__schema": "FunctionLikeSchema",
1391
+ "location": {
1392
+ "filePath": "dev-files.main.runtime.ts",
1393
+ "line": 179,
1394
+ "character": 3
1395
+ },
1396
+ "doc": {
1397
+ "__schema": "DocSchema",
1398
+ "location": {
1399
+ "filePath": "dev-files.main.runtime.ts",
1400
+ "line": 175,
1401
+ "character": 3
1402
+ },
1403
+ "raw": "/**\n * register a new dev pattern.\n * @param regex dev pattern\n */",
1404
+ "comment": "register a new dev pattern.",
1405
+ "tags": [
1406
+ {
1407
+ "__schema": "PropertyLikeTagSchema",
1408
+ "location": {
1409
+ "filePath": "dev-files.main.runtime.ts",
1410
+ "line": 177,
1411
+ "character": 6
1412
+ },
1413
+ "name": "regex",
1414
+ "tagName": "parameter",
1415
+ "comment": "dev pattern"
1416
+ }
1417
+ ]
1418
+ },
1419
+ "signature": "(method) DevFilesMain.registerDevPattern(pattern: DevPatterns): void",
1420
+ "name": "registerDevPattern",
1421
+ "params": [
1422
+ {
1423
+ "__schema": "ParameterSchema",
1424
+ "location": {
1425
+ "filePath": "dev-files.main.runtime.ts",
1426
+ "line": 179,
1427
+ "character": 22
1428
+ },
1429
+ "name": "pattern",
1430
+ "type": {
1431
+ "__schema": "TypeRefSchema",
1432
+ "location": {
1433
+ "filePath": "dev-files.main.runtime.ts",
1434
+ "line": 179,
1435
+ "character": 31
1436
+ },
1437
+ "name": "DevPatterns"
1438
+ },
1439
+ "isOptional": false,
1440
+ "isSpread": false
1441
+ }
1442
+ ],
1443
+ "returnType": {
1444
+ "__schema": "InferenceTypeSchema",
1445
+ "location": {
1446
+ "filePath": "dev-files.main.runtime.ts",
1447
+ "line": 179,
1448
+ "character": 3
1449
+ },
1450
+ "type": "void"
1451
+ },
1452
+ "modifiers": []
1453
+ },
1454
+ {
1455
+ "__schema": "FunctionLikeSchema",
1456
+ "location": {
1457
+ "filePath": "dev-files.main.runtime.ts",
1458
+ "line": 187,
1459
+ "character": 3
1460
+ },
1461
+ "doc": {
1462
+ "__schema": "DocSchema",
1463
+ "location": {
1464
+ "filePath": "dev-files.main.runtime.ts",
1465
+ "line": 183,
1466
+ "character": 3
1467
+ },
1468
+ "raw": "/**\n * get all dev patterns registered.\n * If you want to use this during onLoad event you might need to use computeDevFiles instead, since the component might not include this data yet\n */",
1469
+ "comment": "get all dev patterns registered.\nIf you want to use this during onLoad event you might need to use computeDevFiles instead, since the component might not include this data yet"
1470
+ },
1471
+ "signature": "(method) DevFilesMain.getDevFiles(component: Component): DevFiles",
1472
+ "name": "getDevFiles",
1473
+ "params": [
1474
+ {
1475
+ "__schema": "ParameterSchema",
1476
+ "location": {
1477
+ "filePath": "dev-files.main.runtime.ts",
1478
+ "line": 187,
1479
+ "character": 15
1480
+ },
1481
+ "name": "component",
1482
+ "type": {
1483
+ "__schema": "TypeRefSchema",
1484
+ "location": {
1485
+ "filePath": "dev-files.main.runtime.ts",
1486
+ "line": 187,
1487
+ "character": 26
1488
+ },
1489
+ "name": "Component"
1490
+ },
1491
+ "isOptional": false,
1492
+ "isSpread": false
1493
+ }
1494
+ ],
1495
+ "returnType": {
1496
+ "__schema": "TypeRefSchema",
1497
+ "location": {
1498
+ "filePath": "dev-files.main.runtime.ts",
1499
+ "line": 187,
1500
+ "character": 3
1501
+ },
1502
+ "name": "DevFiles",
1503
+ "internalFilePath": "dev-files.ts"
1504
+ },
1505
+ "modifiers": []
1506
+ },
1507
+ {
1508
+ "__schema": "FunctionLikeSchema",
1509
+ "location": {
1510
+ "filePath": "dev-files.main.runtime.ts",
1511
+ "line": 193,
1512
+ "character": 3
1513
+ },
1514
+ "signature": "(method) DevFilesMain.getDevFilesForConsumerComp(consumerComponent: LegacyComponent): Promise<string[]>",
1515
+ "name": "getDevFilesForConsumerComp",
1516
+ "params": [
1517
+ {
1518
+ "__schema": "ParameterSchema",
1519
+ "location": {
1520
+ "filePath": "dev-files.main.runtime.ts",
1521
+ "line": 193,
1522
+ "character": 36
1523
+ },
1524
+ "name": "consumerComponent",
1525
+ "type": {
1526
+ "__schema": "TypeRefSchema",
1527
+ "location": {
1528
+ "filePath": "dev-files.main.runtime.ts",
1529
+ "line": 193,
1530
+ "character": 55
1531
+ },
1532
+ "name": "LegacyComponent"
1533
+ },
1534
+ "isOptional": false,
1535
+ "isSpread": false
1536
+ }
1537
+ ],
1538
+ "returnType": {
1539
+ "__schema": "TypeRefSchema",
1540
+ "location": {
1541
+ "filePath": "dev-files.main.runtime.ts",
1542
+ "line": 193,
1543
+ "character": 73
1544
+ },
1545
+ "name": "Promise",
1546
+ "typeArgs": [
1547
+ {
1548
+ "__schema": "TypeArraySchema",
1549
+ "location": {
1550
+ "filePath": "dev-files.main.runtime.ts",
1551
+ "line": 193,
1552
+ "character": 81
1553
+ },
1554
+ "type": {
1555
+ "__schema": "KeywordTypeSchema",
1556
+ "location": {
1557
+ "filePath": "dev-files.main.runtime.ts",
1558
+ "line": 193,
1559
+ "character": 81
1560
+ },
1561
+ "name": "string"
1562
+ }
1563
+ }
1564
+ ]
1565
+ },
1566
+ "modifiers": [
1567
+ "async"
1568
+ ]
1569
+ },
1570
+ {
1571
+ "__schema": "FunctionLikeSchema",
1572
+ "location": {
1573
+ "filePath": "dev-files.main.runtime.ts",
1574
+ "line": 205,
1575
+ "character": 3
1576
+ },
1577
+ "doc": {
1578
+ "__schema": "DocSchema",
1579
+ "location": {
1580
+ "filePath": "dev-files.main.runtime.ts",
1581
+ "line": 202,
1582
+ "character": 3
1583
+ },
1584
+ "raw": "/**\n * compute all dev files of a component.\n */",
1585
+ "comment": "compute all dev files of a component."
1586
+ },
1587
+ "signature": "(method) DevFilesMain.computeDevFiles(component: Component): Promise<DevFiles>",
1588
+ "name": "computeDevFiles",
1589
+ "params": [
1590
+ {
1591
+ "__schema": "ParameterSchema",
1592
+ "location": {
1593
+ "filePath": "dev-files.main.runtime.ts",
1594
+ "line": 205,
1595
+ "character": 25
1596
+ },
1597
+ "name": "component",
1598
+ "type": {
1599
+ "__schema": "TypeRefSchema",
1600
+ "location": {
1601
+ "filePath": "dev-files.main.runtime.ts",
1602
+ "line": 205,
1603
+ "character": 36
1604
+ },
1605
+ "name": "Component"
1606
+ },
1607
+ "isOptional": false,
1608
+ "isSpread": false
1609
+ }
1610
+ ],
1611
+ "returnType": {
1612
+ "__schema": "TypeRefSchema",
1613
+ "location": {
1614
+ "filePath": "dev-files.main.runtime.ts",
1615
+ "line": 205,
1616
+ "character": 48
1617
+ },
1618
+ "name": "Promise",
1619
+ "typeArgs": [
1620
+ {
1621
+ "__schema": "TypeRefSchema",
1622
+ "location": {
1623
+ "filePath": "dev-files.main.runtime.ts",
1624
+ "line": 205,
1625
+ "character": 56
1626
+ },
1627
+ "name": "DevFiles"
1628
+ }
1629
+ ]
1630
+ },
1631
+ "modifiers": [
1632
+ "async"
1633
+ ]
1634
+ },
1635
+ {
1636
+ "__schema": "VariableLikeSchema",
1637
+ "location": {
1638
+ "filePath": "dev-files.main.runtime.ts",
1639
+ "line": 217,
1640
+ "character": 3
1641
+ },
1642
+ "signature": "(property) DevFilesMain.slots: ((registerFn: () => string) => SlotRegistry<DevPatterns>)[]",
1643
+ "name": "slots",
1644
+ "type": {
1645
+ "__schema": "InferenceTypeSchema",
1646
+ "location": {
1647
+ "filePath": "dev-files.main.runtime.ts",
1648
+ "line": 217,
1649
+ "character": 3
1650
+ },
1651
+ "type": "((registerFn: () => string) => SlotRegistry<DevPatterns>)[]"
1652
+ },
1653
+ "isOptional": true,
1654
+ "defaultValue": "[Slot.withType<DevPatterns>()]"
1655
+ },
1656
+ {
1657
+ "__schema": "VariableLikeSchema",
1658
+ "location": {
1659
+ "filePath": "dev-files.main.runtime.ts",
1660
+ "line": 219,
1661
+ "character": 3
1662
+ },
1663
+ "signature": "(property) DevFilesMain.defaultConfig: {\n patterns: never[];\n}",
1664
+ "name": "defaultConfig",
1665
+ "type": {
1666
+ "__schema": "InferenceTypeSchema",
1667
+ "location": {
1668
+ "filePath": "dev-files.main.runtime.ts",
1669
+ "line": 219,
1670
+ "character": 3
1671
+ },
1672
+ "type": "{\n patterns: never[];\n}"
1673
+ },
1674
+ "isOptional": true,
1675
+ "defaultValue": "{\n patterns: [],\n }"
1676
+ },
1677
+ {
1678
+ "__schema": "VariableLikeSchema",
1679
+ "location": {
1680
+ "filePath": "dev-files.main.runtime.ts",
1681
+ "line": 223,
1682
+ "character": 3
1683
+ },
1684
+ "signature": "(property) DevFilesMain.runtime: RuntimeDefinition",
1685
+ "name": "runtime",
1686
+ "type": {
1687
+ "__schema": "InferenceTypeSchema",
1688
+ "location": {
1689
+ "filePath": "dev-files.main.runtime.ts",
1690
+ "line": 223,
1691
+ "character": 3
1692
+ },
1693
+ "type": "RuntimeDefinition"
1694
+ },
1695
+ "isOptional": true,
1696
+ "defaultValue": "MainRuntime"
1697
+ },
1698
+ {
1699
+ "__schema": "VariableLikeSchema",
1700
+ "location": {
1701
+ "filePath": "dev-files.main.runtime.ts",
1702
+ "line": 225,
1703
+ "character": 3
1704
+ },
1705
+ "signature": "(property) DevFilesMain.dependencies: Aspect[]",
1706
+ "name": "dependencies",
1707
+ "type": {
1708
+ "__schema": "InferenceTypeSchema",
1709
+ "location": {
1710
+ "filePath": "dev-files.main.runtime.ts",
1711
+ "line": 225,
1712
+ "character": 3
1713
+ },
1714
+ "type": "Aspect[]"
1715
+ },
1716
+ "isOptional": true,
1717
+ "defaultValue": "[EnvsAspect, WorkspaceAspect, ComponentAspect, GraphqlAspect, ScopeAspect]"
1718
+ },
1719
+ {
1720
+ "__schema": "FunctionLikeSchema",
1721
+ "location": {
1722
+ "filePath": "dev-files.main.runtime.ts",
1723
+ "line": 227,
1724
+ "character": 3
1725
+ },
1726
+ "signature": "(method) DevFilesMain.provider([envs, workspace, componentAspect, graphql, scope]: [EnvsMain, Workspace, ComponentMain, GraphqlMain, ScopeMain], config: DevFilesConfig, [devPatternSlot]: [DevPatternSlot]): Promise<DevFilesMain>",
1727
+ "name": "provider",
1728
+ "params": [
1729
+ {
1730
+ "__schema": "ParameterSchema",
1731
+ "location": {
1732
+ "filePath": "dev-files.main.runtime.ts",
1733
+ "line": 228,
1734
+ "character": 5
1735
+ },
1736
+ "name": "[ envs, workspace, componentAspect, graphql, scope ]",
1737
+ "type": {
1738
+ "__schema": "TupleTypeSchema",
1739
+ "location": {
1740
+ "filePath": "dev-files.main.runtime.ts",
1741
+ "line": 228,
1742
+ "character": 57
1743
+ },
1744
+ "elements": [
1745
+ {
1746
+ "__schema": "TypeRefSchema",
1747
+ "location": {
1748
+ "filePath": "dev-files.main.runtime.ts",
1749
+ "line": 228,
1750
+ "character": 58
1751
+ },
1752
+ "name": "EnvsMain"
1753
+ },
1754
+ {
1755
+ "__schema": "TypeRefSchema",
1756
+ "location": {
1757
+ "filePath": "dev-files.main.runtime.ts",
1758
+ "line": 228,
1759
+ "character": 68
1760
+ },
1761
+ "name": "Workspace"
1762
+ },
1763
+ {
1764
+ "__schema": "TypeRefSchema",
1765
+ "location": {
1766
+ "filePath": "dev-files.main.runtime.ts",
1767
+ "line": 228,
1768
+ "character": 79
1769
+ },
1770
+ "name": "ComponentMain"
1771
+ },
1772
+ {
1773
+ "__schema": "TypeRefSchema",
1774
+ "location": {
1775
+ "filePath": "dev-files.main.runtime.ts",
1776
+ "line": 228,
1777
+ "character": 94
1778
+ },
1779
+ "name": "GraphqlMain"
1780
+ },
1781
+ {
1782
+ "__schema": "TypeRefSchema",
1783
+ "location": {
1784
+ "filePath": "dev-files.main.runtime.ts",
1785
+ "line": 228,
1786
+ "character": 107
1787
+ },
1788
+ "name": "ScopeMain"
1789
+ }
1790
+ ]
1791
+ },
1792
+ "isOptional": false,
1793
+ "isSpread": false
1794
+ },
1795
+ {
1796
+ "__schema": "ParameterSchema",
1797
+ "location": {
1798
+ "filePath": "dev-files.main.runtime.ts",
1799
+ "line": 229,
1800
+ "character": 5
1801
+ },
1802
+ "name": "config",
1803
+ "type": {
1804
+ "__schema": "TypeRefSchema",
1805
+ "location": {
1806
+ "filePath": "dev-files.main.runtime.ts",
1807
+ "line": 229,
1808
+ "character": 13
1809
+ },
1810
+ "name": "DevFilesConfig"
1811
+ },
1812
+ "isOptional": false,
1813
+ "isSpread": false
1814
+ },
1815
+ {
1816
+ "__schema": "ParameterSchema",
1817
+ "location": {
1818
+ "filePath": "dev-files.main.runtime.ts",
1819
+ "line": 230,
1820
+ "character": 5
1821
+ },
1822
+ "name": "[ devPatternSlot ]",
1823
+ "type": {
1824
+ "__schema": "TupleTypeSchema",
1825
+ "location": {
1826
+ "filePath": "dev-files.main.runtime.ts",
1827
+ "line": 230,
1828
+ "character": 23
1829
+ },
1830
+ "elements": [
1831
+ {
1832
+ "__schema": "TypeRefSchema",
1833
+ "location": {
1834
+ "filePath": "dev-files.main.runtime.ts",
1835
+ "line": 230,
1836
+ "character": 24
1837
+ },
1838
+ "name": "DevPatternSlot"
1839
+ }
1840
+ ]
1841
+ },
1842
+ "isOptional": false,
1843
+ "isSpread": false
1844
+ }
1845
+ ],
1846
+ "returnType": {
1847
+ "__schema": "InferenceTypeSchema",
1848
+ "location": {
1849
+ "filePath": "dev-files.main.runtime.ts",
1850
+ "line": 227,
1851
+ "character": 3
1852
+ },
1853
+ "type": "Promise<DevFilesMain>"
1854
+ },
1855
+ "modifiers": [
1856
+ "static",
1857
+ "async"
1858
+ ]
1859
+ }
1860
+ ],
1861
+ "extendsNodes": [],
1862
+ "implementNodes": []
1863
+ }
1864
+ ],
1865
+ "internals": [
1866
+ {
1867
+ "__schema": "TypeSchema",
1868
+ "location": {
1869
+ "filePath": "dev-files.main.runtime.ts",
1870
+ "line": 17,
1871
+ "character": 1
1872
+ },
1873
+ "signature": "type DevPatternDescriptor = {\n name: string;\n pattern: string[];\n}",
1874
+ "name": "DevPatternDescriptor",
1875
+ "type": {
1876
+ "__schema": "TypeLiteralSchema",
1877
+ "location": {
1878
+ "filePath": "dev-files.main.runtime.ts",
1879
+ "line": 17,
1880
+ "character": 29
1881
+ },
1882
+ "members": [
1883
+ {
1884
+ "__schema": "VariableLikeSchema",
1885
+ "location": {
1886
+ "filePath": "dev-files.main.runtime.ts",
1887
+ "line": 21,
1888
+ "character": 3
1889
+ },
1890
+ "doc": {
1891
+ "__schema": "DocSchema",
1892
+ "location": {
1893
+ "filePath": "dev-files.main.runtime.ts",
1894
+ "line": 18,
1895
+ "character": 3
1896
+ },
1897
+ "raw": "/**\n * Name of the dev pattern\n */",
1898
+ "comment": "Name of the dev pattern"
1899
+ },
1900
+ "signature": "(property) name: string",
1901
+ "name": "name",
1902
+ "type": {
1903
+ "__schema": "KeywordTypeSchema",
1904
+ "location": {
1905
+ "filePath": "dev-files.main.runtime.ts",
1906
+ "line": 21,
1907
+ "character": 9
1908
+ },
1909
+ "name": "string"
1910
+ },
1911
+ "isOptional": false
1912
+ },
1913
+ {
1914
+ "__schema": "VariableLikeSchema",
1915
+ "location": {
1916
+ "filePath": "dev-files.main.runtime.ts",
1917
+ "line": 26,
1918
+ "character": 3
1919
+ },
1920
+ "doc": {
1921
+ "__schema": "DocSchema",
1922
+ "location": {
1923
+ "filePath": "dev-files.main.runtime.ts",
1924
+ "line": 23,
1925
+ "character": 3
1926
+ },
1927
+ "raw": "/**\n * Glob pattern to select dev files\n */",
1928
+ "comment": "Glob pattern to select dev files"
1929
+ },
1930
+ "signature": "(property) pattern: string[]",
1931
+ "name": "pattern",
1932
+ "type": {
1933
+ "__schema": "TypeArraySchema",
1934
+ "location": {
1935
+ "filePath": "dev-files.main.runtime.ts",
1936
+ "line": 26,
1937
+ "character": 12
1938
+ },
1939
+ "type": {
1940
+ "__schema": "KeywordTypeSchema",
1941
+ "location": {
1942
+ "filePath": "dev-files.main.runtime.ts",
1943
+ "line": 26,
1944
+ "character": 12
1945
+ },
1946
+ "name": "string"
1947
+ }
1948
+ },
1949
+ "isOptional": false
1950
+ }
1951
+ ]
1952
+ }
1953
+ },
1954
+ {
1955
+ "__schema": "TypeSchema",
1956
+ "location": {
1957
+ "filePath": "dev-files.main.runtime.ts",
1958
+ "line": 29,
1959
+ "character": 1
1960
+ },
1961
+ "signature": "type DevPattern = string[] | DevPatternDescriptor",
1962
+ "name": "DevPattern",
1963
+ "type": {
1964
+ "__schema": "TypeUnionSchema",
1965
+ "location": {
1966
+ "filePath": "dev-files.main.runtime.ts",
1967
+ "line": 29,
1968
+ "character": 19
1969
+ },
1970
+ "types": [
1971
+ {
1972
+ "__schema": "TypeArraySchema",
1973
+ "location": {
1974
+ "filePath": "dev-files.main.runtime.ts",
1975
+ "line": 29,
1976
+ "character": 19
1977
+ },
1978
+ "type": {
1979
+ "__schema": "KeywordTypeSchema",
1980
+ "location": {
1981
+ "filePath": "dev-files.main.runtime.ts",
1982
+ "line": 29,
1983
+ "character": 19
1984
+ },
1985
+ "name": "string"
1986
+ }
1987
+ },
1988
+ {
1989
+ "__schema": "TypeRefSchema",
1990
+ "location": {
1991
+ "filePath": "dev-files.main.runtime.ts",
1992
+ "line": 29,
1993
+ "character": 30
1994
+ },
1995
+ "name": "DevPatternDescriptor"
1996
+ }
1997
+ ]
1998
+ }
1999
+ },
2000
+ {
2001
+ "__schema": "UnImplementedSchema",
2002
+ "location": {
2003
+ "filePath": "dev-files.main.runtime.ts",
2004
+ "line": 254,
2005
+ "character": 1
2006
+ },
2007
+ "name": "DevFilesAspect.addRuntime(DevFilesMain);",
2008
+ "type": "ExpressionStatement"
2009
+ }
2010
+ ]
2011
+ }
2012
+ ],
2013
+ "componentId": {
2014
+ "scope": "teambit.component",
2015
+ "name": "dev-files",
2016
+ "version": "1.0.159"
2017
+ },
2018
+ "taggedModuleExports": []
2019
+ }