@teambit/config-merger 0.0.54 → 0.0.55

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