@teambit/dev-files 1.0.256 → 1.0.258

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