@teambit/aspect 0.0.1048 → 0.0.1049

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3917 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ClassSchema",
18
- "name": "AspectMain",
19
- "location": {
20
- "filePath": "aspect.main.runtime.ts",
21
- "line": 35,
22
- "character": 1
23
- },
24
- "signature": "class AspectMain",
25
- "extendsNodes": [],
26
- "implementNodes": [],
27
- "members": [
28
- {
29
- "__schema": "ConstructorSchema",
30
- "location": {
31
- "filePath": "aspect.main.runtime.ts",
32
- "line": 36,
33
- "character": 3
34
- },
35
- "name": "constructor",
36
- "signature": "constructor AspectMain(aspectEnv: AspectEnv, envs: EnvsMain, workspace: Workspace): AspectMain",
37
- "modifiers": [],
38
- "params": [
39
- {
40
- "__schema": "ParameterSchema",
41
- "location": {
42
- "filePath": "aspect.main.runtime.ts",
43
- "line": 36,
44
- "character": 15
45
- },
46
- "name": "aspectEnv",
47
- "isOptional": false,
48
- "type": {
49
- "__schema": "TypeRefSchema",
50
- "location": {
51
- "filePath": "aspect.main.runtime.ts",
52
- "line": 36,
53
- "character": 35
54
- },
55
- "name": "AspectEnv"
56
- }
57
- },
58
- {
59
- "__schema": "ParameterSchema",
60
- "location": {
61
- "filePath": "aspect.main.runtime.ts",
62
- "line": 36,
63
- "character": 46
64
- },
65
- "name": "envs",
66
- "isOptional": false,
67
- "type": {
68
- "__schema": "TypeRefSchema",
69
- "location": {
70
- "filePath": "aspect.main.runtime.ts",
71
- "line": 36,
72
- "character": 60
73
- },
74
- "name": "EnvsMain",
75
- "componentId": {
76
- "scope": "teambit.envs",
77
- "name": "envs"
78
- }
79
- }
80
- },
81
- {
82
- "__schema": "ParameterSchema",
83
- "location": {
84
- "filePath": "aspect.main.runtime.ts",
85
- "line": 36,
86
- "character": 70
87
- },
88
- "name": "workspace",
89
- "isOptional": false,
90
- "type": {
91
- "__schema": "TypeRefSchema",
92
- "location": {
93
- "filePath": "aspect.main.runtime.ts",
94
- "line": 36,
95
- "character": 89
96
- },
97
- "name": "Workspace",
98
- "componentId": {
99
- "scope": "teambit.workspace",
100
- "name": "workspace"
101
- }
102
- }
103
- }
104
- ],
105
- "returnType": {
106
- "__schema": "ThisTypeSchema",
107
- "location": {
108
- "filePath": "aspect.main.runtime.ts",
109
- "line": 35,
110
- "character": 1
111
- }
112
- }
113
- },
114
- {
115
- "__schema": "FunctionLikeSchema",
116
- "location": {
117
- "filePath": "aspect.main.runtime.ts",
118
- "line": 41,
119
- "character": 3
120
- },
121
- "name": "compose",
122
- "signature": "(method) AspectMain.compose(transformers?: EnvTransformer[], targetEnv?: Environment): Environment",
123
- "modifiers": [],
124
- "params": [
125
- {
126
- "__schema": "ParameterSchema",
127
- "location": {
128
- "filePath": "aspect.main.runtime.ts",
129
- "line": 41,
130
- "character": 11
131
- },
132
- "name": "transformers",
133
- "isOptional": false,
134
- "defaultValue": "[]",
135
- "type": {
136
- "__schema": "TypeArraySchema",
137
- "location": {
138
- "filePath": "aspect.main.runtime.ts",
139
- "line": 41,
140
- "character": 25
141
- },
142
- "type": {
143
- "__schema": "TypeRefSchema",
144
- "location": {
145
- "filePath": "aspect.main.runtime.ts",
146
- "line": 41,
147
- "character": 25
148
- },
149
- "name": "EnvTransformer",
150
- "componentId": {
151
- "scope": "teambit.envs",
152
- "name": "envs"
153
- }
154
- }
155
- }
156
- },
157
- {
158
- "__schema": "ParameterSchema",
159
- "location": {
160
- "filePath": "aspect.main.runtime.ts",
161
- "line": 41,
162
- "character": 48
163
- },
164
- "name": "targetEnv",
165
- "isOptional": false,
166
- "defaultValue": "{}",
167
- "type": {
168
- "__schema": "TypeRefSchema",
169
- "location": {
170
- "filePath": "aspect.main.runtime.ts",
171
- "line": 41,
172
- "character": 59
173
- },
174
- "name": "Environment",
175
- "componentId": {
176
- "scope": "teambit.envs",
177
- "name": "envs"
178
- }
179
- }
180
- }
181
- ],
182
- "returnType": {
183
- "__schema": "TypeRefSchema",
184
- "location": {
185
- "filePath": "aspect.main.runtime.ts",
186
- "line": 41,
187
- "character": 3
188
- },
189
- "name": "Environment",
190
- "componentId": {
191
- "scope": "teambit.envs",
192
- "name": "envs"
193
- }
194
- },
195
- "doc": {
196
- "__schema": "DocSchema",
197
- "location": {
198
- "filePath": "aspect.main.runtime.ts",
199
- "line": 38,
200
- "character": 3
201
- },
202
- "raw": "/**\n * compose your own aspect environment.\n */",
203
- "comment": "compose your own aspect environment."
204
- }
205
- },
206
- {
207
- "__schema": "FunctionLikeSchema",
208
- "location": {
209
- "filePath": "aspect.main.runtime.ts",
210
- "line": 45,
211
- "character": 3
212
- },
213
- "name": "listAspectsOfComponent",
214
- "signature": "(method) AspectMain.listAspectsOfComponent(pattern?: string): Promise<{\n [component: string]: AspectSource[];\n}>",
215
- "modifiers": [
216
- "async"
217
- ],
218
- "params": [
219
- {
220
- "__schema": "ParameterSchema",
221
- "location": {
222
- "filePath": "aspect.main.runtime.ts",
223
- "line": 45,
224
- "character": 32
225
- },
226
- "name": "pattern",
227
- "isOptional": true,
228
- "type": {
229
- "__schema": "KeywordTypeSchema",
230
- "location": {
231
- "filePath": "aspect.main.runtime.ts",
232
- "line": 45,
233
- "character": 42
234
- },
235
- "name": "string"
236
- }
237
- }
238
- ],
239
- "returnType": {
240
- "__schema": "TypeRefSchema",
241
- "location": {
242
- "filePath": "aspect.main.runtime.ts",
243
- "line": 45,
244
- "character": 51
245
- },
246
- "name": "Promise",
247
- "packageName": "",
248
- "typeArgs": [
249
- {
250
- "__schema": "TypeLiteralSchema",
251
- "location": {
252
- "filePath": "aspect.main.runtime.ts",
253
- "line": 45,
254
- "character": 59
255
- },
256
- "members": [
257
- {
258
- "__schema": "FunctionLikeSchema",
259
- "location": {
260
- "filePath": "aspect.main.runtime.ts",
261
- "line": 45,
262
- "character": 61
263
- },
264
- "name": "",
265
- "signature": "",
266
- "modifiers": [],
267
- "params": [
268
- {
269
- "__schema": "ParameterSchema",
270
- "location": {
271
- "filePath": "aspect.main.runtime.ts",
272
- "line": 45,
273
- "character": 62
274
- },
275
- "name": "component",
276
- "isOptional": false,
277
- "type": {
278
- "__schema": "KeywordTypeSchema",
279
- "location": {
280
- "filePath": "aspect.main.runtime.ts",
281
- "line": 45,
282
- "character": 73
283
- },
284
- "name": "string"
285
- }
286
- }
287
- ],
288
- "returnType": {
289
- "__schema": "TypeArraySchema",
290
- "location": {
291
- "filePath": "aspect.main.runtime.ts",
292
- "line": 45,
293
- "character": 82
294
- },
295
- "type": {
296
- "__schema": "TypeRefSchema",
297
- "location": {
298
- "filePath": "aspect.main.runtime.ts",
299
- "line": 45,
300
- "character": 82
301
- },
302
- "name": "AspectSource",
303
- "internalFilePath": "aspect.main.runtime.ts"
304
- }
305
- }
306
- }
307
- ]
308
- }
309
- ]
310
- }
311
- },
312
- {
313
- "__schema": "GetAccessorSchema",
314
- "location": {
315
- "filePath": "aspect.main.runtime.ts",
316
- "line": 61,
317
- "character": 3
318
- },
319
- "name": "babelConfig",
320
- "signature": "(getter) AspectMain.babelConfig: {\n presets: (string | (string | {\n targets: {\n node: number;\n };\n useBuiltIns: string;\n corejs: number;\n })[])[];\n plugins: (string | (string | {\n lazy: () => boolean;\n })[] | (string | {\n legacy: boolean;\n })[])[];\n sourceMaps: boolean;\n}",
321
- "type": {
322
- "__schema": "InferenceTypeSchema",
323
- "location": {
324
- "filePath": "aspect.main.runtime.ts",
325
- "line": 61,
326
- "character": 3
327
- },
328
- "type": "{\n presets: (string | (string | {\n targets: {\n node: number;\n };\n useBuiltIns: string;\n corejs: number;\n })[])[];\n plugins: (string | (string | {\n lazy: () => boolean;\n })[] | (string | {\n legacy: boolean;\n })[])[];\n sourceMaps: boolean;\n}"
329
- }
330
- },
331
- {
332
- "__schema": "FunctionLikeSchema",
333
- "location": {
334
- "filePath": "aspect.main.runtime.ts",
335
- "line": 91,
336
- "character": 3
337
- },
338
- "name": "setAspectsToComponents",
339
- "signature": "(method) AspectMain.setAspectsToComponents(pattern: string, aspectId: string, config?: Record<string, any>, options?: SetAspectOptions): Promise<ComponentID[]>",
340
- "modifiers": [
341
- "async"
342
- ],
343
- "params": [
344
- {
345
- "__schema": "ParameterSchema",
346
- "location": {
347
- "filePath": "aspect.main.runtime.ts",
348
- "line": 92,
349
- "character": 5
350
- },
351
- "name": "pattern",
352
- "isOptional": false,
353
- "type": {
354
- "__schema": "KeywordTypeSchema",
355
- "location": {
356
- "filePath": "aspect.main.runtime.ts",
357
- "line": 92,
358
- "character": 14
359
- },
360
- "name": "string"
361
- }
362
- },
363
- {
364
- "__schema": "ParameterSchema",
365
- "location": {
366
- "filePath": "aspect.main.runtime.ts",
367
- "line": 93,
368
- "character": 5
369
- },
370
- "name": "aspectId",
371
- "isOptional": false,
372
- "type": {
373
- "__schema": "KeywordTypeSchema",
374
- "location": {
375
- "filePath": "aspect.main.runtime.ts",
376
- "line": 93,
377
- "character": 15
378
- },
379
- "name": "string"
380
- }
381
- },
382
- {
383
- "__schema": "ParameterSchema",
384
- "location": {
385
- "filePath": "aspect.main.runtime.ts",
386
- "line": 94,
387
- "character": 5
388
- },
389
- "name": "config",
390
- "isOptional": false,
391
- "defaultValue": "{}",
392
- "type": {
393
- "__schema": "TypeRefSchema",
394
- "location": {
395
- "filePath": "aspect.main.runtime.ts",
396
- "line": 94,
397
- "character": 13
398
- },
399
- "name": "Record",
400
- "packageName": "",
401
- "typeArgs": [
402
- {
403
- "__schema": "KeywordTypeSchema",
404
- "location": {
405
- "filePath": "aspect.main.runtime.ts",
406
- "line": 94,
407
- "character": 20
408
- },
409
- "name": "string"
410
- },
411
- {
412
- "__schema": "KeywordTypeSchema",
413
- "location": {
414
- "filePath": "aspect.main.runtime.ts",
415
- "line": 94,
416
- "character": 28
417
- },
418
- "name": "any"
419
- }
420
- ]
421
- }
422
- },
423
- {
424
- "__schema": "ParameterSchema",
425
- "location": {
426
- "filePath": "aspect.main.runtime.ts",
427
- "line": 95,
428
- "character": 5
429
- },
430
- "name": "options",
431
- "isOptional": false,
432
- "defaultValue": "{}",
433
- "type": {
434
- "__schema": "TypeRefSchema",
435
- "location": {
436
- "filePath": "aspect.main.runtime.ts",
437
- "line": 95,
438
- "character": 14
439
- },
440
- "name": "SetAspectOptions",
441
- "internalFilePath": "aspect.cmd.ts"
442
- }
443
- }
444
- ],
445
- "returnType": {
446
- "__schema": "TypeRefSchema",
447
- "location": {
448
- "filePath": "aspect.main.runtime.ts",
449
- "line": 96,
450
- "character": 6
451
- },
452
- "name": "Promise",
453
- "packageName": "",
454
- "typeArgs": [
455
- {
456
- "__schema": "TypeArraySchema",
457
- "location": {
458
- "filePath": "aspect.main.runtime.ts",
459
- "line": 96,
460
- "character": 14
461
- },
462
- "type": {
463
- "__schema": "TypeRefSchema",
464
- "location": {
465
- "filePath": "aspect.main.runtime.ts",
466
- "line": 96,
467
- "character": 14
468
- },
469
- "name": "ComponentID",
470
- "componentId": {
471
- "scope": "teambit.component",
472
- "name": "component-id",
473
- "version": "0.0.427"
474
- }
475
- }
476
- }
477
- ]
478
- }
479
- },
480
- {
481
- "__schema": "FunctionLikeSchema",
482
- "location": {
483
- "filePath": "aspect.main.runtime.ts",
484
- "line": 108,
485
- "character": 3
486
- },
487
- "name": "unsetAspectsFromComponents",
488
- "signature": "(method) AspectMain.unsetAspectsFromComponents(pattern: string, aspectIdStr: string): Promise<ComponentID[]>",
489
- "modifiers": [
490
- "async"
491
- ],
492
- "params": [
493
- {
494
- "__schema": "ParameterSchema",
495
- "location": {
496
- "filePath": "aspect.main.runtime.ts",
497
- "line": 108,
498
- "character": 36
499
- },
500
- "name": "pattern",
501
- "isOptional": false,
502
- "type": {
503
- "__schema": "KeywordTypeSchema",
504
- "location": {
505
- "filePath": "aspect.main.runtime.ts",
506
- "line": 108,
507
- "character": 45
508
- },
509
- "name": "string"
510
- }
511
- },
512
- {
513
- "__schema": "ParameterSchema",
514
- "location": {
515
- "filePath": "aspect.main.runtime.ts",
516
- "line": 108,
517
- "character": 53
518
- },
519
- "name": "aspectIdStr",
520
- "isOptional": false,
521
- "type": {
522
- "__schema": "KeywordTypeSchema",
523
- "location": {
524
- "filePath": "aspect.main.runtime.ts",
525
- "line": 108,
526
- "character": 66
527
- },
528
- "name": "string"
529
- }
530
- }
531
- ],
532
- "returnType": {
533
- "__schema": "TypeRefSchema",
534
- "location": {
535
- "filePath": "aspect.main.runtime.ts",
536
- "line": 108,
537
- "character": 75
538
- },
539
- "name": "Promise",
540
- "packageName": "",
541
- "typeArgs": [
542
- {
543
- "__schema": "TypeArraySchema",
544
- "location": {
545
- "filePath": "aspect.main.runtime.ts",
546
- "line": 108,
547
- "character": 83
548
- },
549
- "type": {
550
- "__schema": "TypeRefSchema",
551
- "location": {
552
- "filePath": "aspect.main.runtime.ts",
553
- "line": 108,
554
- "character": 83
555
- },
556
- "name": "ComponentID",
557
- "componentId": {
558
- "scope": "teambit.component",
559
- "name": "component-id",
560
- "version": "0.0.427"
561
- }
562
- }
563
- }
564
- ]
565
- }
566
- },
567
- {
568
- "__schema": "FunctionLikeSchema",
569
- "location": {
570
- "filePath": "aspect.main.runtime.ts",
571
- "line": 128,
572
- "character": 3
573
- },
574
- "name": "getAspectsOfComponent",
575
- "signature": "(method) AspectMain.getAspectsOfComponent(id: string | ComponentID): Promise<AspectList>",
576
- "modifiers": [
577
- "async"
578
- ],
579
- "params": [
580
- {
581
- "__schema": "ParameterSchema",
582
- "location": {
583
- "filePath": "aspect.main.runtime.ts",
584
- "line": 128,
585
- "character": 31
586
- },
587
- "name": "id",
588
- "isOptional": false,
589
- "type": {
590
- "__schema": "TypeUnionSchema",
591
- "location": {
592
- "filePath": "aspect.main.runtime.ts",
593
- "line": 128,
594
- "character": 35
595
- },
596
- "types": [
597
- {
598
- "__schema": "KeywordTypeSchema",
599
- "location": {
600
- "filePath": "aspect.main.runtime.ts",
601
- "line": 128,
602
- "character": 35
603
- },
604
- "name": "string"
605
- },
606
- {
607
- "__schema": "TypeRefSchema",
608
- "location": {
609
- "filePath": "aspect.main.runtime.ts",
610
- "line": 128,
611
- "character": 44
612
- },
613
- "name": "ComponentID",
614
- "componentId": {
615
- "scope": "teambit.component",
616
- "name": "component-id",
617
- "version": "0.0.427"
618
- }
619
- }
620
- ]
621
- }
622
- }
623
- ],
624
- "returnType": {
625
- "__schema": "TypeRefSchema",
626
- "location": {
627
- "filePath": "aspect.main.runtime.ts",
628
- "line": 128,
629
- "character": 58
630
- },
631
- "name": "Promise",
632
- "packageName": "",
633
- "typeArgs": [
634
- {
635
- "__schema": "TypeRefSchema",
636
- "location": {
637
- "filePath": "aspect.main.runtime.ts",
638
- "line": 128,
639
- "character": 66
640
- },
641
- "name": "AspectList",
642
- "componentId": {
643
- "scope": "teambit.component",
644
- "name": "component"
645
- }
646
- }
647
- ]
648
- },
649
- "doc": {
650
- "__schema": "DocSchema",
651
- "location": {
652
- "filePath": "aspect.main.runtime.ts",
653
- "line": 125,
654
- "character": 3
655
- },
656
- "raw": "/**\n * returns all aspects info of a component, include the config and the data.\n */",
657
- "comment": "returns all aspects info of a component, include the config and the data."
658
- }
659
- },
660
- {
661
- "__schema": "FunctionLikeSchema",
662
- "location": {
663
- "filePath": "aspect.main.runtime.ts",
664
- "line": 139,
665
- "character": 3
666
- },
667
- "name": "getAspectsOfComponentForDebugging",
668
- "signature": "(method) AspectMain.getAspectsOfComponentForDebugging(id: string | ComponentID): Promise<{\n aspects: AspectList;\n extensions: ExtensionDataList;\n beforeMerge: {\n extensions: ExtensionDataList;\n origin: ExtensionsOrigin;\n extraData: any;\n }[];\n}>",
669
- "modifiers": [
670
- "async"
671
- ],
672
- "params": [
673
- {
674
- "__schema": "ParameterSchema",
675
- "location": {
676
- "filePath": "aspect.main.runtime.ts",
677
- "line": 139,
678
- "character": 43
679
- },
680
- "name": "id",
681
- "isOptional": false,
682
- "type": {
683
- "__schema": "TypeUnionSchema",
684
- "location": {
685
- "filePath": "aspect.main.runtime.ts",
686
- "line": 139,
687
- "character": 47
688
- },
689
- "types": [
690
- {
691
- "__schema": "KeywordTypeSchema",
692
- "location": {
693
- "filePath": "aspect.main.runtime.ts",
694
- "line": 139,
695
- "character": 47
696
- },
697
- "name": "string"
698
- },
699
- {
700
- "__schema": "TypeRefSchema",
701
- "location": {
702
- "filePath": "aspect.main.runtime.ts",
703
- "line": 139,
704
- "character": 56
705
- },
706
- "name": "ComponentID",
707
- "componentId": {
708
- "scope": "teambit.component",
709
- "name": "component-id",
710
- "version": "0.0.427"
711
- }
712
- }
713
- ]
714
- }
715
- }
716
- ],
717
- "returnType": {
718
- "__schema": "InferenceTypeSchema",
719
- "location": {
720
- "filePath": "aspect.main.runtime.ts",
721
- "line": 139,
722
- "character": 3
723
- },
724
- "type": "Promise<{\n aspects: AspectList;\n extensions: ExtensionDataList;\n beforeMerge: {\n extensions: ExtensionDataList;\n origin: ExtensionsOrigin;\n extraData: any;\n }[];\n}>"
725
- },
726
- "doc": {
727
- "__schema": "DocSchema",
728
- "location": {
729
- "filePath": "aspect.main.runtime.ts",
730
- "line": 136,
731
- "character": 3
732
- },
733
- "raw": "/**\n * helps debugging why/how an aspect was set to a component\n */",
734
- "comment": "helps debugging why/how an aspect was set to a component"
735
- }
736
- },
737
- {
738
- "__schema": "FunctionLikeSchema",
739
- "location": {
740
- "filePath": "aspect.main.runtime.ts",
741
- "line": 153,
742
- "character": 3
743
- },
744
- "name": "updateAspectsToComponents",
745
- "signature": "(method) AspectMain.updateAspectsToComponents(aspectId: string, pattern?: string): Promise<{\n updated: ComponentID[];\n alreadyUpToDate: ComponentID[];\n}>",
746
- "modifiers": [
747
- "async"
748
- ],
749
- "params": [
750
- {
751
- "__schema": "ParameterSchema",
752
- "location": {
753
- "filePath": "aspect.main.runtime.ts",
754
- "line": 154,
755
- "character": 5
756
- },
757
- "name": "aspectId",
758
- "isOptional": false,
759
- "type": {
760
- "__schema": "KeywordTypeSchema",
761
- "location": {
762
- "filePath": "aspect.main.runtime.ts",
763
- "line": 154,
764
- "character": 15
765
- },
766
- "name": "string"
767
- }
768
- },
769
- {
770
- "__schema": "ParameterSchema",
771
- "location": {
772
- "filePath": "aspect.main.runtime.ts",
773
- "line": 155,
774
- "character": 5
775
- },
776
- "name": "pattern",
777
- "isOptional": true,
778
- "type": {
779
- "__schema": "KeywordTypeSchema",
780
- "location": {
781
- "filePath": "aspect.main.runtime.ts",
782
- "line": 155,
783
- "character": 15
784
- },
785
- "name": "string"
786
- }
787
- }
788
- ],
789
- "returnType": {
790
- "__schema": "TypeRefSchema",
791
- "location": {
792
- "filePath": "aspect.main.runtime.ts",
793
- "line": 156,
794
- "character": 6
795
- },
796
- "name": "Promise",
797
- "packageName": "",
798
- "typeArgs": [
799
- {
800
- "__schema": "TypeLiteralSchema",
801
- "location": {
802
- "filePath": "aspect.main.runtime.ts",
803
- "line": 156,
804
- "character": 14
805
- },
806
- "members": [
807
- {
808
- "__schema": "VariableLikeSchema",
809
- "location": {
810
- "filePath": "aspect.main.runtime.ts",
811
- "line": 156,
812
- "character": 16
813
- },
814
- "name": "updated",
815
- "signature": "(property) updated: ComponentID[]",
816
- "isOptional": false,
817
- "type": {
818
- "__schema": "TypeArraySchema",
819
- "location": {
820
- "filePath": "aspect.main.runtime.ts",
821
- "line": 156,
822
- "character": 25
823
- },
824
- "type": {
825
- "__schema": "TypeRefSchema",
826
- "location": {
827
- "filePath": "aspect.main.runtime.ts",
828
- "line": 156,
829
- "character": 25
830
- },
831
- "name": "ComponentID",
832
- "componentId": {
833
- "scope": "teambit.component",
834
- "name": "component-id",
835
- "version": "0.0.427"
836
- }
837
- }
838
- }
839
- },
840
- {
841
- "__schema": "VariableLikeSchema",
842
- "location": {
843
- "filePath": "aspect.main.runtime.ts",
844
- "line": 156,
845
- "character": 40
846
- },
847
- "name": "alreadyUpToDate",
848
- "signature": "(property) alreadyUpToDate: ComponentID[]",
849
- "isOptional": false,
850
- "type": {
851
- "__schema": "TypeArraySchema",
852
- "location": {
853
- "filePath": "aspect.main.runtime.ts",
854
- "line": 156,
855
- "character": 57
856
- },
857
- "type": {
858
- "__schema": "TypeRefSchema",
859
- "location": {
860
- "filePath": "aspect.main.runtime.ts",
861
- "line": 156,
862
- "character": 57
863
- },
864
- "name": "ComponentID",
865
- "componentId": {
866
- "scope": "teambit.component",
867
- "name": "component-id",
868
- "version": "0.0.427"
869
- }
870
- }
871
- }
872
- }
873
- ]
874
- }
875
- ]
876
- }
877
- },
878
- {
879
- "__schema": "FunctionLikeSchema",
880
- "location": {
881
- "filePath": "aspect.main.runtime.ts",
882
- "line": 194,
883
- "character": 3
884
- },
885
- "name": "overrideDependencies",
886
- "signature": "(method) AspectMain.overrideDependencies(dependencyPolicy: EnvPolicyConfigObject): EnvTransformer",
887
- "modifiers": [],
888
- "params": [
889
- {
890
- "__schema": "ParameterSchema",
891
- "location": {
892
- "filePath": "aspect.main.runtime.ts",
893
- "line": 194,
894
- "character": 24
895
- },
896
- "name": "dependencyPolicy",
897
- "isOptional": false,
898
- "type": {
899
- "__schema": "TypeRefSchema",
900
- "location": {
901
- "filePath": "aspect.main.runtime.ts",
902
- "line": 194,
903
- "character": 42
904
- },
905
- "name": "EnvPolicyConfigObject",
906
- "componentId": {
907
- "scope": "teambit.dependencies",
908
- "name": "dependency-resolver"
909
- }
910
- }
911
- }
912
- ],
913
- "returnType": {
914
- "__schema": "TypeRefSchema",
915
- "location": {
916
- "filePath": "aspect.main.runtime.ts",
917
- "line": 194,
918
- "character": 3
919
- },
920
- "name": "EnvTransformer",
921
- "componentId": {
922
- "scope": "teambit.envs",
923
- "name": "envs"
924
- }
925
- },
926
- "doc": {
927
- "__schema": "DocSchema",
928
- "location": {
929
- "filePath": "aspect.main.runtime.ts",
930
- "line": 191,
931
- "character": 3
932
- },
933
- "raw": "/**\n * override the dependency configuration of the component environment.\n */",
934
- "comment": "override the dependency configuration of the component environment."
935
- }
936
- },
937
- {
938
- "__schema": "VariableLikeSchema",
939
- "location": {
940
- "filePath": "aspect.main.runtime.ts",
941
- "line": 203,
942
- "character": 3
943
- },
944
- "name": "runtime",
945
- "signature": "(property) AspectMain.runtime: RuntimeDefinition",
946
- "isOptional": false,
947
- "type": {
948
- "__schema": "InferenceTypeSchema",
949
- "location": {
950
- "filePath": "aspect.main.runtime.ts",
951
- "line": 203,
952
- "character": 3
953
- },
954
- "type": "RuntimeDefinition"
955
- }
956
- },
957
- {
958
- "__schema": "VariableLikeSchema",
959
- "location": {
960
- "filePath": "aspect.main.runtime.ts",
961
- "line": 204,
962
- "character": 3
963
- },
964
- "name": "dependencies",
965
- "signature": "(property) AspectMain.dependencies: Aspect[]",
966
- "isOptional": false,
967
- "type": {
968
- "__schema": "InferenceTypeSchema",
969
- "location": {
970
- "filePath": "aspect.main.runtime.ts",
971
- "line": 204,
972
- "character": 3
973
- },
974
- "type": "Aspect[]"
975
- }
976
- },
977
- {
978
- "__schema": "FunctionLikeSchema",
979
- "location": {
980
- "filePath": "aspect.main.runtime.ts",
981
- "line": 216,
982
- "character": 3
983
- },
984
- "name": "provider",
985
- "signature": "(method) AspectMain.provider([react, envs, builder, aspectLoader, compiler, babel, generator, workspace, cli]: [\n ReactMain,\n EnvsMain,\n BuilderMain,\n AspectLoaderMain,\n CompilerMain,\n BabelMain,\n GeneratorMain,\n Workspace,\n CLIMain\n]): Promise<AspectMain>",
986
- "modifiers": [
987
- "static",
988
- "async"
989
- ],
990
- "params": [
991
- {
992
- "__schema": "ParameterSchema",
993
- "location": {
994
- "filePath": "aspect.main.runtime.ts",
995
- "line": 216,
996
- "character": 25
997
- },
998
- "name": "[ react, envs, builder, aspectLoader, compiler, babel, generator, workspace, cli ]",
999
- "isOptional": false,
1000
- "type": {
1001
- "__schema": "TupleTypeSchema",
1002
- "location": {
1003
- "filePath": "aspect.main.runtime.ts",
1004
- "line": 216,
1005
- "character": 107
1006
- },
1007
- "elements": [
1008
- {
1009
- "__schema": "TypeRefSchema",
1010
- "location": {
1011
- "filePath": "aspect.main.runtime.ts",
1012
- "line": 217,
1013
- "character": 5
1014
- },
1015
- "name": "ReactMain",
1016
- "componentId": {
1017
- "scope": "teambit.react",
1018
- "name": "react"
1019
- }
1020
- },
1021
- {
1022
- "__schema": "TypeRefSchema",
1023
- "location": {
1024
- "filePath": "aspect.main.runtime.ts",
1025
- "line": 218,
1026
- "character": 5
1027
- },
1028
- "name": "EnvsMain",
1029
- "componentId": {
1030
- "scope": "teambit.envs",
1031
- "name": "envs"
1032
- }
1033
- },
1034
- {
1035
- "__schema": "TypeRefSchema",
1036
- "location": {
1037
- "filePath": "aspect.main.runtime.ts",
1038
- "line": 219,
1039
- "character": 5
1040
- },
1041
- "name": "BuilderMain",
1042
- "componentId": {
1043
- "scope": "teambit.pipelines",
1044
- "name": "builder"
1045
- }
1046
- },
1047
- {
1048
- "__schema": "TypeRefSchema",
1049
- "location": {
1050
- "filePath": "aspect.main.runtime.ts",
1051
- "line": 220,
1052
- "character": 5
1053
- },
1054
- "name": "AspectLoaderMain",
1055
- "componentId": {
1056
- "scope": "teambit.harmony",
1057
- "name": "aspect-loader"
1058
- }
1059
- },
1060
- {
1061
- "__schema": "TypeRefSchema",
1062
- "location": {
1063
- "filePath": "aspect.main.runtime.ts",
1064
- "line": 221,
1065
- "character": 5
1066
- },
1067
- "name": "CompilerMain",
1068
- "componentId": {
1069
- "scope": "teambit.compilation",
1070
- "name": "compiler"
1071
- }
1072
- },
1073
- {
1074
- "__schema": "TypeRefSchema",
1075
- "location": {
1076
- "filePath": "aspect.main.runtime.ts",
1077
- "line": 222,
1078
- "character": 5
1079
- },
1080
- "name": "BabelMain",
1081
- "componentId": {
1082
- "scope": "teambit.compilation",
1083
- "name": "babel"
1084
- }
1085
- },
1086
- {
1087
- "__schema": "TypeRefSchema",
1088
- "location": {
1089
- "filePath": "aspect.main.runtime.ts",
1090
- "line": 223,
1091
- "character": 5
1092
- },
1093
- "name": "GeneratorMain",
1094
- "componentId": {
1095
- "scope": "teambit.generator",
1096
- "name": "generator"
1097
- }
1098
- },
1099
- {
1100
- "__schema": "TypeRefSchema",
1101
- "location": {
1102
- "filePath": "aspect.main.runtime.ts",
1103
- "line": 224,
1104
- "character": 5
1105
- },
1106
- "name": "Workspace",
1107
- "componentId": {
1108
- "scope": "teambit.workspace",
1109
- "name": "workspace"
1110
- }
1111
- },
1112
- {
1113
- "__schema": "TypeRefSchema",
1114
- "location": {
1115
- "filePath": "aspect.main.runtime.ts",
1116
- "line": 225,
1117
- "character": 5
1118
- },
1119
- "name": "CLIMain",
1120
- "componentId": {
1121
- "scope": "teambit.harmony",
1122
- "name": "cli"
1123
- }
1124
- }
1125
- ]
1126
- }
1127
- }
1128
- ],
1129
- "returnType": {
1130
- "__schema": "InferenceTypeSchema",
1131
- "location": {
1132
- "filePath": "aspect.main.runtime.ts",
1133
- "line": 216,
1134
- "character": 3
1135
- },
1136
- "type": "Promise<AspectMain>"
1137
- }
1138
- }
1139
- ]
1140
- },
1141
- {
1142
- "__schema": "VariableLikeSchema",
1143
- "location": {
1144
- "filePath": "aspect.aspect.ts",
1145
- "line": 3,
1146
- "character": 14
1147
- },
1148
- "name": "AspectAspect",
1149
- "signature": "const AspectAspect: Aspect",
1150
- "isOptional": false,
1151
- "type": {
1152
- "__schema": "TypeRefSchema",
1153
- "location": {
1154
- "filePath": "aspect.aspect.ts",
1155
- "line": 3,
1156
- "character": 14
1157
- },
1158
- "name": "Aspect",
1159
- "componentId": {
1160
- "scope": "teambit.harmony",
1161
- "name": "harmony",
1162
- "version": "0.4.6"
1163
- }
1164
- }
1165
- },
1166
- {
1167
- "__schema": "VariableLikeSchema",
1168
- "location": {
1169
- "filePath": "aspect.aspect.ts",
1170
- "line": 3,
1171
- "character": 14
1172
- },
1173
- "name": "AspectAspect",
1174
- "signature": "const AspectAspect: Aspect",
1175
- "isOptional": false,
1176
- "type": {
1177
- "__schema": "TypeRefSchema",
1178
- "location": {
1179
- "filePath": "aspect.aspect.ts",
1180
- "line": 3,
1181
- "character": 14
1182
- },
1183
- "name": "Aspect",
1184
- "componentId": {
1185
- "scope": "teambit.harmony",
1186
- "name": "harmony",
1187
- "version": "0.4.6"
1188
- }
1189
- }
1190
- },
1191
- {
1192
- "__schema": "ClassSchema",
1193
- "name": "AspectEnv",
1194
- "location": {
1195
- "filePath": "aspect.env.ts",
1196
- "line": 22,
1197
- "character": 1
1198
- },
1199
- "signature": "class AspectEnv",
1200
- "extendsNodes": [],
1201
- "implementNodes": [
1202
- {
1203
- "__schema": "ExpressionWithTypeArgumentsSchema",
1204
- "name": "implements DependenciesEnv, PackageEnv, PreviewEnv",
1205
- "location": {
1206
- "filePath": "aspect.env.ts",
1207
- "line": 22,
1208
- "character": 35
1209
- },
1210
- "typeArgs": [],
1211
- "expression": {
1212
- "__schema": "TypeRefSchema",
1213
- "location": {
1214
- "filePath": "aspect.env.ts",
1215
- "line": 22,
1216
- "character": 35
1217
- },
1218
- "name": "DependenciesEnv",
1219
- "componentId": {
1220
- "scope": "teambit.harmony",
1221
- "name": "aspect",
1222
- "version": "0.0.1048"
1223
- }
1224
- }
1225
- },
1226
- {
1227
- "__schema": "ExpressionWithTypeArgumentsSchema",
1228
- "name": "implements DependenciesEnv, PackageEnv, PreviewEnv",
1229
- "location": {
1230
- "filePath": "aspect.env.ts",
1231
- "line": 22,
1232
- "character": 52
1233
- },
1234
- "typeArgs": [],
1235
- "expression": {
1236
- "__schema": "TypeRefSchema",
1237
- "location": {
1238
- "filePath": "aspect.env.ts",
1239
- "line": 22,
1240
- "character": 52
1241
- },
1242
- "name": "PackageEnv",
1243
- "componentId": {
1244
- "scope": "teambit.harmony",
1245
- "name": "aspect",
1246
- "version": "0.0.1048"
1247
- }
1248
- }
1249
- },
1250
- {
1251
- "__schema": "ExpressionWithTypeArgumentsSchema",
1252
- "name": "implements DependenciesEnv, PackageEnv, PreviewEnv",
1253
- "location": {
1254
- "filePath": "aspect.env.ts",
1255
- "line": 22,
1256
- "character": 64
1257
- },
1258
- "typeArgs": [],
1259
- "expression": {
1260
- "__schema": "TypeRefSchema",
1261
- "location": {
1262
- "filePath": "aspect.env.ts",
1263
- "line": 22,
1264
- "character": 64
1265
- },
1266
- "name": "PreviewEnv",
1267
- "componentId": {
1268
- "scope": "teambit.harmony",
1269
- "name": "aspect",
1270
- "version": "0.0.1048"
1271
- }
1272
- }
1273
- }
1274
- ],
1275
- "members": [
1276
- {
1277
- "__schema": "ConstructorSchema",
1278
- "location": {
1279
- "filePath": "aspect.env.ts",
1280
- "line": 23,
1281
- "character": 3
1282
- },
1283
- "name": "constructor",
1284
- "signature": "constructor AspectEnv(reactEnv: ReactEnv, aspectLoader: AspectLoaderMain): AspectEnv",
1285
- "modifiers": [],
1286
- "params": [
1287
- {
1288
- "__schema": "ParameterSchema",
1289
- "location": {
1290
- "filePath": "aspect.env.ts",
1291
- "line": 23,
1292
- "character": 15
1293
- },
1294
- "name": "reactEnv",
1295
- "isOptional": false,
1296
- "type": {
1297
- "__schema": "TypeRefSchema",
1298
- "location": {
1299
- "filePath": "aspect.env.ts",
1300
- "line": 23,
1301
- "character": 33
1302
- },
1303
- "name": "ReactEnv",
1304
- "componentId": {
1305
- "scope": "teambit.react",
1306
- "name": "react"
1307
- }
1308
- }
1309
- },
1310
- {
1311
- "__schema": "ParameterSchema",
1312
- "location": {
1313
- "filePath": "aspect.env.ts",
1314
- "line": 23,
1315
- "character": 43
1316
- },
1317
- "name": "aspectLoader",
1318
- "isOptional": false,
1319
- "type": {
1320
- "__schema": "TypeRefSchema",
1321
- "location": {
1322
- "filePath": "aspect.env.ts",
1323
- "line": 23,
1324
- "character": 65
1325
- },
1326
- "name": "AspectLoaderMain",
1327
- "componentId": {
1328
- "scope": "teambit.harmony",
1329
- "name": "aspect-loader"
1330
- }
1331
- }
1332
- }
1333
- ],
1334
- "returnType": {
1335
- "__schema": "ThisTypeSchema",
1336
- "location": {
1337
- "filePath": "aspect.env.ts",
1338
- "line": 22,
1339
- "character": 1
1340
- }
1341
- }
1342
- },
1343
- {
1344
- "__schema": "VariableLikeSchema",
1345
- "location": {
1346
- "filePath": "aspect.env.ts",
1347
- "line": 25,
1348
- "character": 3
1349
- },
1350
- "name": "icon",
1351
- "signature": "(property) AspectEnv.icon: string",
1352
- "isOptional": false,
1353
- "type": {
1354
- "__schema": "InferenceTypeSchema",
1355
- "location": {
1356
- "filePath": "aspect.env.ts",
1357
- "line": 25,
1358
- "character": 3
1359
- },
1360
- "type": "string"
1361
- }
1362
- },
1363
- {
1364
- "__schema": "FunctionLikeSchema",
1365
- "location": {
1366
- "filePath": "aspect.env.ts",
1367
- "line": 27,
1368
- "character": 3
1369
- },
1370
- "name": "__getDescriptor",
1371
- "signature": "(method) AspectEnv.__getDescriptor(): Promise<{\n type: string;\n}>",
1372
- "modifiers": [
1373
- "async"
1374
- ],
1375
- "params": [],
1376
- "returnType": {
1377
- "__schema": "InferenceTypeSchema",
1378
- "location": {
1379
- "filePath": "aspect.env.ts",
1380
- "line": 27,
1381
- "character": 3
1382
- },
1383
- "type": "Promise<{\n type: string;\n}>"
1384
- }
1385
- },
1386
- {
1387
- "__schema": "FunctionLikeSchema",
1388
- "location": {
1389
- "filePath": "aspect.env.ts",
1390
- "line": 33,
1391
- "character": 3
1392
- },
1393
- "name": "getTsConfig",
1394
- "signature": "(method) AspectEnv.getTsConfig(tsConfig: TsConfigSourceFile): any",
1395
- "modifiers": [],
1396
- "params": [
1397
- {
1398
- "__schema": "ParameterSchema",
1399
- "location": {
1400
- "filePath": "aspect.env.ts",
1401
- "line": 33,
1402
- "character": 15
1403
- },
1404
- "name": "tsConfig",
1405
- "isOptional": false,
1406
- "type": {
1407
- "__schema": "TypeRefSchema",
1408
- "location": {
1409
- "filePath": "aspect.env.ts",
1410
- "line": 33,
1411
- "character": 25
1412
- },
1413
- "name": "TsConfigSourceFile",
1414
- "packageName": "typescript"
1415
- }
1416
- }
1417
- ],
1418
- "returnType": {
1419
- "__schema": "InferenceTypeSchema",
1420
- "location": {
1421
- "filePath": "aspect.env.ts",
1422
- "line": 33,
1423
- "character": 3
1424
- },
1425
- "type": "any"
1426
- }
1427
- },
1428
- {
1429
- "__schema": "FunctionLikeSchema",
1430
- "location": {
1431
- "filePath": "aspect.env.ts",
1432
- "line": 40,
1433
- "character": 3
1434
- },
1435
- "name": "createTsCompiler",
1436
- "signature": "(method) AspectEnv.createTsCompiler(tsConfig: TsConfigSourceFile): Compiler",
1437
- "modifiers": [],
1438
- "params": [
1439
- {
1440
- "__schema": "ParameterSchema",
1441
- "location": {
1442
- "filePath": "aspect.env.ts",
1443
- "line": 40,
1444
- "character": 20
1445
- },
1446
- "name": "tsConfig",
1447
- "isOptional": false,
1448
- "type": {
1449
- "__schema": "TypeRefSchema",
1450
- "location": {
1451
- "filePath": "aspect.env.ts",
1452
- "line": 40,
1453
- "character": 30
1454
- },
1455
- "name": "TsConfigSourceFile",
1456
- "packageName": "typescript"
1457
- }
1458
- }
1459
- ],
1460
- "returnType": {
1461
- "__schema": "TypeRefSchema",
1462
- "location": {
1463
- "filePath": "aspect.env.ts",
1464
- "line": 40,
1465
- "character": 3
1466
- },
1467
- "name": "Compiler",
1468
- "componentId": {
1469
- "scope": "teambit.compilation",
1470
- "name": "compiler"
1471
- }
1472
- }
1473
- },
1474
- {
1475
- "__schema": "FunctionLikeSchema",
1476
- "location": {
1477
- "filePath": "aspect.env.ts",
1478
- "line": 47,
1479
- "character": 3
1480
- },
1481
- "name": "getTester",
1482
- "signature": "(method) AspectEnv.getTester(jestConfigPath: string, jestModulePath?: string): Tester",
1483
- "modifiers": [],
1484
- "params": [
1485
- {
1486
- "__schema": "ParameterSchema",
1487
- "location": {
1488
- "filePath": "aspect.env.ts",
1489
- "line": 47,
1490
- "character": 13
1491
- },
1492
- "name": "jestConfigPath",
1493
- "isOptional": false,
1494
- "type": {
1495
- "__schema": "KeywordTypeSchema",
1496
- "location": {
1497
- "filePath": "aspect.env.ts",
1498
- "line": 47,
1499
- "character": 29
1500
- },
1501
- "name": "string"
1502
- }
1503
- },
1504
- {
1505
- "__schema": "ParameterSchema",
1506
- "location": {
1507
- "filePath": "aspect.env.ts",
1508
- "line": 47,
1509
- "character": 37
1510
- },
1511
- "name": "jestModulePath",
1512
- "isOptional": true,
1513
- "type": {
1514
- "__schema": "KeywordTypeSchema",
1515
- "location": {
1516
- "filePath": "aspect.env.ts",
1517
- "line": 47,
1518
- "character": 54
1519
- },
1520
- "name": "string"
1521
- }
1522
- }
1523
- ],
1524
- "returnType": {
1525
- "__schema": "TypeRefSchema",
1526
- "location": {
1527
- "filePath": "aspect.env.ts",
1528
- "line": 47,
1529
- "character": 3
1530
- },
1531
- "name": "Tester",
1532
- "componentId": {
1533
- "scope": "teambit.defender",
1534
- "name": "tester"
1535
- }
1536
- },
1537
- "doc": {
1538
- "__schema": "DocSchema",
1539
- "location": {
1540
- "filePath": "aspect.env.ts",
1541
- "line": 44,
1542
- "character": 3
1543
- },
1544
- "raw": "/**\n * returns a component tester.\n */",
1545
- "comment": "returns a component tester."
1546
- }
1547
- },
1548
- {
1549
- "__schema": "FunctionLikeSchema",
1550
- "location": {
1551
- "filePath": "aspect.env.ts",
1552
- "line": 52,
1553
- "character": 3
1554
- },
1555
- "name": "getTemplateBundler",
1556
- "signature": "(method) AspectEnv.getTemplateBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[]): Promise<Bundler>",
1557
- "modifiers": [
1558
- "async"
1559
- ],
1560
- "params": [
1561
- {
1562
- "__schema": "ParameterSchema",
1563
- "location": {
1564
- "filePath": "aspect.env.ts",
1565
- "line": 52,
1566
- "character": 28
1567
- },
1568
- "name": "context",
1569
- "isOptional": false,
1570
- "type": {
1571
- "__schema": "TypeRefSchema",
1572
- "location": {
1573
- "filePath": "aspect.env.ts",
1574
- "line": 52,
1575
- "character": 37
1576
- },
1577
- "name": "BundlerContext",
1578
- "componentId": {
1579
- "scope": "teambit.compilation",
1580
- "name": "bundler"
1581
- }
1582
- }
1583
- },
1584
- {
1585
- "__schema": "ParameterSchema",
1586
- "location": {
1587
- "filePath": "aspect.env.ts",
1588
- "line": 52,
1589
- "character": 53
1590
- },
1591
- "name": "transformers",
1592
- "isOptional": false,
1593
- "defaultValue": "[]",
1594
- "type": {
1595
- "__schema": "TypeArraySchema",
1596
- "location": {
1597
- "filePath": "aspect.env.ts",
1598
- "line": 52,
1599
- "character": 67
1600
- },
1601
- "type": {
1602
- "__schema": "TypeRefSchema",
1603
- "location": {
1604
- "filePath": "aspect.env.ts",
1605
- "line": 52,
1606
- "character": 67
1607
- },
1608
- "name": "WebpackConfigTransformer",
1609
- "componentId": {
1610
- "scope": "teambit.webpack",
1611
- "name": "webpack"
1612
- }
1613
- }
1614
- }
1615
- }
1616
- ],
1617
- "returnType": {
1618
- "__schema": "TypeRefSchema",
1619
- "location": {
1620
- "filePath": "aspect.env.ts",
1621
- "line": 52,
1622
- "character": 101
1623
- },
1624
- "name": "Promise",
1625
- "packageName": "",
1626
- "typeArgs": [
1627
- {
1628
- "__schema": "TypeRefSchema",
1629
- "location": {
1630
- "filePath": "aspect.env.ts",
1631
- "line": 52,
1632
- "character": 109
1633
- },
1634
- "name": "Bundler",
1635
- "componentId": {
1636
- "scope": "teambit.compilation",
1637
- "name": "bundler"
1638
- }
1639
- }
1640
- ]
1641
- }
1642
- },
1643
- {
1644
- "__schema": "FunctionLikeSchema",
1645
- "location": {
1646
- "filePath": "aspect.env.ts",
1647
- "line": 56,
1648
- "character": 3
1649
- },
1650
- "name": "createTemplateWebpackBundler",
1651
- "signature": "(method) AspectEnv.createTemplateWebpackBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[]): Promise<Bundler>",
1652
- "modifiers": [
1653
- "async"
1654
- ],
1655
- "params": [
1656
- {
1657
- "__schema": "ParameterSchema",
1658
- "location": {
1659
- "filePath": "aspect.env.ts",
1660
- "line": 57,
1661
- "character": 5
1662
- },
1663
- "name": "context",
1664
- "isOptional": false,
1665
- "type": {
1666
- "__schema": "TypeRefSchema",
1667
- "location": {
1668
- "filePath": "aspect.env.ts",
1669
- "line": 57,
1670
- "character": 14
1671
- },
1672
- "name": "BundlerContext",
1673
- "componentId": {
1674
- "scope": "teambit.compilation",
1675
- "name": "bundler"
1676
- }
1677
- }
1678
- },
1679
- {
1680
- "__schema": "ParameterSchema",
1681
- "location": {
1682
- "filePath": "aspect.env.ts",
1683
- "line": 58,
1684
- "character": 5
1685
- },
1686
- "name": "transformers",
1687
- "isOptional": false,
1688
- "defaultValue": "[]",
1689
- "type": {
1690
- "__schema": "TypeArraySchema",
1691
- "location": {
1692
- "filePath": "aspect.env.ts",
1693
- "line": 58,
1694
- "character": 19
1695
- },
1696
- "type": {
1697
- "__schema": "TypeRefSchema",
1698
- "location": {
1699
- "filePath": "aspect.env.ts",
1700
- "line": 58,
1701
- "character": 19
1702
- },
1703
- "name": "WebpackConfigTransformer",
1704
- "componentId": {
1705
- "scope": "teambit.webpack",
1706
- "name": "webpack"
1707
- }
1708
- }
1709
- }
1710
- }
1711
- ],
1712
- "returnType": {
1713
- "__schema": "TypeRefSchema",
1714
- "location": {
1715
- "filePath": "aspect.env.ts",
1716
- "line": 59,
1717
- "character": 6
1718
- },
1719
- "name": "Promise",
1720
- "packageName": "",
1721
- "typeArgs": [
1722
- {
1723
- "__schema": "TypeRefSchema",
1724
- "location": {
1725
- "filePath": "aspect.env.ts",
1726
- "line": 59,
1727
- "character": 14
1728
- },
1729
- "name": "Bundler",
1730
- "componentId": {
1731
- "scope": "teambit.compilation",
1732
- "name": "bundler"
1733
- }
1734
- }
1735
- ]
1736
- }
1737
- },
1738
- {
1739
- "__schema": "FunctionLikeSchema",
1740
- "location": {
1741
- "filePath": "aspect.env.ts",
1742
- "line": 63,
1743
- "character": 3
1744
- },
1745
- "name": "getPackageJsonProps",
1746
- "signature": "(method) AspectEnv.getPackageJsonProps(): PackageJsonProps",
1747
- "modifiers": [],
1748
- "params": [],
1749
- "returnType": {
1750
- "__schema": "TypeRefSchema",
1751
- "location": {
1752
- "filePath": "aspect.env.ts",
1753
- "line": 63,
1754
- "character": 3
1755
- },
1756
- "name": "PackageJsonProps",
1757
- "componentId": {
1758
- "scope": "teambit.pkg",
1759
- "name": "pkg"
1760
- }
1761
- }
1762
- },
1763
- {
1764
- "__schema": "FunctionLikeSchema",
1765
- "location": {
1766
- "filePath": "aspect.env.ts",
1767
- "line": 67,
1768
- "character": 3
1769
- },
1770
- "name": "getNpmIgnore",
1771
- "signature": "(method) AspectEnv.getNpmIgnore(context?: GetNpmIgnoreContext): string[]",
1772
- "modifiers": [],
1773
- "params": [
1774
- {
1775
- "__schema": "ParameterSchema",
1776
- "location": {
1777
- "filePath": "aspect.env.ts",
1778
- "line": 67,
1779
- "character": 16
1780
- },
1781
- "name": "context",
1782
- "isOptional": true,
1783
- "type": {
1784
- "__schema": "TypeRefSchema",
1785
- "location": {
1786
- "filePath": "aspect.env.ts",
1787
- "line": 67,
1788
- "character": 26
1789
- },
1790
- "name": "GetNpmIgnoreContext",
1791
- "componentId": {
1792
- "scope": "teambit.envs",
1793
- "name": "envs"
1794
- }
1795
- }
1796
- }
1797
- ],
1798
- "returnType": {
1799
- "__schema": "TypeRefSchema",
1800
- "location": {
1801
- "filePath": "aspect.env.ts",
1802
- "line": 67,
1803
- "character": 3
1804
- },
1805
- "name": "string[]",
1806
- "packageName": ""
1807
- }
1808
- },
1809
- {
1810
- "__schema": "FunctionLikeSchema",
1811
- "location": {
1812
- "filePath": "aspect.env.ts",
1813
- "line": 84,
1814
- "character": 3
1815
- },
1816
- "name": "getPreviewConfig",
1817
- "signature": "(method) AspectEnv.getPreviewConfig(): {\n strategyName: PreviewStrategyName;\n splitComponentBundle: boolean;\n}",
1818
- "modifiers": [],
1819
- "params": [],
1820
- "returnType": {
1821
- "__schema": "InferenceTypeSchema",
1822
- "location": {
1823
- "filePath": "aspect.env.ts",
1824
- "line": 84,
1825
- "character": 3
1826
- },
1827
- "type": "{\n strategyName: PreviewStrategyName;\n splitComponentBundle: boolean;\n}"
1828
- }
1829
- },
1830
- {
1831
- "__schema": "FunctionLikeSchema",
1832
- "location": {
1833
- "filePath": "aspect.env.ts",
1834
- "line": 91,
1835
- "character": 3
1836
- },
1837
- "name": "getDependencies",
1838
- "signature": "(method) AspectEnv.getDependencies(): Promise<{\n dependencies: {\n react: string;\n 'react-dom': string;\n 'core-js': string;\n '@babel/runtime': string;\n };\n devDependencies: {\n react: string;\n 'react-dom': string;\n '@types/mocha': string;\n '@types/node': string;\n '@types/react': string;\n '@types/react-dom': string;\n '@types/jest': string;\n '@types/testing-library__jest-dom': string;\n };\n peerDependencies: {\n ...;\n };\n}>",
1839
- "modifiers": [
1840
- "async"
1841
- ],
1842
- "params": [],
1843
- "returnType": {
1844
- "__schema": "InferenceTypeSchema",
1845
- "location": {
1846
- "filePath": "aspect.env.ts",
1847
- "line": 91,
1848
- "character": 3
1849
- },
1850
- "type": "Promise<{\n dependencies: {\n react: string;\n 'react-dom': string;\n 'core-js': string;\n '@babel/runtime': string;\n };\n devDependencies: {\n react: string;\n 'react-dom': string;\n '@types/mocha': string;\n '@types/node': string;\n '@types/react': string;\n '@types/react-dom': string;\n '@types/jest': string;\n '@types/testing-library__jest-dom': string;\n };\n peerDependencies: {\n ...;\n };\n}>"
1851
- }
1852
- }
1853
- ],
1854
- "doc": {
1855
- "__schema": "DocSchema",
1856
- "location": {
1857
- "filePath": "aspect.env.ts",
1858
- "line": 19,
1859
- "character": 1
1860
- },
1861
- "raw": "/**\n * a component environment built for Aspects .\n */",
1862
- "comment": "a component environment built for Aspects ."
1863
- }
1864
- }
1865
- ],
1866
- "internals": []
1867
- },
1868
- "internals": [
1869
- {
1870
- "__schema": "ModuleSchema",
1871
- "location": {
1872
- "filePath": "aspect.main.runtime.ts",
1873
- "line": 1,
1874
- "character": 1
1875
- },
1876
- "exports": [
1877
- {
1878
- "__schema": "TypeSchema",
1879
- "location": {
1880
- "filePath": "aspect.main.runtime.ts",
1881
- "line": 31,
1882
- "character": 1
1883
- },
1884
- "name": "AspectSource",
1885
- "signature": "type AspectSource = {\n aspectName: string;\n source: string;\n level: string;\n}",
1886
- "type": {
1887
- "__schema": "TypeLiteralSchema",
1888
- "location": {
1889
- "filePath": "aspect.main.runtime.ts",
1890
- "line": 31,
1891
- "character": 28
1892
- },
1893
- "members": [
1894
- {
1895
- "__schema": "VariableLikeSchema",
1896
- "location": {
1897
- "filePath": "aspect.main.runtime.ts",
1898
- "line": 31,
1899
- "character": 30
1900
- },
1901
- "name": "aspectName",
1902
- "signature": "(property) aspectName: string",
1903
- "isOptional": false,
1904
- "type": {
1905
- "__schema": "KeywordTypeSchema",
1906
- "location": {
1907
- "filePath": "aspect.main.runtime.ts",
1908
- "line": 31,
1909
- "character": 42
1910
- },
1911
- "name": "string"
1912
- }
1913
- },
1914
- {
1915
- "__schema": "VariableLikeSchema",
1916
- "location": {
1917
- "filePath": "aspect.main.runtime.ts",
1918
- "line": 31,
1919
- "character": 50
1920
- },
1921
- "name": "source",
1922
- "signature": "(property) source: string",
1923
- "isOptional": false,
1924
- "type": {
1925
- "__schema": "KeywordTypeSchema",
1926
- "location": {
1927
- "filePath": "aspect.main.runtime.ts",
1928
- "line": 31,
1929
- "character": 58
1930
- },
1931
- "name": "string"
1932
- }
1933
- },
1934
- {
1935
- "__schema": "VariableLikeSchema",
1936
- "location": {
1937
- "filePath": "aspect.main.runtime.ts",
1938
- "line": 31,
1939
- "character": 66
1940
- },
1941
- "name": "level",
1942
- "signature": "(property) level: string",
1943
- "isOptional": false,
1944
- "type": {
1945
- "__schema": "KeywordTypeSchema",
1946
- "location": {
1947
- "filePath": "aspect.main.runtime.ts",
1948
- "line": 31,
1949
- "character": 73
1950
- },
1951
- "name": "string"
1952
- }
1953
- }
1954
- ]
1955
- }
1956
- },
1957
- {
1958
- "__schema": "ClassSchema",
1959
- "name": "AspectMain",
1960
- "location": {
1961
- "filePath": "aspect.main.runtime.ts",
1962
- "line": 35,
1963
- "character": 1
1964
- },
1965
- "signature": "class AspectMain",
1966
- "extendsNodes": [],
1967
- "implementNodes": [],
1968
- "members": [
1969
- {
1970
- "__schema": "ConstructorSchema",
1971
- "location": {
1972
- "filePath": "aspect.main.runtime.ts",
1973
- "line": 36,
1974
- "character": 3
1975
- },
1976
- "name": "constructor",
1977
- "signature": "constructor AspectMain(aspectEnv: AspectEnv, envs: EnvsMain, workspace: Workspace): AspectMain",
1978
- "modifiers": [],
1979
- "params": [
1980
- {
1981
- "__schema": "ParameterSchema",
1982
- "location": {
1983
- "filePath": "aspect.main.runtime.ts",
1984
- "line": 36,
1985
- "character": 15
1986
- },
1987
- "name": "aspectEnv",
1988
- "isOptional": false,
1989
- "type": {
1990
- "__schema": "TypeRefSchema",
1991
- "location": {
1992
- "filePath": "aspect.main.runtime.ts",
1993
- "line": 36,
1994
- "character": 35
1995
- },
1996
- "name": "AspectEnv"
1997
- }
1998
- },
1999
- {
2000
- "__schema": "ParameterSchema",
2001
- "location": {
2002
- "filePath": "aspect.main.runtime.ts",
2003
- "line": 36,
2004
- "character": 46
2005
- },
2006
- "name": "envs",
2007
- "isOptional": false,
2008
- "type": {
2009
- "__schema": "TypeRefSchema",
2010
- "location": {
2011
- "filePath": "aspect.main.runtime.ts",
2012
- "line": 36,
2013
- "character": 60
2014
- },
2015
- "name": "EnvsMain",
2016
- "componentId": {
2017
- "scope": "teambit.envs",
2018
- "name": "envs"
2019
- }
2020
- }
2021
- },
2022
- {
2023
- "__schema": "ParameterSchema",
2024
- "location": {
2025
- "filePath": "aspect.main.runtime.ts",
2026
- "line": 36,
2027
- "character": 70
2028
- },
2029
- "name": "workspace",
2030
- "isOptional": false,
2031
- "type": {
2032
- "__schema": "TypeRefSchema",
2033
- "location": {
2034
- "filePath": "aspect.main.runtime.ts",
2035
- "line": 36,
2036
- "character": 89
2037
- },
2038
- "name": "Workspace",
2039
- "componentId": {
2040
- "scope": "teambit.workspace",
2041
- "name": "workspace"
2042
- }
2043
- }
2044
- }
2045
- ],
2046
- "returnType": {
2047
- "__schema": "ThisTypeSchema",
2048
- "location": {
2049
- "filePath": "aspect.main.runtime.ts",
2050
- "line": 35,
2051
- "character": 1
2052
- }
2053
- }
2054
- },
2055
- {
2056
- "__schema": "FunctionLikeSchema",
2057
- "location": {
2058
- "filePath": "aspect.main.runtime.ts",
2059
- "line": 41,
2060
- "character": 3
2061
- },
2062
- "name": "compose",
2063
- "signature": "(method) AspectMain.compose(transformers?: EnvTransformer[], targetEnv?: Environment): Environment",
2064
- "modifiers": [],
2065
- "params": [
2066
- {
2067
- "__schema": "ParameterSchema",
2068
- "location": {
2069
- "filePath": "aspect.main.runtime.ts",
2070
- "line": 41,
2071
- "character": 11
2072
- },
2073
- "name": "transformers",
2074
- "isOptional": false,
2075
- "defaultValue": "[]",
2076
- "type": {
2077
- "__schema": "TypeArraySchema",
2078
- "location": {
2079
- "filePath": "aspect.main.runtime.ts",
2080
- "line": 41,
2081
- "character": 25
2082
- },
2083
- "type": {
2084
- "__schema": "TypeRefSchema",
2085
- "location": {
2086
- "filePath": "aspect.main.runtime.ts",
2087
- "line": 41,
2088
- "character": 25
2089
- },
2090
- "name": "EnvTransformer",
2091
- "componentId": {
2092
- "scope": "teambit.envs",
2093
- "name": "envs"
2094
- }
2095
- }
2096
- }
2097
- },
2098
- {
2099
- "__schema": "ParameterSchema",
2100
- "location": {
2101
- "filePath": "aspect.main.runtime.ts",
2102
- "line": 41,
2103
- "character": 48
2104
- },
2105
- "name": "targetEnv",
2106
- "isOptional": false,
2107
- "defaultValue": "{}",
2108
- "type": {
2109
- "__schema": "TypeRefSchema",
2110
- "location": {
2111
- "filePath": "aspect.main.runtime.ts",
2112
- "line": 41,
2113
- "character": 59
2114
- },
2115
- "name": "Environment",
2116
- "componentId": {
2117
- "scope": "teambit.envs",
2118
- "name": "envs"
2119
- }
2120
- }
2121
- }
2122
- ],
2123
- "returnType": {
2124
- "__schema": "TypeRefSchema",
2125
- "location": {
2126
- "filePath": "aspect.main.runtime.ts",
2127
- "line": 41,
2128
- "character": 3
2129
- },
2130
- "name": "Environment",
2131
- "componentId": {
2132
- "scope": "teambit.envs",
2133
- "name": "envs"
2134
- }
2135
- },
2136
- "doc": {
2137
- "__schema": "DocSchema",
2138
- "location": {
2139
- "filePath": "aspect.main.runtime.ts",
2140
- "line": 38,
2141
- "character": 3
2142
- },
2143
- "raw": "/**\n * compose your own aspect environment.\n */",
2144
- "comment": "compose your own aspect environment."
2145
- }
2146
- },
2147
- {
2148
- "__schema": "FunctionLikeSchema",
2149
- "location": {
2150
- "filePath": "aspect.main.runtime.ts",
2151
- "line": 45,
2152
- "character": 3
2153
- },
2154
- "name": "listAspectsOfComponent",
2155
- "signature": "(method) AspectMain.listAspectsOfComponent(pattern?: string): Promise<{\n [component: string]: AspectSource[];\n}>",
2156
- "modifiers": [
2157
- "async"
2158
- ],
2159
- "params": [
2160
- {
2161
- "__schema": "ParameterSchema",
2162
- "location": {
2163
- "filePath": "aspect.main.runtime.ts",
2164
- "line": 45,
2165
- "character": 32
2166
- },
2167
- "name": "pattern",
2168
- "isOptional": true,
2169
- "type": {
2170
- "__schema": "KeywordTypeSchema",
2171
- "location": {
2172
- "filePath": "aspect.main.runtime.ts",
2173
- "line": 45,
2174
- "character": 42
2175
- },
2176
- "name": "string"
2177
- }
2178
- }
2179
- ],
2180
- "returnType": {
2181
- "__schema": "TypeRefSchema",
2182
- "location": {
2183
- "filePath": "aspect.main.runtime.ts",
2184
- "line": 45,
2185
- "character": 51
2186
- },
2187
- "name": "Promise",
2188
- "packageName": "",
2189
- "typeArgs": [
2190
- {
2191
- "__schema": "TypeLiteralSchema",
2192
- "location": {
2193
- "filePath": "aspect.main.runtime.ts",
2194
- "line": 45,
2195
- "character": 59
2196
- },
2197
- "members": [
2198
- {
2199
- "__schema": "FunctionLikeSchema",
2200
- "location": {
2201
- "filePath": "aspect.main.runtime.ts",
2202
- "line": 45,
2203
- "character": 61
2204
- },
2205
- "name": "",
2206
- "signature": "",
2207
- "modifiers": [],
2208
- "params": [
2209
- {
2210
- "__schema": "ParameterSchema",
2211
- "location": {
2212
- "filePath": "aspect.main.runtime.ts",
2213
- "line": 45,
2214
- "character": 62
2215
- },
2216
- "name": "component",
2217
- "isOptional": false,
2218
- "type": {
2219
- "__schema": "KeywordTypeSchema",
2220
- "location": {
2221
- "filePath": "aspect.main.runtime.ts",
2222
- "line": 45,
2223
- "character": 73
2224
- },
2225
- "name": "string"
2226
- }
2227
- }
2228
- ],
2229
- "returnType": {
2230
- "__schema": "TypeArraySchema",
2231
- "location": {
2232
- "filePath": "aspect.main.runtime.ts",
2233
- "line": 45,
2234
- "character": 82
2235
- },
2236
- "type": {
2237
- "__schema": "TypeRefSchema",
2238
- "location": {
2239
- "filePath": "aspect.main.runtime.ts",
2240
- "line": 45,
2241
- "character": 82
2242
- },
2243
- "name": "AspectSource",
2244
- "internalFilePath": "aspect.main.runtime.ts"
2245
- }
2246
- }
2247
- }
2248
- ]
2249
- }
2250
- ]
2251
- }
2252
- },
2253
- {
2254
- "__schema": "GetAccessorSchema",
2255
- "location": {
2256
- "filePath": "aspect.main.runtime.ts",
2257
- "line": 61,
2258
- "character": 3
2259
- },
2260
- "name": "babelConfig",
2261
- "signature": "(getter) AspectMain.babelConfig: {\n presets: (string | (string | {\n targets: {\n node: number;\n };\n useBuiltIns: string;\n corejs: number;\n })[])[];\n plugins: (string | (string | {\n lazy: () => boolean;\n })[] | (string | {\n legacy: boolean;\n })[])[];\n sourceMaps: boolean;\n}",
2262
- "type": {
2263
- "__schema": "InferenceTypeSchema",
2264
- "location": {
2265
- "filePath": "aspect.main.runtime.ts",
2266
- "line": 61,
2267
- "character": 3
2268
- },
2269
- "type": "{\n presets: (string | (string | {\n targets: {\n node: number;\n };\n useBuiltIns: string;\n corejs: number;\n })[])[];\n plugins: (string | (string | {\n lazy: () => boolean;\n })[] | (string | {\n legacy: boolean;\n })[])[];\n sourceMaps: boolean;\n}"
2270
- }
2271
- },
2272
- {
2273
- "__schema": "FunctionLikeSchema",
2274
- "location": {
2275
- "filePath": "aspect.main.runtime.ts",
2276
- "line": 91,
2277
- "character": 3
2278
- },
2279
- "name": "setAspectsToComponents",
2280
- "signature": "(method) AspectMain.setAspectsToComponents(pattern: string, aspectId: string, config?: Record<string, any>, options?: SetAspectOptions): Promise<ComponentID[]>",
2281
- "modifiers": [
2282
- "async"
2283
- ],
2284
- "params": [
2285
- {
2286
- "__schema": "ParameterSchema",
2287
- "location": {
2288
- "filePath": "aspect.main.runtime.ts",
2289
- "line": 92,
2290
- "character": 5
2291
- },
2292
- "name": "pattern",
2293
- "isOptional": false,
2294
- "type": {
2295
- "__schema": "KeywordTypeSchema",
2296
- "location": {
2297
- "filePath": "aspect.main.runtime.ts",
2298
- "line": 92,
2299
- "character": 14
2300
- },
2301
- "name": "string"
2302
- }
2303
- },
2304
- {
2305
- "__schema": "ParameterSchema",
2306
- "location": {
2307
- "filePath": "aspect.main.runtime.ts",
2308
- "line": 93,
2309
- "character": 5
2310
- },
2311
- "name": "aspectId",
2312
- "isOptional": false,
2313
- "type": {
2314
- "__schema": "KeywordTypeSchema",
2315
- "location": {
2316
- "filePath": "aspect.main.runtime.ts",
2317
- "line": 93,
2318
- "character": 15
2319
- },
2320
- "name": "string"
2321
- }
2322
- },
2323
- {
2324
- "__schema": "ParameterSchema",
2325
- "location": {
2326
- "filePath": "aspect.main.runtime.ts",
2327
- "line": 94,
2328
- "character": 5
2329
- },
2330
- "name": "config",
2331
- "isOptional": false,
2332
- "defaultValue": "{}",
2333
- "type": {
2334
- "__schema": "TypeRefSchema",
2335
- "location": {
2336
- "filePath": "aspect.main.runtime.ts",
2337
- "line": 94,
2338
- "character": 13
2339
- },
2340
- "name": "Record",
2341
- "packageName": "",
2342
- "typeArgs": [
2343
- {
2344
- "__schema": "KeywordTypeSchema",
2345
- "location": {
2346
- "filePath": "aspect.main.runtime.ts",
2347
- "line": 94,
2348
- "character": 20
2349
- },
2350
- "name": "string"
2351
- },
2352
- {
2353
- "__schema": "KeywordTypeSchema",
2354
- "location": {
2355
- "filePath": "aspect.main.runtime.ts",
2356
- "line": 94,
2357
- "character": 28
2358
- },
2359
- "name": "any"
2360
- }
2361
- ]
2362
- }
2363
- },
2364
- {
2365
- "__schema": "ParameterSchema",
2366
- "location": {
2367
- "filePath": "aspect.main.runtime.ts",
2368
- "line": 95,
2369
- "character": 5
2370
- },
2371
- "name": "options",
2372
- "isOptional": false,
2373
- "defaultValue": "{}",
2374
- "type": {
2375
- "__schema": "TypeRefSchema",
2376
- "location": {
2377
- "filePath": "aspect.main.runtime.ts",
2378
- "line": 95,
2379
- "character": 14
2380
- },
2381
- "name": "SetAspectOptions",
2382
- "internalFilePath": "aspect.cmd.ts"
2383
- }
2384
- }
2385
- ],
2386
- "returnType": {
2387
- "__schema": "TypeRefSchema",
2388
- "location": {
2389
- "filePath": "aspect.main.runtime.ts",
2390
- "line": 96,
2391
- "character": 6
2392
- },
2393
- "name": "Promise",
2394
- "packageName": "",
2395
- "typeArgs": [
2396
- {
2397
- "__schema": "TypeArraySchema",
2398
- "location": {
2399
- "filePath": "aspect.main.runtime.ts",
2400
- "line": 96,
2401
- "character": 14
2402
- },
2403
- "type": {
2404
- "__schema": "TypeRefSchema",
2405
- "location": {
2406
- "filePath": "aspect.main.runtime.ts",
2407
- "line": 96,
2408
- "character": 14
2409
- },
2410
- "name": "ComponentID",
2411
- "componentId": {
2412
- "scope": "teambit.component",
2413
- "name": "component-id",
2414
- "version": "0.0.427"
2415
- }
2416
- }
2417
- }
2418
- ]
2419
- }
2420
- },
2421
- {
2422
- "__schema": "FunctionLikeSchema",
2423
- "location": {
2424
- "filePath": "aspect.main.runtime.ts",
2425
- "line": 108,
2426
- "character": 3
2427
- },
2428
- "name": "unsetAspectsFromComponents",
2429
- "signature": "(method) AspectMain.unsetAspectsFromComponents(pattern: string, aspectIdStr: string): Promise<ComponentID[]>",
2430
- "modifiers": [
2431
- "async"
2432
- ],
2433
- "params": [
2434
- {
2435
- "__schema": "ParameterSchema",
2436
- "location": {
2437
- "filePath": "aspect.main.runtime.ts",
2438
- "line": 108,
2439
- "character": 36
2440
- },
2441
- "name": "pattern",
2442
- "isOptional": false,
2443
- "type": {
2444
- "__schema": "KeywordTypeSchema",
2445
- "location": {
2446
- "filePath": "aspect.main.runtime.ts",
2447
- "line": 108,
2448
- "character": 45
2449
- },
2450
- "name": "string"
2451
- }
2452
- },
2453
- {
2454
- "__schema": "ParameterSchema",
2455
- "location": {
2456
- "filePath": "aspect.main.runtime.ts",
2457
- "line": 108,
2458
- "character": 53
2459
- },
2460
- "name": "aspectIdStr",
2461
- "isOptional": false,
2462
- "type": {
2463
- "__schema": "KeywordTypeSchema",
2464
- "location": {
2465
- "filePath": "aspect.main.runtime.ts",
2466
- "line": 108,
2467
- "character": 66
2468
- },
2469
- "name": "string"
2470
- }
2471
- }
2472
- ],
2473
- "returnType": {
2474
- "__schema": "TypeRefSchema",
2475
- "location": {
2476
- "filePath": "aspect.main.runtime.ts",
2477
- "line": 108,
2478
- "character": 75
2479
- },
2480
- "name": "Promise",
2481
- "packageName": "",
2482
- "typeArgs": [
2483
- {
2484
- "__schema": "TypeArraySchema",
2485
- "location": {
2486
- "filePath": "aspect.main.runtime.ts",
2487
- "line": 108,
2488
- "character": 83
2489
- },
2490
- "type": {
2491
- "__schema": "TypeRefSchema",
2492
- "location": {
2493
- "filePath": "aspect.main.runtime.ts",
2494
- "line": 108,
2495
- "character": 83
2496
- },
2497
- "name": "ComponentID",
2498
- "componentId": {
2499
- "scope": "teambit.component",
2500
- "name": "component-id",
2501
- "version": "0.0.427"
2502
- }
2503
- }
2504
- }
2505
- ]
2506
- }
2507
- },
2508
- {
2509
- "__schema": "FunctionLikeSchema",
2510
- "location": {
2511
- "filePath": "aspect.main.runtime.ts",
2512
- "line": 128,
2513
- "character": 3
2514
- },
2515
- "name": "getAspectsOfComponent",
2516
- "signature": "(method) AspectMain.getAspectsOfComponent(id: string | ComponentID): Promise<AspectList>",
2517
- "modifiers": [
2518
- "async"
2519
- ],
2520
- "params": [
2521
- {
2522
- "__schema": "ParameterSchema",
2523
- "location": {
2524
- "filePath": "aspect.main.runtime.ts",
2525
- "line": 128,
2526
- "character": 31
2527
- },
2528
- "name": "id",
2529
- "isOptional": false,
2530
- "type": {
2531
- "__schema": "TypeUnionSchema",
2532
- "location": {
2533
- "filePath": "aspect.main.runtime.ts",
2534
- "line": 128,
2535
- "character": 35
2536
- },
2537
- "types": [
2538
- {
2539
- "__schema": "KeywordTypeSchema",
2540
- "location": {
2541
- "filePath": "aspect.main.runtime.ts",
2542
- "line": 128,
2543
- "character": 35
2544
- },
2545
- "name": "string"
2546
- },
2547
- {
2548
- "__schema": "TypeRefSchema",
2549
- "location": {
2550
- "filePath": "aspect.main.runtime.ts",
2551
- "line": 128,
2552
- "character": 44
2553
- },
2554
- "name": "ComponentID",
2555
- "componentId": {
2556
- "scope": "teambit.component",
2557
- "name": "component-id",
2558
- "version": "0.0.427"
2559
- }
2560
- }
2561
- ]
2562
- }
2563
- }
2564
- ],
2565
- "returnType": {
2566
- "__schema": "TypeRefSchema",
2567
- "location": {
2568
- "filePath": "aspect.main.runtime.ts",
2569
- "line": 128,
2570
- "character": 58
2571
- },
2572
- "name": "Promise",
2573
- "packageName": "",
2574
- "typeArgs": [
2575
- {
2576
- "__schema": "TypeRefSchema",
2577
- "location": {
2578
- "filePath": "aspect.main.runtime.ts",
2579
- "line": 128,
2580
- "character": 66
2581
- },
2582
- "name": "AspectList",
2583
- "componentId": {
2584
- "scope": "teambit.component",
2585
- "name": "component"
2586
- }
2587
- }
2588
- ]
2589
- },
2590
- "doc": {
2591
- "__schema": "DocSchema",
2592
- "location": {
2593
- "filePath": "aspect.main.runtime.ts",
2594
- "line": 125,
2595
- "character": 3
2596
- },
2597
- "raw": "/**\n * returns all aspects info of a component, include the config and the data.\n */",
2598
- "comment": "returns all aspects info of a component, include the config and the data."
2599
- }
2600
- },
2601
- {
2602
- "__schema": "FunctionLikeSchema",
2603
- "location": {
2604
- "filePath": "aspect.main.runtime.ts",
2605
- "line": 139,
2606
- "character": 3
2607
- },
2608
- "name": "getAspectsOfComponentForDebugging",
2609
- "signature": "(method) AspectMain.getAspectsOfComponentForDebugging(id: string | ComponentID): Promise<{\n aspects: AspectList;\n extensions: ExtensionDataList;\n beforeMerge: {\n extensions: ExtensionDataList;\n origin: ExtensionsOrigin;\n extraData: any;\n }[];\n}>",
2610
- "modifiers": [
2611
- "async"
2612
- ],
2613
- "params": [
2614
- {
2615
- "__schema": "ParameterSchema",
2616
- "location": {
2617
- "filePath": "aspect.main.runtime.ts",
2618
- "line": 139,
2619
- "character": 43
2620
- },
2621
- "name": "id",
2622
- "isOptional": false,
2623
- "type": {
2624
- "__schema": "TypeUnionSchema",
2625
- "location": {
2626
- "filePath": "aspect.main.runtime.ts",
2627
- "line": 139,
2628
- "character": 47
2629
- },
2630
- "types": [
2631
- {
2632
- "__schema": "KeywordTypeSchema",
2633
- "location": {
2634
- "filePath": "aspect.main.runtime.ts",
2635
- "line": 139,
2636
- "character": 47
2637
- },
2638
- "name": "string"
2639
- },
2640
- {
2641
- "__schema": "TypeRefSchema",
2642
- "location": {
2643
- "filePath": "aspect.main.runtime.ts",
2644
- "line": 139,
2645
- "character": 56
2646
- },
2647
- "name": "ComponentID",
2648
- "componentId": {
2649
- "scope": "teambit.component",
2650
- "name": "component-id",
2651
- "version": "0.0.427"
2652
- }
2653
- }
2654
- ]
2655
- }
2656
- }
2657
- ],
2658
- "returnType": {
2659
- "__schema": "InferenceTypeSchema",
2660
- "location": {
2661
- "filePath": "aspect.main.runtime.ts",
2662
- "line": 139,
2663
- "character": 3
2664
- },
2665
- "type": "Promise<{\n aspects: AspectList;\n extensions: ExtensionDataList;\n beforeMerge: {\n extensions: ExtensionDataList;\n origin: ExtensionsOrigin;\n extraData: any;\n }[];\n}>"
2666
- },
2667
- "doc": {
2668
- "__schema": "DocSchema",
2669
- "location": {
2670
- "filePath": "aspect.main.runtime.ts",
2671
- "line": 136,
2672
- "character": 3
2673
- },
2674
- "raw": "/**\n * helps debugging why/how an aspect was set to a component\n */",
2675
- "comment": "helps debugging why/how an aspect was set to a component"
2676
- }
2677
- },
2678
- {
2679
- "__schema": "FunctionLikeSchema",
2680
- "location": {
2681
- "filePath": "aspect.main.runtime.ts",
2682
- "line": 153,
2683
- "character": 3
2684
- },
2685
- "name": "updateAspectsToComponents",
2686
- "signature": "(method) AspectMain.updateAspectsToComponents(aspectId: string, pattern?: string): Promise<{\n updated: ComponentID[];\n alreadyUpToDate: ComponentID[];\n}>",
2687
- "modifiers": [
2688
- "async"
2689
- ],
2690
- "params": [
2691
- {
2692
- "__schema": "ParameterSchema",
2693
- "location": {
2694
- "filePath": "aspect.main.runtime.ts",
2695
- "line": 154,
2696
- "character": 5
2697
- },
2698
- "name": "aspectId",
2699
- "isOptional": false,
2700
- "type": {
2701
- "__schema": "KeywordTypeSchema",
2702
- "location": {
2703
- "filePath": "aspect.main.runtime.ts",
2704
- "line": 154,
2705
- "character": 15
2706
- },
2707
- "name": "string"
2708
- }
2709
- },
2710
- {
2711
- "__schema": "ParameterSchema",
2712
- "location": {
2713
- "filePath": "aspect.main.runtime.ts",
2714
- "line": 155,
2715
- "character": 5
2716
- },
2717
- "name": "pattern",
2718
- "isOptional": true,
2719
- "type": {
2720
- "__schema": "KeywordTypeSchema",
2721
- "location": {
2722
- "filePath": "aspect.main.runtime.ts",
2723
- "line": 155,
2724
- "character": 15
2725
- },
2726
- "name": "string"
2727
- }
2728
- }
2729
- ],
2730
- "returnType": {
2731
- "__schema": "TypeRefSchema",
2732
- "location": {
2733
- "filePath": "aspect.main.runtime.ts",
2734
- "line": 156,
2735
- "character": 6
2736
- },
2737
- "name": "Promise",
2738
- "packageName": "",
2739
- "typeArgs": [
2740
- {
2741
- "__schema": "TypeLiteralSchema",
2742
- "location": {
2743
- "filePath": "aspect.main.runtime.ts",
2744
- "line": 156,
2745
- "character": 14
2746
- },
2747
- "members": [
2748
- {
2749
- "__schema": "VariableLikeSchema",
2750
- "location": {
2751
- "filePath": "aspect.main.runtime.ts",
2752
- "line": 156,
2753
- "character": 16
2754
- },
2755
- "name": "updated",
2756
- "signature": "(property) updated: ComponentID[]",
2757
- "isOptional": false,
2758
- "type": {
2759
- "__schema": "TypeArraySchema",
2760
- "location": {
2761
- "filePath": "aspect.main.runtime.ts",
2762
- "line": 156,
2763
- "character": 25
2764
- },
2765
- "type": {
2766
- "__schema": "TypeRefSchema",
2767
- "location": {
2768
- "filePath": "aspect.main.runtime.ts",
2769
- "line": 156,
2770
- "character": 25
2771
- },
2772
- "name": "ComponentID",
2773
- "componentId": {
2774
- "scope": "teambit.component",
2775
- "name": "component-id",
2776
- "version": "0.0.427"
2777
- }
2778
- }
2779
- }
2780
- },
2781
- {
2782
- "__schema": "VariableLikeSchema",
2783
- "location": {
2784
- "filePath": "aspect.main.runtime.ts",
2785
- "line": 156,
2786
- "character": 40
2787
- },
2788
- "name": "alreadyUpToDate",
2789
- "signature": "(property) alreadyUpToDate: ComponentID[]",
2790
- "isOptional": false,
2791
- "type": {
2792
- "__schema": "TypeArraySchema",
2793
- "location": {
2794
- "filePath": "aspect.main.runtime.ts",
2795
- "line": 156,
2796
- "character": 57
2797
- },
2798
- "type": {
2799
- "__schema": "TypeRefSchema",
2800
- "location": {
2801
- "filePath": "aspect.main.runtime.ts",
2802
- "line": 156,
2803
- "character": 57
2804
- },
2805
- "name": "ComponentID",
2806
- "componentId": {
2807
- "scope": "teambit.component",
2808
- "name": "component-id",
2809
- "version": "0.0.427"
2810
- }
2811
- }
2812
- }
2813
- }
2814
- ]
2815
- }
2816
- ]
2817
- }
2818
- },
2819
- {
2820
- "__schema": "FunctionLikeSchema",
2821
- "location": {
2822
- "filePath": "aspect.main.runtime.ts",
2823
- "line": 194,
2824
- "character": 3
2825
- },
2826
- "name": "overrideDependencies",
2827
- "signature": "(method) AspectMain.overrideDependencies(dependencyPolicy: EnvPolicyConfigObject): EnvTransformer",
2828
- "modifiers": [],
2829
- "params": [
2830
- {
2831
- "__schema": "ParameterSchema",
2832
- "location": {
2833
- "filePath": "aspect.main.runtime.ts",
2834
- "line": 194,
2835
- "character": 24
2836
- },
2837
- "name": "dependencyPolicy",
2838
- "isOptional": false,
2839
- "type": {
2840
- "__schema": "TypeRefSchema",
2841
- "location": {
2842
- "filePath": "aspect.main.runtime.ts",
2843
- "line": 194,
2844
- "character": 42
2845
- },
2846
- "name": "EnvPolicyConfigObject",
2847
- "componentId": {
2848
- "scope": "teambit.dependencies",
2849
- "name": "dependency-resolver"
2850
- }
2851
- }
2852
- }
2853
- ],
2854
- "returnType": {
2855
- "__schema": "TypeRefSchema",
2856
- "location": {
2857
- "filePath": "aspect.main.runtime.ts",
2858
- "line": 194,
2859
- "character": 3
2860
- },
2861
- "name": "EnvTransformer",
2862
- "componentId": {
2863
- "scope": "teambit.envs",
2864
- "name": "envs"
2865
- }
2866
- },
2867
- "doc": {
2868
- "__schema": "DocSchema",
2869
- "location": {
2870
- "filePath": "aspect.main.runtime.ts",
2871
- "line": 191,
2872
- "character": 3
2873
- },
2874
- "raw": "/**\n * override the dependency configuration of the component environment.\n */",
2875
- "comment": "override the dependency configuration of the component environment."
2876
- }
2877
- },
2878
- {
2879
- "__schema": "VariableLikeSchema",
2880
- "location": {
2881
- "filePath": "aspect.main.runtime.ts",
2882
- "line": 203,
2883
- "character": 3
2884
- },
2885
- "name": "runtime",
2886
- "signature": "(property) AspectMain.runtime: RuntimeDefinition",
2887
- "isOptional": false,
2888
- "type": {
2889
- "__schema": "InferenceTypeSchema",
2890
- "location": {
2891
- "filePath": "aspect.main.runtime.ts",
2892
- "line": 203,
2893
- "character": 3
2894
- },
2895
- "type": "RuntimeDefinition"
2896
- }
2897
- },
2898
- {
2899
- "__schema": "VariableLikeSchema",
2900
- "location": {
2901
- "filePath": "aspect.main.runtime.ts",
2902
- "line": 204,
2903
- "character": 3
2904
- },
2905
- "name": "dependencies",
2906
- "signature": "(property) AspectMain.dependencies: Aspect[]",
2907
- "isOptional": false,
2908
- "type": {
2909
- "__schema": "InferenceTypeSchema",
2910
- "location": {
2911
- "filePath": "aspect.main.runtime.ts",
2912
- "line": 204,
2913
- "character": 3
2914
- },
2915
- "type": "Aspect[]"
2916
- }
2917
- },
2918
- {
2919
- "__schema": "FunctionLikeSchema",
2920
- "location": {
2921
- "filePath": "aspect.main.runtime.ts",
2922
- "line": 216,
2923
- "character": 3
2924
- },
2925
- "name": "provider",
2926
- "signature": "(method) AspectMain.provider([react, envs, builder, aspectLoader, compiler, babel, generator, workspace, cli]: [\n ReactMain,\n EnvsMain,\n BuilderMain,\n AspectLoaderMain,\n CompilerMain,\n BabelMain,\n GeneratorMain,\n Workspace,\n CLIMain\n]): Promise<AspectMain>",
2927
- "modifiers": [
2928
- "static",
2929
- "async"
2930
- ],
2931
- "params": [
2932
- {
2933
- "__schema": "ParameterSchema",
2934
- "location": {
2935
- "filePath": "aspect.main.runtime.ts",
2936
- "line": 216,
2937
- "character": 25
2938
- },
2939
- "name": "[ react, envs, builder, aspectLoader, compiler, babel, generator, workspace, cli ]",
2940
- "isOptional": false,
2941
- "type": {
2942
- "__schema": "TupleTypeSchema",
2943
- "location": {
2944
- "filePath": "aspect.main.runtime.ts",
2945
- "line": 216,
2946
- "character": 107
2947
- },
2948
- "elements": [
2949
- {
2950
- "__schema": "TypeRefSchema",
2951
- "location": {
2952
- "filePath": "aspect.main.runtime.ts",
2953
- "line": 217,
2954
- "character": 5
2955
- },
2956
- "name": "ReactMain",
2957
- "componentId": {
2958
- "scope": "teambit.react",
2959
- "name": "react"
2960
- }
2961
- },
2962
- {
2963
- "__schema": "TypeRefSchema",
2964
- "location": {
2965
- "filePath": "aspect.main.runtime.ts",
2966
- "line": 218,
2967
- "character": 5
2968
- },
2969
- "name": "EnvsMain",
2970
- "componentId": {
2971
- "scope": "teambit.envs",
2972
- "name": "envs"
2973
- }
2974
- },
2975
- {
2976
- "__schema": "TypeRefSchema",
2977
- "location": {
2978
- "filePath": "aspect.main.runtime.ts",
2979
- "line": 219,
2980
- "character": 5
2981
- },
2982
- "name": "BuilderMain",
2983
- "componentId": {
2984
- "scope": "teambit.pipelines",
2985
- "name": "builder"
2986
- }
2987
- },
2988
- {
2989
- "__schema": "TypeRefSchema",
2990
- "location": {
2991
- "filePath": "aspect.main.runtime.ts",
2992
- "line": 220,
2993
- "character": 5
2994
- },
2995
- "name": "AspectLoaderMain",
2996
- "componentId": {
2997
- "scope": "teambit.harmony",
2998
- "name": "aspect-loader"
2999
- }
3000
- },
3001
- {
3002
- "__schema": "TypeRefSchema",
3003
- "location": {
3004
- "filePath": "aspect.main.runtime.ts",
3005
- "line": 221,
3006
- "character": 5
3007
- },
3008
- "name": "CompilerMain",
3009
- "componentId": {
3010
- "scope": "teambit.compilation",
3011
- "name": "compiler"
3012
- }
3013
- },
3014
- {
3015
- "__schema": "TypeRefSchema",
3016
- "location": {
3017
- "filePath": "aspect.main.runtime.ts",
3018
- "line": 222,
3019
- "character": 5
3020
- },
3021
- "name": "BabelMain",
3022
- "componentId": {
3023
- "scope": "teambit.compilation",
3024
- "name": "babel"
3025
- }
3026
- },
3027
- {
3028
- "__schema": "TypeRefSchema",
3029
- "location": {
3030
- "filePath": "aspect.main.runtime.ts",
3031
- "line": 223,
3032
- "character": 5
3033
- },
3034
- "name": "GeneratorMain",
3035
- "componentId": {
3036
- "scope": "teambit.generator",
3037
- "name": "generator"
3038
- }
3039
- },
3040
- {
3041
- "__schema": "TypeRefSchema",
3042
- "location": {
3043
- "filePath": "aspect.main.runtime.ts",
3044
- "line": 224,
3045
- "character": 5
3046
- },
3047
- "name": "Workspace",
3048
- "componentId": {
3049
- "scope": "teambit.workspace",
3050
- "name": "workspace"
3051
- }
3052
- },
3053
- {
3054
- "__schema": "TypeRefSchema",
3055
- "location": {
3056
- "filePath": "aspect.main.runtime.ts",
3057
- "line": 225,
3058
- "character": 5
3059
- },
3060
- "name": "CLIMain",
3061
- "componentId": {
3062
- "scope": "teambit.harmony",
3063
- "name": "cli"
3064
- }
3065
- }
3066
- ]
3067
- }
3068
- }
3069
- ],
3070
- "returnType": {
3071
- "__schema": "InferenceTypeSchema",
3072
- "location": {
3073
- "filePath": "aspect.main.runtime.ts",
3074
- "line": 216,
3075
- "character": 3
3076
- },
3077
- "type": "Promise<AspectMain>"
3078
- }
3079
- }
3080
- ]
3081
- }
3082
- ],
3083
- "internals": [
3084
- {
3085
- "__schema": "ModuleSchema",
3086
- "location": {
3087
- "filePath": "aspect.main.runtime.ts",
3088
- "line": 33,
3089
- "character": 1
3090
- },
3091
- "exports": [
3092
- {
3093
- "__schema": "VariableLikeSchema",
3094
- "location": {
3095
- "filePath": "aspect.main.runtime.ts",
3096
- "line": 33,
3097
- "character": 7
3098
- },
3099
- "name": "tsconfig",
3100
- "signature": "const tsconfig: any",
3101
- "isOptional": false,
3102
- "type": {
3103
- "__schema": "InferenceTypeSchema",
3104
- "location": {
3105
- "filePath": "aspect.main.runtime.ts",
3106
- "line": 33,
3107
- "character": 7
3108
- },
3109
- "type": "any"
3110
- }
3111
- }
3112
- ],
3113
- "internals": []
3114
- },
3115
- {
3116
- "__schema": "UnImplementedSchema",
3117
- "location": {
3118
- "filePath": "aspect.main.runtime.ts",
3119
- "line": 280,
3120
- "character": 1
3121
- },
3122
- "name": "AspectAspect.addRuntime(AspectMain);",
3123
- "type": "ExpressionStatement"
3124
- }
3125
- ]
3126
- },
3127
- {
3128
- "__schema": "ModuleSchema",
3129
- "location": {
3130
- "filePath": "aspect.aspect.ts",
3131
- "line": 1,
3132
- "character": 1
3133
- },
3134
- "exports": [
3135
- {
3136
- "__schema": "VariableLikeSchema",
3137
- "location": {
3138
- "filePath": "aspect.aspect.ts",
3139
- "line": 3,
3140
- "character": 14
3141
- },
3142
- "name": "AspectAspect",
3143
- "signature": "const AspectAspect: Aspect",
3144
- "isOptional": false,
3145
- "type": {
3146
- "__schema": "TypeRefSchema",
3147
- "location": {
3148
- "filePath": "aspect.aspect.ts",
3149
- "line": 3,
3150
- "character": 14
3151
- },
3152
- "name": "Aspect",
3153
- "componentId": {
3154
- "scope": "teambit.harmony",
3155
- "name": "harmony",
3156
- "version": "0.4.6"
3157
- }
3158
- }
3159
- },
3160
- {
3161
- "__schema": "UnImplementedSchema",
3162
- "location": {
3163
- "filePath": "aspect.aspect.ts",
3164
- "line": 7,
3165
- "character": 16
3166
- },
3167
- "name": "AspectAspect",
3168
- "type": "Identifier"
3169
- }
3170
- ],
3171
- "internals": []
3172
- },
3173
- {
3174
- "__schema": "ModuleSchema",
3175
- "location": {
3176
- "filePath": "aspect.env.ts",
3177
- "line": 1,
3178
- "character": 1
3179
- },
3180
- "exports": [
3181
- {
3182
- "__schema": "VariableLikeSchema",
3183
- "location": {
3184
- "filePath": "aspect.env.ts",
3185
- "line": 17,
3186
- "character": 14
3187
- },
3188
- "name": "AspectEnvType",
3189
- "signature": "const AspectEnvType: \"aspect\"",
3190
- "isOptional": false,
3191
- "type": {
3192
- "__schema": "InferenceTypeSchema",
3193
- "location": {
3194
- "filePath": "aspect.env.ts",
3195
- "line": 17,
3196
- "character": 14
3197
- },
3198
- "type": "\"aspect\""
3199
- }
3200
- },
3201
- {
3202
- "__schema": "ClassSchema",
3203
- "name": "AspectEnv",
3204
- "location": {
3205
- "filePath": "aspect.env.ts",
3206
- "line": 22,
3207
- "character": 1
3208
- },
3209
- "signature": "class AspectEnv",
3210
- "extendsNodes": [],
3211
- "implementNodes": [
3212
- {
3213
- "__schema": "ExpressionWithTypeArgumentsSchema",
3214
- "name": "implements DependenciesEnv, PackageEnv, PreviewEnv",
3215
- "location": {
3216
- "filePath": "aspect.env.ts",
3217
- "line": 22,
3218
- "character": 35
3219
- },
3220
- "typeArgs": [],
3221
- "expression": {
3222
- "__schema": "TypeRefSchema",
3223
- "location": {
3224
- "filePath": "aspect.env.ts",
3225
- "line": 22,
3226
- "character": 35
3227
- },
3228
- "name": "DependenciesEnv",
3229
- "componentId": {
3230
- "scope": "teambit.harmony",
3231
- "name": "aspect",
3232
- "version": "0.0.1048"
3233
- }
3234
- }
3235
- },
3236
- {
3237
- "__schema": "ExpressionWithTypeArgumentsSchema",
3238
- "name": "implements DependenciesEnv, PackageEnv, PreviewEnv",
3239
- "location": {
3240
- "filePath": "aspect.env.ts",
3241
- "line": 22,
3242
- "character": 52
3243
- },
3244
- "typeArgs": [],
3245
- "expression": {
3246
- "__schema": "TypeRefSchema",
3247
- "location": {
3248
- "filePath": "aspect.env.ts",
3249
- "line": 22,
3250
- "character": 52
3251
- },
3252
- "name": "PackageEnv",
3253
- "componentId": {
3254
- "scope": "teambit.harmony",
3255
- "name": "aspect",
3256
- "version": "0.0.1048"
3257
- }
3258
- }
3259
- },
3260
- {
3261
- "__schema": "ExpressionWithTypeArgumentsSchema",
3262
- "name": "implements DependenciesEnv, PackageEnv, PreviewEnv",
3263
- "location": {
3264
- "filePath": "aspect.env.ts",
3265
- "line": 22,
3266
- "character": 64
3267
- },
3268
- "typeArgs": [],
3269
- "expression": {
3270
- "__schema": "TypeRefSchema",
3271
- "location": {
3272
- "filePath": "aspect.env.ts",
3273
- "line": 22,
3274
- "character": 64
3275
- },
3276
- "name": "PreviewEnv",
3277
- "componentId": {
3278
- "scope": "teambit.harmony",
3279
- "name": "aspect",
3280
- "version": "0.0.1048"
3281
- }
3282
- }
3283
- }
3284
- ],
3285
- "members": [
3286
- {
3287
- "__schema": "ConstructorSchema",
3288
- "location": {
3289
- "filePath": "aspect.env.ts",
3290
- "line": 23,
3291
- "character": 3
3292
- },
3293
- "name": "constructor",
3294
- "signature": "constructor AspectEnv(reactEnv: ReactEnv, aspectLoader: AspectLoaderMain): AspectEnv",
3295
- "modifiers": [],
3296
- "params": [
3297
- {
3298
- "__schema": "ParameterSchema",
3299
- "location": {
3300
- "filePath": "aspect.env.ts",
3301
- "line": 23,
3302
- "character": 15
3303
- },
3304
- "name": "reactEnv",
3305
- "isOptional": false,
3306
- "type": {
3307
- "__schema": "TypeRefSchema",
3308
- "location": {
3309
- "filePath": "aspect.env.ts",
3310
- "line": 23,
3311
- "character": 33
3312
- },
3313
- "name": "ReactEnv",
3314
- "componentId": {
3315
- "scope": "teambit.react",
3316
- "name": "react"
3317
- }
3318
- }
3319
- },
3320
- {
3321
- "__schema": "ParameterSchema",
3322
- "location": {
3323
- "filePath": "aspect.env.ts",
3324
- "line": 23,
3325
- "character": 43
3326
- },
3327
- "name": "aspectLoader",
3328
- "isOptional": false,
3329
- "type": {
3330
- "__schema": "TypeRefSchema",
3331
- "location": {
3332
- "filePath": "aspect.env.ts",
3333
- "line": 23,
3334
- "character": 65
3335
- },
3336
- "name": "AspectLoaderMain",
3337
- "componentId": {
3338
- "scope": "teambit.harmony",
3339
- "name": "aspect-loader"
3340
- }
3341
- }
3342
- }
3343
- ],
3344
- "returnType": {
3345
- "__schema": "ThisTypeSchema",
3346
- "location": {
3347
- "filePath": "aspect.env.ts",
3348
- "line": 22,
3349
- "character": 1
3350
- }
3351
- }
3352
- },
3353
- {
3354
- "__schema": "VariableLikeSchema",
3355
- "location": {
3356
- "filePath": "aspect.env.ts",
3357
- "line": 25,
3358
- "character": 3
3359
- },
3360
- "name": "icon",
3361
- "signature": "(property) AspectEnv.icon: string",
3362
- "isOptional": false,
3363
- "type": {
3364
- "__schema": "InferenceTypeSchema",
3365
- "location": {
3366
- "filePath": "aspect.env.ts",
3367
- "line": 25,
3368
- "character": 3
3369
- },
3370
- "type": "string"
3371
- }
3372
- },
3373
- {
3374
- "__schema": "FunctionLikeSchema",
3375
- "location": {
3376
- "filePath": "aspect.env.ts",
3377
- "line": 27,
3378
- "character": 3
3379
- },
3380
- "name": "__getDescriptor",
3381
- "signature": "(method) AspectEnv.__getDescriptor(): Promise<{\n type: string;\n}>",
3382
- "modifiers": [
3383
- "async"
3384
- ],
3385
- "params": [],
3386
- "returnType": {
3387
- "__schema": "InferenceTypeSchema",
3388
- "location": {
3389
- "filePath": "aspect.env.ts",
3390
- "line": 27,
3391
- "character": 3
3392
- },
3393
- "type": "Promise<{\n type: string;\n}>"
3394
- }
3395
- },
3396
- {
3397
- "__schema": "FunctionLikeSchema",
3398
- "location": {
3399
- "filePath": "aspect.env.ts",
3400
- "line": 33,
3401
- "character": 3
3402
- },
3403
- "name": "getTsConfig",
3404
- "signature": "(method) AspectEnv.getTsConfig(tsConfig: TsConfigSourceFile): any",
3405
- "modifiers": [],
3406
- "params": [
3407
- {
3408
- "__schema": "ParameterSchema",
3409
- "location": {
3410
- "filePath": "aspect.env.ts",
3411
- "line": 33,
3412
- "character": 15
3413
- },
3414
- "name": "tsConfig",
3415
- "isOptional": false,
3416
- "type": {
3417
- "__schema": "TypeRefSchema",
3418
- "location": {
3419
- "filePath": "aspect.env.ts",
3420
- "line": 33,
3421
- "character": 25
3422
- },
3423
- "name": "TsConfigSourceFile",
3424
- "packageName": "typescript"
3425
- }
3426
- }
3427
- ],
3428
- "returnType": {
3429
- "__schema": "InferenceTypeSchema",
3430
- "location": {
3431
- "filePath": "aspect.env.ts",
3432
- "line": 33,
3433
- "character": 3
3434
- },
3435
- "type": "any"
3436
- }
3437
- },
3438
- {
3439
- "__schema": "FunctionLikeSchema",
3440
- "location": {
3441
- "filePath": "aspect.env.ts",
3442
- "line": 40,
3443
- "character": 3
3444
- },
3445
- "name": "createTsCompiler",
3446
- "signature": "(method) AspectEnv.createTsCompiler(tsConfig: TsConfigSourceFile): Compiler",
3447
- "modifiers": [],
3448
- "params": [
3449
- {
3450
- "__schema": "ParameterSchema",
3451
- "location": {
3452
- "filePath": "aspect.env.ts",
3453
- "line": 40,
3454
- "character": 20
3455
- },
3456
- "name": "tsConfig",
3457
- "isOptional": false,
3458
- "type": {
3459
- "__schema": "TypeRefSchema",
3460
- "location": {
3461
- "filePath": "aspect.env.ts",
3462
- "line": 40,
3463
- "character": 30
3464
- },
3465
- "name": "TsConfigSourceFile",
3466
- "packageName": "typescript"
3467
- }
3468
- }
3469
- ],
3470
- "returnType": {
3471
- "__schema": "TypeRefSchema",
3472
- "location": {
3473
- "filePath": "aspect.env.ts",
3474
- "line": 40,
3475
- "character": 3
3476
- },
3477
- "name": "Compiler",
3478
- "componentId": {
3479
- "scope": "teambit.compilation",
3480
- "name": "compiler"
3481
- }
3482
- }
3483
- },
3484
- {
3485
- "__schema": "FunctionLikeSchema",
3486
- "location": {
3487
- "filePath": "aspect.env.ts",
3488
- "line": 47,
3489
- "character": 3
3490
- },
3491
- "name": "getTester",
3492
- "signature": "(method) AspectEnv.getTester(jestConfigPath: string, jestModulePath?: string): Tester",
3493
- "modifiers": [],
3494
- "params": [
3495
- {
3496
- "__schema": "ParameterSchema",
3497
- "location": {
3498
- "filePath": "aspect.env.ts",
3499
- "line": 47,
3500
- "character": 13
3501
- },
3502
- "name": "jestConfigPath",
3503
- "isOptional": false,
3504
- "type": {
3505
- "__schema": "KeywordTypeSchema",
3506
- "location": {
3507
- "filePath": "aspect.env.ts",
3508
- "line": 47,
3509
- "character": 29
3510
- },
3511
- "name": "string"
3512
- }
3513
- },
3514
- {
3515
- "__schema": "ParameterSchema",
3516
- "location": {
3517
- "filePath": "aspect.env.ts",
3518
- "line": 47,
3519
- "character": 37
3520
- },
3521
- "name": "jestModulePath",
3522
- "isOptional": true,
3523
- "type": {
3524
- "__schema": "KeywordTypeSchema",
3525
- "location": {
3526
- "filePath": "aspect.env.ts",
3527
- "line": 47,
3528
- "character": 54
3529
- },
3530
- "name": "string"
3531
- }
3532
- }
3533
- ],
3534
- "returnType": {
3535
- "__schema": "TypeRefSchema",
3536
- "location": {
3537
- "filePath": "aspect.env.ts",
3538
- "line": 47,
3539
- "character": 3
3540
- },
3541
- "name": "Tester",
3542
- "componentId": {
3543
- "scope": "teambit.defender",
3544
- "name": "tester"
3545
- }
3546
- },
3547
- "doc": {
3548
- "__schema": "DocSchema",
3549
- "location": {
3550
- "filePath": "aspect.env.ts",
3551
- "line": 44,
3552
- "character": 3
3553
- },
3554
- "raw": "/**\n * returns a component tester.\n */",
3555
- "comment": "returns a component tester."
3556
- }
3557
- },
3558
- {
3559
- "__schema": "FunctionLikeSchema",
3560
- "location": {
3561
- "filePath": "aspect.env.ts",
3562
- "line": 52,
3563
- "character": 3
3564
- },
3565
- "name": "getTemplateBundler",
3566
- "signature": "(method) AspectEnv.getTemplateBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[]): Promise<Bundler>",
3567
- "modifiers": [
3568
- "async"
3569
- ],
3570
- "params": [
3571
- {
3572
- "__schema": "ParameterSchema",
3573
- "location": {
3574
- "filePath": "aspect.env.ts",
3575
- "line": 52,
3576
- "character": 28
3577
- },
3578
- "name": "context",
3579
- "isOptional": false,
3580
- "type": {
3581
- "__schema": "TypeRefSchema",
3582
- "location": {
3583
- "filePath": "aspect.env.ts",
3584
- "line": 52,
3585
- "character": 37
3586
- },
3587
- "name": "BundlerContext",
3588
- "componentId": {
3589
- "scope": "teambit.compilation",
3590
- "name": "bundler"
3591
- }
3592
- }
3593
- },
3594
- {
3595
- "__schema": "ParameterSchema",
3596
- "location": {
3597
- "filePath": "aspect.env.ts",
3598
- "line": 52,
3599
- "character": 53
3600
- },
3601
- "name": "transformers",
3602
- "isOptional": false,
3603
- "defaultValue": "[]",
3604
- "type": {
3605
- "__schema": "TypeArraySchema",
3606
- "location": {
3607
- "filePath": "aspect.env.ts",
3608
- "line": 52,
3609
- "character": 67
3610
- },
3611
- "type": {
3612
- "__schema": "TypeRefSchema",
3613
- "location": {
3614
- "filePath": "aspect.env.ts",
3615
- "line": 52,
3616
- "character": 67
3617
- },
3618
- "name": "WebpackConfigTransformer",
3619
- "componentId": {
3620
- "scope": "teambit.webpack",
3621
- "name": "webpack"
3622
- }
3623
- }
3624
- }
3625
- }
3626
- ],
3627
- "returnType": {
3628
- "__schema": "TypeRefSchema",
3629
- "location": {
3630
- "filePath": "aspect.env.ts",
3631
- "line": 52,
3632
- "character": 101
3633
- },
3634
- "name": "Promise",
3635
- "packageName": "",
3636
- "typeArgs": [
3637
- {
3638
- "__schema": "TypeRefSchema",
3639
- "location": {
3640
- "filePath": "aspect.env.ts",
3641
- "line": 52,
3642
- "character": 109
3643
- },
3644
- "name": "Bundler",
3645
- "componentId": {
3646
- "scope": "teambit.compilation",
3647
- "name": "bundler"
3648
- }
3649
- }
3650
- ]
3651
- }
3652
- },
3653
- {
3654
- "__schema": "FunctionLikeSchema",
3655
- "location": {
3656
- "filePath": "aspect.env.ts",
3657
- "line": 56,
3658
- "character": 3
3659
- },
3660
- "name": "createTemplateWebpackBundler",
3661
- "signature": "(method) AspectEnv.createTemplateWebpackBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[]): Promise<Bundler>",
3662
- "modifiers": [
3663
- "async"
3664
- ],
3665
- "params": [
3666
- {
3667
- "__schema": "ParameterSchema",
3668
- "location": {
3669
- "filePath": "aspect.env.ts",
3670
- "line": 57,
3671
- "character": 5
3672
- },
3673
- "name": "context",
3674
- "isOptional": false,
3675
- "type": {
3676
- "__schema": "TypeRefSchema",
3677
- "location": {
3678
- "filePath": "aspect.env.ts",
3679
- "line": 57,
3680
- "character": 14
3681
- },
3682
- "name": "BundlerContext",
3683
- "componentId": {
3684
- "scope": "teambit.compilation",
3685
- "name": "bundler"
3686
- }
3687
- }
3688
- },
3689
- {
3690
- "__schema": "ParameterSchema",
3691
- "location": {
3692
- "filePath": "aspect.env.ts",
3693
- "line": 58,
3694
- "character": 5
3695
- },
3696
- "name": "transformers",
3697
- "isOptional": false,
3698
- "defaultValue": "[]",
3699
- "type": {
3700
- "__schema": "TypeArraySchema",
3701
- "location": {
3702
- "filePath": "aspect.env.ts",
3703
- "line": 58,
3704
- "character": 19
3705
- },
3706
- "type": {
3707
- "__schema": "TypeRefSchema",
3708
- "location": {
3709
- "filePath": "aspect.env.ts",
3710
- "line": 58,
3711
- "character": 19
3712
- },
3713
- "name": "WebpackConfigTransformer",
3714
- "componentId": {
3715
- "scope": "teambit.webpack",
3716
- "name": "webpack"
3717
- }
3718
- }
3719
- }
3720
- }
3721
- ],
3722
- "returnType": {
3723
- "__schema": "TypeRefSchema",
3724
- "location": {
3725
- "filePath": "aspect.env.ts",
3726
- "line": 59,
3727
- "character": 6
3728
- },
3729
- "name": "Promise",
3730
- "packageName": "",
3731
- "typeArgs": [
3732
- {
3733
- "__schema": "TypeRefSchema",
3734
- "location": {
3735
- "filePath": "aspect.env.ts",
3736
- "line": 59,
3737
- "character": 14
3738
- },
3739
- "name": "Bundler",
3740
- "componentId": {
3741
- "scope": "teambit.compilation",
3742
- "name": "bundler"
3743
- }
3744
- }
3745
- ]
3746
- }
3747
- },
3748
- {
3749
- "__schema": "FunctionLikeSchema",
3750
- "location": {
3751
- "filePath": "aspect.env.ts",
3752
- "line": 63,
3753
- "character": 3
3754
- },
3755
- "name": "getPackageJsonProps",
3756
- "signature": "(method) AspectEnv.getPackageJsonProps(): PackageJsonProps",
3757
- "modifiers": [],
3758
- "params": [],
3759
- "returnType": {
3760
- "__schema": "TypeRefSchema",
3761
- "location": {
3762
- "filePath": "aspect.env.ts",
3763
- "line": 63,
3764
- "character": 3
3765
- },
3766
- "name": "PackageJsonProps",
3767
- "componentId": {
3768
- "scope": "teambit.pkg",
3769
- "name": "pkg"
3770
- }
3771
- }
3772
- },
3773
- {
3774
- "__schema": "FunctionLikeSchema",
3775
- "location": {
3776
- "filePath": "aspect.env.ts",
3777
- "line": 67,
3778
- "character": 3
3779
- },
3780
- "name": "getNpmIgnore",
3781
- "signature": "(method) AspectEnv.getNpmIgnore(context?: GetNpmIgnoreContext): string[]",
3782
- "modifiers": [],
3783
- "params": [
3784
- {
3785
- "__schema": "ParameterSchema",
3786
- "location": {
3787
- "filePath": "aspect.env.ts",
3788
- "line": 67,
3789
- "character": 16
3790
- },
3791
- "name": "context",
3792
- "isOptional": true,
3793
- "type": {
3794
- "__schema": "TypeRefSchema",
3795
- "location": {
3796
- "filePath": "aspect.env.ts",
3797
- "line": 67,
3798
- "character": 26
3799
- },
3800
- "name": "GetNpmIgnoreContext",
3801
- "componentId": {
3802
- "scope": "teambit.envs",
3803
- "name": "envs"
3804
- }
3805
- }
3806
- }
3807
- ],
3808
- "returnType": {
3809
- "__schema": "TypeRefSchema",
3810
- "location": {
3811
- "filePath": "aspect.env.ts",
3812
- "line": 67,
3813
- "character": 3
3814
- },
3815
- "name": "string[]",
3816
- "packageName": ""
3817
- }
3818
- },
3819
- {
3820
- "__schema": "FunctionLikeSchema",
3821
- "location": {
3822
- "filePath": "aspect.env.ts",
3823
- "line": 84,
3824
- "character": 3
3825
- },
3826
- "name": "getPreviewConfig",
3827
- "signature": "(method) AspectEnv.getPreviewConfig(): {\n strategyName: PreviewStrategyName;\n splitComponentBundle: boolean;\n}",
3828
- "modifiers": [],
3829
- "params": [],
3830
- "returnType": {
3831
- "__schema": "InferenceTypeSchema",
3832
- "location": {
3833
- "filePath": "aspect.env.ts",
3834
- "line": 84,
3835
- "character": 3
3836
- },
3837
- "type": "{\n strategyName: PreviewStrategyName;\n splitComponentBundle: boolean;\n}"
3838
- }
3839
- },
3840
- {
3841
- "__schema": "FunctionLikeSchema",
3842
- "location": {
3843
- "filePath": "aspect.env.ts",
3844
- "line": 91,
3845
- "character": 3
3846
- },
3847
- "name": "getDependencies",
3848
- "signature": "(method) AspectEnv.getDependencies(): Promise<{\n dependencies: {\n react: string;\n 'react-dom': string;\n 'core-js': string;\n '@babel/runtime': string;\n };\n devDependencies: {\n react: string;\n 'react-dom': string;\n '@types/mocha': string;\n '@types/node': string;\n '@types/react': string;\n '@types/react-dom': string;\n '@types/jest': string;\n '@types/testing-library__jest-dom': string;\n };\n peerDependencies: {\n ...;\n };\n}>",
3849
- "modifiers": [
3850
- "async"
3851
- ],
3852
- "params": [],
3853
- "returnType": {
3854
- "__schema": "InferenceTypeSchema",
3855
- "location": {
3856
- "filePath": "aspect.env.ts",
3857
- "line": 91,
3858
- "character": 3
3859
- },
3860
- "type": "Promise<{\n dependencies: {\n react: string;\n 'react-dom': string;\n 'core-js': string;\n '@babel/runtime': string;\n };\n devDependencies: {\n react: string;\n 'react-dom': string;\n '@types/mocha': string;\n '@types/node': string;\n '@types/react': string;\n '@types/react-dom': string;\n '@types/jest': string;\n '@types/testing-library__jest-dom': string;\n };\n peerDependencies: {\n ...;\n };\n}>"
3861
- }
3862
- }
3863
- ],
3864
- "doc": {
3865
- "__schema": "DocSchema",
3866
- "location": {
3867
- "filePath": "aspect.env.ts",
3868
- "line": 19,
3869
- "character": 1
3870
- },
3871
- "raw": "/**\n * a component environment built for Aspects .\n */",
3872
- "comment": "a component environment built for Aspects ."
3873
- }
3874
- }
3875
- ],
3876
- "internals": [
3877
- {
3878
- "__schema": "ModuleSchema",
3879
- "location": {
3880
- "filePath": "aspect.env.ts",
3881
- "line": 15,
3882
- "character": 1
3883
- },
3884
- "exports": [
3885
- {
3886
- "__schema": "VariableLikeSchema",
3887
- "location": {
3888
- "filePath": "aspect.env.ts",
3889
- "line": 15,
3890
- "character": 7
3891
- },
3892
- "name": "tsconfig",
3893
- "signature": "const tsconfig: any",
3894
- "isOptional": false,
3895
- "type": {
3896
- "__schema": "InferenceTypeSchema",
3897
- "location": {
3898
- "filePath": "aspect.env.ts",
3899
- "line": 15,
3900
- "character": 7
3901
- },
3902
- "type": "any"
3903
- }
3904
- }
3905
- ],
3906
- "internals": []
3907
- }
3908
- ]
3909
- }
3910
- ],
3911
- "componentId": {
3912
- "scope": "teambit.harmony",
3913
- "name": "aspect",
3914
- "version": "0.0.1048"
3915
- },
3916
- "taggedModuleExports": []
3917
- }