@teambit/config-merger 0.0.383 → 0.0.384

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