@teambit/dev-files 1.0.258 → 1.0.259

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