@teambit/merging 1.0.481 → 1.0.482

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,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/merging@1.0.481" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/merging@1.0.482" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1373,7 +1373,7 @@
1373
1373
  "componentId": {
1374
1374
  "scope": "teambit.component",
1375
1375
  "name": "sources",
1376
- "version": "0.0.49"
1376
+ "version": "0.0.50"
1377
1377
  }
1378
1378
  },
1379
1379
  "isOptional": false
@@ -1626,7 +1626,7 @@
1626
1626
  "componentId": {
1627
1627
  "scope": "teambit.component",
1628
1628
  "name": "sources",
1629
- "version": "0.0.49"
1629
+ "version": "0.0.50"
1630
1630
  }
1631
1631
  },
1632
1632
  "isOptional": false
@@ -1860,7 +1860,7 @@
1860
1860
  "componentId": {
1861
1861
  "scope": "teambit.component",
1862
1862
  "name": "sources",
1863
- "version": "0.0.49"
1863
+ "version": "0.0.50"
1864
1864
  }
1865
1865
  },
1866
1866
  "isOptional": false
@@ -1937,7 +1937,7 @@
1937
1937
  "componentId": {
1938
1938
  "scope": "teambit.component",
1939
1939
  "name": "sources",
1940
- "version": "0.0.49"
1940
+ "version": "0.0.50"
1941
1941
  }
1942
1942
  },
1943
1943
  "isOptional": false
@@ -3736,7 +3736,7 @@
3736
3736
  "__schema": "FunctionLikeSchema",
3737
3737
  "location": {
3738
3738
  "filePath": "merging.main.runtime.ts",
3739
- "line": 354,
3739
+ "line": 353,
3740
3740
  "character": 3
3741
3741
  },
3742
3742
  "signature": "(method) MergingMain.removeFromWsJsonPolicyIfExists(componentsResults: ApplyVersionWithComps[], currentLane?: Lane, currentLaneIdsBeforeMerge?: ComponentIdList): Promise<void>",
@@ -3746,7 +3746,7 @@
3746
3746
  "__schema": "ParameterSchema",
3747
3747
  "location": {
3748
3748
  "filePath": "merging.main.runtime.ts",
3749
- "line": 355,
3749
+ "line": 354,
3750
3750
  "character": 5
3751
3751
  },
3752
3752
  "name": "componentsResults",
@@ -3754,14 +3754,14 @@
3754
3754
  "__schema": "TypeArraySchema",
3755
3755
  "location": {
3756
3756
  "filePath": "merging.main.runtime.ts",
3757
- "line": 355,
3757
+ "line": 354,
3758
3758
  "character": 24
3759
3759
  },
3760
3760
  "type": {
3761
3761
  "__schema": "TypeRefSchema",
3762
3762
  "location": {
3763
3763
  "filePath": "merging.main.runtime.ts",
3764
- "line": 355,
3764
+ "line": 354,
3765
3765
  "character": 24
3766
3766
  },
3767
3767
  "name": "ApplyVersionWithComps"
@@ -3774,7 +3774,7 @@
3774
3774
  "__schema": "ParameterSchema",
3775
3775
  "location": {
3776
3776
  "filePath": "merging.main.runtime.ts",
3777
- "line": 356,
3777
+ "line": 355,
3778
3778
  "character": 5
3779
3779
  },
3780
3780
  "name": "currentLane",
@@ -3782,7 +3782,7 @@
3782
3782
  "__schema": "TypeRefSchema",
3783
3783
  "location": {
3784
3784
  "filePath": "merging.main.runtime.ts",
3785
- "line": 356,
3785
+ "line": 355,
3786
3786
  "character": 19
3787
3787
  },
3788
3788
  "name": "Lane"
@@ -3794,7 +3794,7 @@
3794
3794
  "__schema": "ParameterSchema",
3795
3795
  "location": {
3796
3796
  "filePath": "merging.main.runtime.ts",
3797
- "line": 357,
3797
+ "line": 356,
3798
3798
  "character": 5
3799
3799
  },
3800
3800
  "name": "currentLaneIdsBeforeMerge",
@@ -3802,7 +3802,7 @@
3802
3802
  "__schema": "TypeRefSchema",
3803
3803
  "location": {
3804
3804
  "filePath": "merging.main.runtime.ts",
3805
- "line": 357,
3805
+ "line": 356,
3806
3806
  "character": 33
3807
3807
  },
3808
3808
  "name": "ComponentIdList"
@@ -3815,7 +3815,7 @@
3815
3815
  "__schema": "InferenceTypeSchema",
3816
3816
  "location": {
3817
3817
  "filePath": "merging.main.runtime.ts",
3818
- "line": 354,
3818
+ "line": 353,
3819
3819
  "character": 3
3820
3820
  },
3821
3821
  "type": "Promise<void>"
@@ -3828,14 +3828,14 @@
3828
3828
  "__schema": "FunctionLikeSchema",
3829
3829
  "location": {
3830
3830
  "filePath": "merging.main.runtime.ts",
3831
- "line": 379,
3831
+ "line": 378,
3832
3832
  "character": 3
3833
3833
  },
3834
3834
  "doc": {
3835
3835
  "__schema": "DocSchema",
3836
3836
  "location": {
3837
3837
  "filePath": "merging.main.runtime.ts",
3838
- "line": 373,
3838
+ "line": 372,
3839
3839
  "character": 3
3840
3840
  },
3841
3841
  "raw": "/**\n * this function gets called from two different commands:\n * 1. \"bit merge <ids...>\", when merging a component from a remote to the local.\n * in this case, the remote and local are on the same lane or both on main.\n * 2. \"bit lane merge\", when merging from one lane to another.\n */",
@@ -3849,7 +3849,7 @@
3849
3849
  "__schema": "ParameterSchema",
3850
3850
  "location": {
3851
3851
  "filePath": "merging.main.runtime.ts",
3852
- "line": 380,
3852
+ "line": 379,
3853
3853
  "character": 5
3854
3854
  },
3855
3855
  "name": "bitIds",
@@ -3857,14 +3857,14 @@
3857
3857
  "__schema": "TypeArraySchema",
3858
3858
  "location": {
3859
3859
  "filePath": "merging.main.runtime.ts",
3860
- "line": 380,
3860
+ "line": 379,
3861
3861
  "character": 13
3862
3862
  },
3863
3863
  "type": {
3864
3864
  "__schema": "TypeRefSchema",
3865
3865
  "location": {
3866
3866
  "filePath": "merging.main.runtime.ts",
3867
- "line": 380,
3867
+ "line": 379,
3868
3868
  "character": 13
3869
3869
  },
3870
3870
  "name": "ComponentID"
@@ -3877,7 +3877,7 @@
3877
3877
  "__schema": "ParameterSchema",
3878
3878
  "location": {
3879
3879
  "filePath": "merging.main.runtime.ts",
3880
- "line": 381,
3880
+ "line": 380,
3881
3881
  "character": 5
3882
3882
  },
3883
3883
  "name": "options",
@@ -3885,7 +3885,7 @@
3885
3885
  "__schema": "TypeRefSchema",
3886
3886
  "location": {
3887
3887
  "filePath": "merging.main.runtime.ts",
3888
- "line": 381,
3888
+ "line": 380,
3889
3889
  "character": 14
3890
3890
  },
3891
3891
  "name": "MergeStatusProviderOptions"
@@ -3897,7 +3897,7 @@
3897
3897
  "__schema": "ParameterSchema",
3898
3898
  "location": {
3899
3899
  "filePath": "merging.main.runtime.ts",
3900
- "line": 382,
3900
+ "line": 381,
3901
3901
  "character": 5
3902
3902
  },
3903
3903
  "name": "currentLane",
@@ -3905,7 +3905,7 @@
3905
3905
  "__schema": "TypeRefSchema",
3906
3906
  "location": {
3907
3907
  "filePath": "merging.main.runtime.ts",
3908
- "line": 382,
3908
+ "line": 381,
3909
3909
  "character": 19
3910
3910
  },
3911
3911
  "name": "Lane"
@@ -3917,7 +3917,7 @@
3917
3917
  "__schema": "ParameterSchema",
3918
3918
  "location": {
3919
3919
  "filePath": "merging.main.runtime.ts",
3920
- "line": 383,
3920
+ "line": 382,
3921
3921
  "character": 5
3922
3922
  },
3923
3923
  "name": "otherLane",
@@ -3925,7 +3925,7 @@
3925
3925
  "__schema": "TypeRefSchema",
3926
3926
  "location": {
3927
3927
  "filePath": "merging.main.runtime.ts",
3928
- "line": 383,
3928
+ "line": 382,
3929
3929
  "character": 17
3930
3930
  },
3931
3931
  "name": "Lane"
@@ -3938,7 +3938,7 @@
3938
3938
  "__schema": "TypeRefSchema",
3939
3939
  "location": {
3940
3940
  "filePath": "merging.main.runtime.ts",
3941
- "line": 384,
3941
+ "line": 383,
3942
3942
  "character": 6
3943
3943
  },
3944
3944
  "name": "Promise",
@@ -3947,14 +3947,14 @@
3947
3947
  "__schema": "TypeArraySchema",
3948
3948
  "location": {
3949
3949
  "filePath": "merging.main.runtime.ts",
3950
- "line": 384,
3950
+ "line": 383,
3951
3951
  "character": 14
3952
3952
  },
3953
3953
  "type": {
3954
3954
  "__schema": "TypeRefSchema",
3955
3955
  "location": {
3956
3956
  "filePath": "merging.main.runtime.ts",
3957
- "line": 384,
3957
+ "line": 383,
3958
3958
  "character": 14
3959
3959
  },
3960
3960
  "name": "ComponentMergeStatus"
@@ -3970,7 +3970,7 @@
3970
3970
  "__schema": "VariableLikeSchema",
3971
3971
  "location": {
3972
3972
  "filePath": "merging.main.runtime.ts",
3973
- "line": 677,
3973
+ "line": 676,
3974
3974
  "character": 3
3975
3975
  },
3976
3976
  "signature": "(property) MergingMain.slots: never[]",
@@ -3979,7 +3979,7 @@
3979
3979
  "__schema": "InferenceTypeSchema",
3980
3980
  "location": {
3981
3981
  "filePath": "merging.main.runtime.ts",
3982
- "line": 677,
3982
+ "line": 676,
3983
3983
  "character": 3
3984
3984
  },
3985
3985
  "type": "never[]"
@@ -3991,7 +3991,7 @@
3991
3991
  "__schema": "VariableLikeSchema",
3992
3992
  "location": {
3993
3993
  "filePath": "merging.main.runtime.ts",
3994
- "line": 678,
3994
+ "line": 677,
3995
3995
  "character": 3
3996
3996
  },
3997
3997
  "signature": "(property) MergingMain.dependencies: Aspect[]",
@@ -4000,7 +4000,7 @@
4000
4000
  "__schema": "InferenceTypeSchema",
4001
4001
  "location": {
4002
4002
  "filePath": "merging.main.runtime.ts",
4003
- "line": 678,
4003
+ "line": 677,
4004
4004
  "character": 3
4005
4005
  },
4006
4006
  "type": "Aspect[]"
@@ -4012,7 +4012,7 @@
4012
4012
  "__schema": "VariableLikeSchema",
4013
4013
  "location": {
4014
4014
  "filePath": "merging.main.runtime.ts",
4015
- "line": 694,
4015
+ "line": 693,
4016
4016
  "character": 3
4017
4017
  },
4018
4018
  "signature": "(property) MergingMain.runtime: RuntimeDefinition",
@@ -4021,7 +4021,7 @@
4021
4021
  "__schema": "InferenceTypeSchema",
4022
4022
  "location": {
4023
4023
  "filePath": "merging.main.runtime.ts",
4024
- "line": 694,
4024
+ "line": 693,
4025
4025
  "character": 3
4026
4026
  },
4027
4027
  "type": "RuntimeDefinition"
@@ -4033,7 +4033,7 @@
4033
4033
  "__schema": "FunctionLikeSchema",
4034
4034
  "location": {
4035
4035
  "filePath": "merging.main.runtime.ts",
4036
- "line": 695,
4036
+ "line": 694,
4037
4037
  "character": 3
4038
4038
  },
4039
4039
  "signature": "(method) MergingMain.provider([cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger, depResolver,]: [\n CLIMain,\n Workspace,\n ScopeMain,\n SnappingMain,\n CheckoutMain,\n InstallMain,\n LoggerMain,\n ComponentWriterMain,\n ImporterMain,\n ConfigMain,\n RemoveMain,\n GlobalConfigMain,\n ConfigMergerMain,\n DependencyResolverMain\n]): Promise<MergingMain>",
@@ -4043,7 +4043,7 @@
4043
4043
  "__schema": "ParameterSchema",
4044
4044
  "location": {
4045
4045
  "filePath": "merging.main.runtime.ts",
4046
- "line": 695,
4046
+ "line": 694,
4047
4047
  "character": 25
4048
4048
  },
4049
4049
  "name": "[ cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger, depResolver ]",
@@ -4051,7 +4051,7 @@
4051
4051
  "__schema": "TupleTypeSchema",
4052
4052
  "location": {
4053
4053
  "filePath": "merging.main.runtime.ts",
4054
- "line": 710,
4054
+ "line": 709,
4055
4055
  "character": 6
4056
4056
  },
4057
4057
  "elements": [
@@ -4059,7 +4059,7 @@
4059
4059
  "__schema": "TypeRefSchema",
4060
4060
  "location": {
4061
4061
  "filePath": "merging.main.runtime.ts",
4062
- "line": 711,
4062
+ "line": 710,
4063
4063
  "character": 5
4064
4064
  },
4065
4065
  "name": "CLIMain"
@@ -4068,7 +4068,7 @@
4068
4068
  "__schema": "TypeRefSchema",
4069
4069
  "location": {
4070
4070
  "filePath": "merging.main.runtime.ts",
4071
- "line": 712,
4071
+ "line": 711,
4072
4072
  "character": 5
4073
4073
  },
4074
4074
  "name": "Workspace"
@@ -4077,7 +4077,7 @@
4077
4077
  "__schema": "TypeRefSchema",
4078
4078
  "location": {
4079
4079
  "filePath": "merging.main.runtime.ts",
4080
- "line": 713,
4080
+ "line": 712,
4081
4081
  "character": 5
4082
4082
  },
4083
4083
  "name": "ScopeMain"
@@ -4086,7 +4086,7 @@
4086
4086
  "__schema": "TypeRefSchema",
4087
4087
  "location": {
4088
4088
  "filePath": "merging.main.runtime.ts",
4089
- "line": 714,
4089
+ "line": 713,
4090
4090
  "character": 5
4091
4091
  },
4092
4092
  "name": "SnappingMain"
@@ -4095,7 +4095,7 @@
4095
4095
  "__schema": "TypeRefSchema",
4096
4096
  "location": {
4097
4097
  "filePath": "merging.main.runtime.ts",
4098
- "line": 715,
4098
+ "line": 714,
4099
4099
  "character": 5
4100
4100
  },
4101
4101
  "name": "CheckoutMain"
@@ -4104,7 +4104,7 @@
4104
4104
  "__schema": "TypeRefSchema",
4105
4105
  "location": {
4106
4106
  "filePath": "merging.main.runtime.ts",
4107
- "line": 716,
4107
+ "line": 715,
4108
4108
  "character": 5
4109
4109
  },
4110
4110
  "name": "InstallMain"
@@ -4113,7 +4113,7 @@
4113
4113
  "__schema": "TypeRefSchema",
4114
4114
  "location": {
4115
4115
  "filePath": "merging.main.runtime.ts",
4116
- "line": 717,
4116
+ "line": 716,
4117
4117
  "character": 5
4118
4118
  },
4119
4119
  "name": "LoggerMain"
@@ -4122,7 +4122,7 @@
4122
4122
  "__schema": "TypeRefSchema",
4123
4123
  "location": {
4124
4124
  "filePath": "merging.main.runtime.ts",
4125
- "line": 718,
4125
+ "line": 717,
4126
4126
  "character": 5
4127
4127
  },
4128
4128
  "name": "ComponentWriterMain"
@@ -4131,7 +4131,7 @@
4131
4131
  "__schema": "TypeRefSchema",
4132
4132
  "location": {
4133
4133
  "filePath": "merging.main.runtime.ts",
4134
- "line": 719,
4134
+ "line": 718,
4135
4135
  "character": 5
4136
4136
  },
4137
4137
  "name": "ImporterMain"
@@ -4140,7 +4140,7 @@
4140
4140
  "__schema": "TypeRefSchema",
4141
4141
  "location": {
4142
4142
  "filePath": "merging.main.runtime.ts",
4143
- "line": 720,
4143
+ "line": 719,
4144
4144
  "character": 5
4145
4145
  },
4146
4146
  "name": "ConfigMain"
@@ -4149,7 +4149,7 @@
4149
4149
  "__schema": "TypeRefSchema",
4150
4150
  "location": {
4151
4151
  "filePath": "merging.main.runtime.ts",
4152
- "line": 721,
4152
+ "line": 720,
4153
4153
  "character": 5
4154
4154
  },
4155
4155
  "name": "RemoveMain"
@@ -4158,7 +4158,7 @@
4158
4158
  "__schema": "TypeRefSchema",
4159
4159
  "location": {
4160
4160
  "filePath": "merging.main.runtime.ts",
4161
- "line": 722,
4161
+ "line": 721,
4162
4162
  "character": 5
4163
4163
  },
4164
4164
  "name": "GlobalConfigMain"
@@ -4167,7 +4167,7 @@
4167
4167
  "__schema": "TypeRefSchema",
4168
4168
  "location": {
4169
4169
  "filePath": "merging.main.runtime.ts",
4170
- "line": 723,
4170
+ "line": 722,
4171
4171
  "character": 5
4172
4172
  },
4173
4173
  "name": "ConfigMergerMain"
@@ -4176,7 +4176,7 @@
4176
4176
  "__schema": "TypeRefSchema",
4177
4177
  "location": {
4178
4178
  "filePath": "merging.main.runtime.ts",
4179
- "line": 724,
4179
+ "line": 723,
4180
4180
  "character": 5
4181
4181
  },
4182
4182
  "name": "DependencyResolverMain"
@@ -4191,7 +4191,7 @@
4191
4191
  "__schema": "InferenceTypeSchema",
4192
4192
  "location": {
4193
4193
  "filePath": "merging.main.runtime.ts",
4194
- "line": 695,
4194
+ "line": 694,
4195
4195
  "character": 3
4196
4196
  },
4197
4197
  "type": "Promise<MergingMain>"
@@ -5907,7 +5907,7 @@
5907
5907
  "_legacy": {
5908
5908
  "scope": "teambit.component",
5909
5909
  "name": "merging",
5910
- "version": "1.0.481"
5910
+ "version": "1.0.482"
5911
5911
  },
5912
5912
  "_scope": "teambit.component"
5913
5913
  }
@@ -6727,7 +6727,7 @@
6727
6727
  "componentId": {
6728
6728
  "scope": "teambit.component",
6729
6729
  "name": "sources",
6730
- "version": "0.0.49"
6730
+ "version": "0.0.50"
6731
6731
  }
6732
6732
  },
6733
6733
  "isOptional": false
@@ -6980,7 +6980,7 @@
6980
6980
  "componentId": {
6981
6981
  "scope": "teambit.component",
6982
6982
  "name": "sources",
6983
- "version": "0.0.49"
6983
+ "version": "0.0.50"
6984
6984
  }
6985
6985
  },
6986
6986
  "isOptional": false
@@ -7214,7 +7214,7 @@
7214
7214
  "componentId": {
7215
7215
  "scope": "teambit.component",
7216
7216
  "name": "sources",
7217
- "version": "0.0.49"
7217
+ "version": "0.0.50"
7218
7218
  }
7219
7219
  },
7220
7220
  "isOptional": false
@@ -7291,7 +7291,7 @@
7291
7291
  "componentId": {
7292
7292
  "scope": "teambit.component",
7293
7293
  "name": "sources",
7294
- "version": "0.0.49"
7294
+ "version": "0.0.50"
7295
7295
  }
7296
7296
  },
7297
7297
  "isOptional": false
@@ -10588,7 +10588,7 @@
10588
10588
  "__schema": "FunctionLikeSchema",
10589
10589
  "location": {
10590
10590
  "filePath": "merging.main.runtime.ts",
10591
- "line": 354,
10591
+ "line": 353,
10592
10592
  "character": 3
10593
10593
  },
10594
10594
  "signature": "(method) MergingMain.removeFromWsJsonPolicyIfExists(componentsResults: ApplyVersionWithComps[], currentLane?: Lane, currentLaneIdsBeforeMerge?: ComponentIdList): Promise<void>",
@@ -10598,7 +10598,7 @@
10598
10598
  "__schema": "ParameterSchema",
10599
10599
  "location": {
10600
10600
  "filePath": "merging.main.runtime.ts",
10601
- "line": 355,
10601
+ "line": 354,
10602
10602
  "character": 5
10603
10603
  },
10604
10604
  "name": "componentsResults",
@@ -10606,14 +10606,14 @@
10606
10606
  "__schema": "TypeArraySchema",
10607
10607
  "location": {
10608
10608
  "filePath": "merging.main.runtime.ts",
10609
- "line": 355,
10609
+ "line": 354,
10610
10610
  "character": 24
10611
10611
  },
10612
10612
  "type": {
10613
10613
  "__schema": "TypeRefSchema",
10614
10614
  "location": {
10615
10615
  "filePath": "merging.main.runtime.ts",
10616
- "line": 355,
10616
+ "line": 354,
10617
10617
  "character": 24
10618
10618
  },
10619
10619
  "name": "ApplyVersionWithComps"
@@ -10626,7 +10626,7 @@
10626
10626
  "__schema": "ParameterSchema",
10627
10627
  "location": {
10628
10628
  "filePath": "merging.main.runtime.ts",
10629
- "line": 356,
10629
+ "line": 355,
10630
10630
  "character": 5
10631
10631
  },
10632
10632
  "name": "currentLane",
@@ -10634,7 +10634,7 @@
10634
10634
  "__schema": "TypeRefSchema",
10635
10635
  "location": {
10636
10636
  "filePath": "merging.main.runtime.ts",
10637
- "line": 356,
10637
+ "line": 355,
10638
10638
  "character": 19
10639
10639
  },
10640
10640
  "name": "Lane"
@@ -10646,7 +10646,7 @@
10646
10646
  "__schema": "ParameterSchema",
10647
10647
  "location": {
10648
10648
  "filePath": "merging.main.runtime.ts",
10649
- "line": 357,
10649
+ "line": 356,
10650
10650
  "character": 5
10651
10651
  },
10652
10652
  "name": "currentLaneIdsBeforeMerge",
@@ -10654,7 +10654,7 @@
10654
10654
  "__schema": "TypeRefSchema",
10655
10655
  "location": {
10656
10656
  "filePath": "merging.main.runtime.ts",
10657
- "line": 357,
10657
+ "line": 356,
10658
10658
  "character": 33
10659
10659
  },
10660
10660
  "name": "ComponentIdList"
@@ -10667,7 +10667,7 @@
10667
10667
  "__schema": "InferenceTypeSchema",
10668
10668
  "location": {
10669
10669
  "filePath": "merging.main.runtime.ts",
10670
- "line": 354,
10670
+ "line": 353,
10671
10671
  "character": 3
10672
10672
  },
10673
10673
  "type": "Promise<void>"
@@ -10680,14 +10680,14 @@
10680
10680
  "__schema": "FunctionLikeSchema",
10681
10681
  "location": {
10682
10682
  "filePath": "merging.main.runtime.ts",
10683
- "line": 379,
10683
+ "line": 378,
10684
10684
  "character": 3
10685
10685
  },
10686
10686
  "doc": {
10687
10687
  "__schema": "DocSchema",
10688
10688
  "location": {
10689
10689
  "filePath": "merging.main.runtime.ts",
10690
- "line": 373,
10690
+ "line": 372,
10691
10691
  "character": 3
10692
10692
  },
10693
10693
  "raw": "/**\n * this function gets called from two different commands:\n * 1. \"bit merge <ids...>\", when merging a component from a remote to the local.\n * in this case, the remote and local are on the same lane or both on main.\n * 2. \"bit lane merge\", when merging from one lane to another.\n */",
@@ -10701,7 +10701,7 @@
10701
10701
  "__schema": "ParameterSchema",
10702
10702
  "location": {
10703
10703
  "filePath": "merging.main.runtime.ts",
10704
- "line": 380,
10704
+ "line": 379,
10705
10705
  "character": 5
10706
10706
  },
10707
10707
  "name": "bitIds",
@@ -10709,14 +10709,14 @@
10709
10709
  "__schema": "TypeArraySchema",
10710
10710
  "location": {
10711
10711
  "filePath": "merging.main.runtime.ts",
10712
- "line": 380,
10712
+ "line": 379,
10713
10713
  "character": 13
10714
10714
  },
10715
10715
  "type": {
10716
10716
  "__schema": "TypeRefSchema",
10717
10717
  "location": {
10718
10718
  "filePath": "merging.main.runtime.ts",
10719
- "line": 380,
10719
+ "line": 379,
10720
10720
  "character": 13
10721
10721
  },
10722
10722
  "name": "ComponentID"
@@ -10729,7 +10729,7 @@
10729
10729
  "__schema": "ParameterSchema",
10730
10730
  "location": {
10731
10731
  "filePath": "merging.main.runtime.ts",
10732
- "line": 381,
10732
+ "line": 380,
10733
10733
  "character": 5
10734
10734
  },
10735
10735
  "name": "options",
@@ -10737,7 +10737,7 @@
10737
10737
  "__schema": "TypeRefSchema",
10738
10738
  "location": {
10739
10739
  "filePath": "merging.main.runtime.ts",
10740
- "line": 381,
10740
+ "line": 380,
10741
10741
  "character": 14
10742
10742
  },
10743
10743
  "name": "MergeStatusProviderOptions"
@@ -10749,7 +10749,7 @@
10749
10749
  "__schema": "ParameterSchema",
10750
10750
  "location": {
10751
10751
  "filePath": "merging.main.runtime.ts",
10752
- "line": 382,
10752
+ "line": 381,
10753
10753
  "character": 5
10754
10754
  },
10755
10755
  "name": "currentLane",
@@ -10757,7 +10757,7 @@
10757
10757
  "__schema": "TypeRefSchema",
10758
10758
  "location": {
10759
10759
  "filePath": "merging.main.runtime.ts",
10760
- "line": 382,
10760
+ "line": 381,
10761
10761
  "character": 19
10762
10762
  },
10763
10763
  "name": "Lane"
@@ -10769,7 +10769,7 @@
10769
10769
  "__schema": "ParameterSchema",
10770
10770
  "location": {
10771
10771
  "filePath": "merging.main.runtime.ts",
10772
- "line": 383,
10772
+ "line": 382,
10773
10773
  "character": 5
10774
10774
  },
10775
10775
  "name": "otherLane",
@@ -10777,7 +10777,7 @@
10777
10777
  "__schema": "TypeRefSchema",
10778
10778
  "location": {
10779
10779
  "filePath": "merging.main.runtime.ts",
10780
- "line": 383,
10780
+ "line": 382,
10781
10781
  "character": 17
10782
10782
  },
10783
10783
  "name": "Lane"
@@ -10790,7 +10790,7 @@
10790
10790
  "__schema": "TypeRefSchema",
10791
10791
  "location": {
10792
10792
  "filePath": "merging.main.runtime.ts",
10793
- "line": 384,
10793
+ "line": 383,
10794
10794
  "character": 6
10795
10795
  },
10796
10796
  "name": "Promise",
@@ -10799,14 +10799,14 @@
10799
10799
  "__schema": "TypeArraySchema",
10800
10800
  "location": {
10801
10801
  "filePath": "merging.main.runtime.ts",
10802
- "line": 384,
10802
+ "line": 383,
10803
10803
  "character": 14
10804
10804
  },
10805
10805
  "type": {
10806
10806
  "__schema": "TypeRefSchema",
10807
10807
  "location": {
10808
10808
  "filePath": "merging.main.runtime.ts",
10809
- "line": 384,
10809
+ "line": 383,
10810
10810
  "character": 14
10811
10811
  },
10812
10812
  "name": "ComponentMergeStatus"
@@ -10822,7 +10822,7 @@
10822
10822
  "__schema": "VariableLikeSchema",
10823
10823
  "location": {
10824
10824
  "filePath": "merging.main.runtime.ts",
10825
- "line": 677,
10825
+ "line": 676,
10826
10826
  "character": 3
10827
10827
  },
10828
10828
  "signature": "(property) MergingMain.slots: never[]",
@@ -10831,7 +10831,7 @@
10831
10831
  "__schema": "InferenceTypeSchema",
10832
10832
  "location": {
10833
10833
  "filePath": "merging.main.runtime.ts",
10834
- "line": 677,
10834
+ "line": 676,
10835
10835
  "character": 3
10836
10836
  },
10837
10837
  "type": "never[]"
@@ -10843,7 +10843,7 @@
10843
10843
  "__schema": "VariableLikeSchema",
10844
10844
  "location": {
10845
10845
  "filePath": "merging.main.runtime.ts",
10846
- "line": 678,
10846
+ "line": 677,
10847
10847
  "character": 3
10848
10848
  },
10849
10849
  "signature": "(property) MergingMain.dependencies: Aspect[]",
@@ -10852,7 +10852,7 @@
10852
10852
  "__schema": "InferenceTypeSchema",
10853
10853
  "location": {
10854
10854
  "filePath": "merging.main.runtime.ts",
10855
- "line": 678,
10855
+ "line": 677,
10856
10856
  "character": 3
10857
10857
  },
10858
10858
  "type": "Aspect[]"
@@ -10864,7 +10864,7 @@
10864
10864
  "__schema": "VariableLikeSchema",
10865
10865
  "location": {
10866
10866
  "filePath": "merging.main.runtime.ts",
10867
- "line": 694,
10867
+ "line": 693,
10868
10868
  "character": 3
10869
10869
  },
10870
10870
  "signature": "(property) MergingMain.runtime: RuntimeDefinition",
@@ -10873,7 +10873,7 @@
10873
10873
  "__schema": "InferenceTypeSchema",
10874
10874
  "location": {
10875
10875
  "filePath": "merging.main.runtime.ts",
10876
- "line": 694,
10876
+ "line": 693,
10877
10877
  "character": 3
10878
10878
  },
10879
10879
  "type": "RuntimeDefinition"
@@ -10885,7 +10885,7 @@
10885
10885
  "__schema": "FunctionLikeSchema",
10886
10886
  "location": {
10887
10887
  "filePath": "merging.main.runtime.ts",
10888
- "line": 695,
10888
+ "line": 694,
10889
10889
  "character": 3
10890
10890
  },
10891
10891
  "signature": "(method) MergingMain.provider([cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger, depResolver,]: [\n CLIMain,\n Workspace,\n ScopeMain,\n SnappingMain,\n CheckoutMain,\n InstallMain,\n LoggerMain,\n ComponentWriterMain,\n ImporterMain,\n ConfigMain,\n RemoveMain,\n GlobalConfigMain,\n ConfigMergerMain,\n DependencyResolverMain\n]): Promise<MergingMain>",
@@ -10895,7 +10895,7 @@
10895
10895
  "__schema": "ParameterSchema",
10896
10896
  "location": {
10897
10897
  "filePath": "merging.main.runtime.ts",
10898
- "line": 695,
10898
+ "line": 694,
10899
10899
  "character": 25
10900
10900
  },
10901
10901
  "name": "[ cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger, depResolver ]",
@@ -10903,7 +10903,7 @@
10903
10903
  "__schema": "TupleTypeSchema",
10904
10904
  "location": {
10905
10905
  "filePath": "merging.main.runtime.ts",
10906
- "line": 710,
10906
+ "line": 709,
10907
10907
  "character": 6
10908
10908
  },
10909
10909
  "elements": [
@@ -10911,7 +10911,7 @@
10911
10911
  "__schema": "TypeRefSchema",
10912
10912
  "location": {
10913
10913
  "filePath": "merging.main.runtime.ts",
10914
- "line": 711,
10914
+ "line": 710,
10915
10915
  "character": 5
10916
10916
  },
10917
10917
  "name": "CLIMain"
@@ -10920,7 +10920,7 @@
10920
10920
  "__schema": "TypeRefSchema",
10921
10921
  "location": {
10922
10922
  "filePath": "merging.main.runtime.ts",
10923
- "line": 712,
10923
+ "line": 711,
10924
10924
  "character": 5
10925
10925
  },
10926
10926
  "name": "Workspace"
@@ -10929,7 +10929,7 @@
10929
10929
  "__schema": "TypeRefSchema",
10930
10930
  "location": {
10931
10931
  "filePath": "merging.main.runtime.ts",
10932
- "line": 713,
10932
+ "line": 712,
10933
10933
  "character": 5
10934
10934
  },
10935
10935
  "name": "ScopeMain"
@@ -10938,7 +10938,7 @@
10938
10938
  "__schema": "TypeRefSchema",
10939
10939
  "location": {
10940
10940
  "filePath": "merging.main.runtime.ts",
10941
- "line": 714,
10941
+ "line": 713,
10942
10942
  "character": 5
10943
10943
  },
10944
10944
  "name": "SnappingMain"
@@ -10947,7 +10947,7 @@
10947
10947
  "__schema": "TypeRefSchema",
10948
10948
  "location": {
10949
10949
  "filePath": "merging.main.runtime.ts",
10950
- "line": 715,
10950
+ "line": 714,
10951
10951
  "character": 5
10952
10952
  },
10953
10953
  "name": "CheckoutMain"
@@ -10956,7 +10956,7 @@
10956
10956
  "__schema": "TypeRefSchema",
10957
10957
  "location": {
10958
10958
  "filePath": "merging.main.runtime.ts",
10959
- "line": 716,
10959
+ "line": 715,
10960
10960
  "character": 5
10961
10961
  },
10962
10962
  "name": "InstallMain"
@@ -10965,7 +10965,7 @@
10965
10965
  "__schema": "TypeRefSchema",
10966
10966
  "location": {
10967
10967
  "filePath": "merging.main.runtime.ts",
10968
- "line": 717,
10968
+ "line": 716,
10969
10969
  "character": 5
10970
10970
  },
10971
10971
  "name": "LoggerMain"
@@ -10974,7 +10974,7 @@
10974
10974
  "__schema": "TypeRefSchema",
10975
10975
  "location": {
10976
10976
  "filePath": "merging.main.runtime.ts",
10977
- "line": 718,
10977
+ "line": 717,
10978
10978
  "character": 5
10979
10979
  },
10980
10980
  "name": "ComponentWriterMain"
@@ -10983,7 +10983,7 @@
10983
10983
  "__schema": "TypeRefSchema",
10984
10984
  "location": {
10985
10985
  "filePath": "merging.main.runtime.ts",
10986
- "line": 719,
10986
+ "line": 718,
10987
10987
  "character": 5
10988
10988
  },
10989
10989
  "name": "ImporterMain"
@@ -10992,7 +10992,7 @@
10992
10992
  "__schema": "TypeRefSchema",
10993
10993
  "location": {
10994
10994
  "filePath": "merging.main.runtime.ts",
10995
- "line": 720,
10995
+ "line": 719,
10996
10996
  "character": 5
10997
10997
  },
10998
10998
  "name": "ConfigMain"
@@ -11001,7 +11001,7 @@
11001
11001
  "__schema": "TypeRefSchema",
11002
11002
  "location": {
11003
11003
  "filePath": "merging.main.runtime.ts",
11004
- "line": 721,
11004
+ "line": 720,
11005
11005
  "character": 5
11006
11006
  },
11007
11007
  "name": "RemoveMain"
@@ -11010,7 +11010,7 @@
11010
11010
  "__schema": "TypeRefSchema",
11011
11011
  "location": {
11012
11012
  "filePath": "merging.main.runtime.ts",
11013
- "line": 722,
11013
+ "line": 721,
11014
11014
  "character": 5
11015
11015
  },
11016
11016
  "name": "GlobalConfigMain"
@@ -11019,7 +11019,7 @@
11019
11019
  "__schema": "TypeRefSchema",
11020
11020
  "location": {
11021
11021
  "filePath": "merging.main.runtime.ts",
11022
- "line": 723,
11022
+ "line": 722,
11023
11023
  "character": 5
11024
11024
  },
11025
11025
  "name": "ConfigMergerMain"
@@ -11028,7 +11028,7 @@
11028
11028
  "__schema": "TypeRefSchema",
11029
11029
  "location": {
11030
11030
  "filePath": "merging.main.runtime.ts",
11031
- "line": 724,
11031
+ "line": 723,
11032
11032
  "character": 5
11033
11033
  },
11034
11034
  "name": "DependencyResolverMain"
@@ -11043,7 +11043,7 @@
11043
11043
  "__schema": "InferenceTypeSchema",
11044
11044
  "location": {
11045
11045
  "filePath": "merging.main.runtime.ts",
11046
- "line": 695,
11046
+ "line": 694,
11047
11047
  "character": 3
11048
11048
  },
11049
11049
  "type": "Promise<MergingMain>"
@@ -11170,7 +11170,7 @@
11170
11170
  "__schema": "UnImplementedSchema",
11171
11171
  "location": {
11172
11172
  "filePath": "merging.main.runtime.ts",
11173
- "line": 746,
11173
+ "line": 745,
11174
11174
  "character": 1
11175
11175
  },
11176
11176
  "name": "MergingAspect.addRuntime(MergingMain);",
@@ -11219,7 +11219,7 @@
11219
11219
  "componentId": {
11220
11220
  "scope": "teambit.component",
11221
11221
  "name": "merging",
11222
- "version": "1.0.481"
11222
+ "version": "1.0.482"
11223
11223
  },
11224
11224
  "taggedModuleExports": []
11225
11225
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_workspace","_legacy","_snapping","_pMapSeries","_interopRequireDefault","_componentId","_bitError","_laneId","_chalk","_config","_remove","_toolboxPath","_pkgModules","_componentWriter","_importer","_logger","_globalConfig","_lodash","_checkout","_configMerger","_dependencyResolver","_install","_scope","_mergeCmd","_merging","_mergeStatusProvider","_mergeVersion","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MergingMain","constructor","workspace","scope","install","snapping","checkout","logger","componentWriter","importer","config","remove","configMerger","depResolver","merge","pattern","mergeStrategy","abort","resolve","noAutoSnap","message","build","skipDependencyInstallation","OutsideWorkspaceError","consumer","mergeResults","resolveMerge","abortMerge","bitIds","getComponentsToMerge","mergeComponentsFromRemote","onDestroy","snapMessage","currentLaneId","getCurrentLaneId","currentLaneObject","getCurrentLaneObject","allComponentsStatus","getAllComponentsStatus","failedComponents","c","unchangedMessage","unchangedLegitimately","failureMsgs","map","failedComponent","chalk","bold","id","toString","red","join","BitError","mergeSnaps","otherLaneId","currentLane","noSnap","tag","legacyScope","componentWithConflict","find","component","hasConflicts","getMergeStrategyInteractive","componentStatus","shouldBeRemoved","componentIdsToRemove","changeVersion","undefined","succeededComponents","currentLaneIdsBeforeMerge","toComponentIds","componentsResults","applyVersionMultiple","allConfigMerge","compact","configMergeResult","workspaceDepsUpdates","workspaceDepsConflicts","workspaceDepsUnchanged","updateWorkspaceJsoncWithDepsIfNeeded","workspaceConfigConflictWriteError","writeWorkspaceJsoncWithConflictsGracefully","generateConfigMergeConflictFileForAll","objects","add","persist","unmergedComponents","write","writeBitMap","removeFromWsJsonPolicyIfExists","compBitIdsToRemove","ComponentIdList","fromArray","deleteComponentsFiles","cleanFromBitMap","componentsHasConfigMergeConflicts","some","leftUnresolvedConflicts","dedupe","updateExisting","import","err","error","consoleFailure","getSnapOrTagResults","idsToTag","results","tagAllLaneComponent","taggedComponents","autoTaggedResults","removedComponents","snappedComponents","autoSnappedResults","snapResolvedComponents","toLaneId","mergeSnapResults","mergeSnapError","bitMapSnapshot","bitMap","takeSnapshot","restoreFromSnapshot","components","applyVersionResult","workspaceConfigUpdateResult","newlyIntroducedIds","hasWithoutVersion","newlyIntroducedComponentIds","legacyCompToWrite","packages","componentIdToPackageName","isRemoved","removeFromRootPolicy","persistConfig","getMergeStatus","options","otherLane","mergeStatusProvider","MergeStatusProvider","getStatus","mapSeries","currentComponent","resolvedUnrelated","modelComponent","getModelComponent","updatedLaneId","isDefault","LaneId","from","name","applyVersion","remoteHead","getRef","version","compsToWrite","manyComponentsWriterOpts","writeConfig","reasonForBitmapChange","writeMany","filesStatus","unmergedComponent","fullName","head","laneId","addToCurrentLane","Error","isPartOfLane","isEqualWithoutVersion","addComponent","handleResolveUnrelated","headOnCurrentLane","unrelated","unrelatedHead","unrelatedLaneId","addEntry","markAllFilesAsUnchanged","files","file","pathNormalizeToLinux","relative","FileStatus","unchanged","MergeOptions","ours","strategy","remoteId","idToLoad","theirs","legacyComponent","loadComponentFromModelImportIfNeeded","getConsumerComponent","updateFileStatus","modifiedStatus","modifiedFiles","applyModifiedVersion","removeFilesIfNeeded","successfullyMergedConfig","getSuccessfullyMergedConfig","mergedConfig","manual","unmergedPaths","f","conflict","filePath","setHead","markVersionAsLocal","ids","getIdsForUnmerged","reset","removeComponent","abortedComponents","snap","legacyBitIds","resolvedComponents","localLaneObject","Promise","all","bitId","remoteScopeName","remoteLaneId","remoteLanes","laneIdStr","toStringWithoutVersion","shouldSquash","getComponents","debug","ComponentID","fromObject","snapFromScope","componentId","lane","tagMessage","unmodified","componentIds","idsByPattern","entry","getEntry","unresolvedComponents","u","componentsList","ComponentsList","mergePending","listMergePendingComponents","provider","cli","loggerMain","compWriter","globalConfig","createLogger","MergingAspect","merging","register","MergeCmd","exports","CLIAspect","WorkspaceAspect","ScopeAspect","SnappingAspect","CheckoutAspect","InstallAspect","LoggerAspect","ComponentWriterAspect","ImporterAspect","ConfigAspect","RemoveAspect","GlobalConfigAspect","ConfigMergerAspect","DependencyResolverAspect","MainRuntime","addRuntime"],"sources":["merging.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport { ComponentsList } from '@teambit/legacy.component-list';\nimport { SnappingAspect, SnappingMain, TagResults } from '@teambit/snapping';\nimport mapSeries from 'p-map-series';\nimport { ComponentID, ComponentIdList } from '@teambit/component-id';\nimport { BitError } from '@teambit/bit-error';\nimport { LaneId } from '@teambit/lane-id';\nimport { AutoTagResult } from '@teambit/legacy/dist/scope/component-ops/auto-tag';\nimport { UnmergedComponent } from '@teambit/legacy/dist/scope/lanes/unmerged-components';\nimport { Lane, ModelComponent } from '@teambit/legacy/dist/scope/models';\nimport { Ref } from '@teambit/legacy/dist/scope/objects';\nimport chalk from 'chalk';\nimport { ConfigAspect, ConfigMain } from '@teambit/config';\nimport { RemoveAspect, RemoveMain, deleteComponentsFiles } from '@teambit/remove';\nimport { pathNormalizeToLinux } from '@teambit/toolbox.path.path';\nimport { componentIdToPackageName } from '@teambit/pkg.modules.component-package-name';\nimport { ComponentWriterAspect, ComponentWriterMain } from '@teambit/component-writer';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component/consumer-component';\nimport { ImporterAspect, ImporterMain } from '@teambit/importer';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { GlobalConfigAspect, GlobalConfigMain } from '@teambit/global-config';\nimport { compact } from 'lodash';\nimport {\n ApplyVersionWithComps,\n CheckoutAspect,\n CheckoutMain,\n ComponentStatusBase,\n applyModifiedVersion,\n removeFilesIfNeeded,\n updateFileStatus,\n} from '@teambit/checkout';\nimport {\n ConfigMergerAspect,\n ConfigMergerMain,\n ConfigMergeResult,\n WorkspaceConfigUpdateResult,\n} from '@teambit/config-merger';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { InstallMain, InstallAspect } from '@teambit/install';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { MergeCmd } from './merge-cmd';\nimport { MergingAspect } from './merging.aspect';\nimport { MergeStatusProvider, MergeStatusProviderOptions } from './merge-status-provider';\nimport {\n MergeStrategy,\n FileStatus,\n getMergeStrategyInteractive,\n MergeResultsThreeWay,\n MergeOptions,\n} from './merge-version';\n\ntype ResolveUnrelatedData = {\n strategy: MergeStrategy;\n headOnCurrentLane: Ref;\n unrelatedHead: Ref;\n unrelatedLaneId: LaneId;\n};\n\nexport type ComponentMergeStatus = ComponentStatusBase & {\n mergeResults?: MergeResultsThreeWay | null;\n divergeData?: SnapsDistance;\n resolvedUnrelated?: ResolveUnrelatedData;\n configMergeResult?: ConfigMergeResult;\n};\n\nexport type ComponentMergeStatusBeforeMergeAttempt = ComponentStatusBase & {\n divergeData?: SnapsDistance;\n resolvedUnrelated?: ResolveUnrelatedData;\n mergeProps?: {\n otherLaneHead: Ref;\n currentId: ComponentID;\n modelComponent: ModelComponent;\n };\n};\n\nexport type FailedComponents = { id: ComponentID; unchangedMessage: string; unchangedLegitimately?: boolean };\n\n// fileName is PathLinux. TS doesn't let anything else in the keys other than string and number\nexport type FilesStatus = { [fileName: string]: keyof typeof FileStatus };\n\nexport type MergeSnapResults = {\n snappedComponents: ConsumerComponent[];\n autoSnappedResults: AutoTagResult[];\n removedComponents?: ComponentIdList;\n exportedIds?: ComponentID[];\n} | null;\n\nexport type ApplyVersionResult = { id: ComponentID; filesStatus: FilesStatus };\n\nexport type ApplyVersionResults = {\n components?: ApplyVersionResult[];\n version?: string;\n failedComponents?: FailedComponents[];\n removedComponents?: ComponentID[];\n addedComponents?: ComponentID[]; // relevant when restoreMissingComponents is true (e.g. bit lane merge-abort)\n newComponents?: ComponentID[]; // relevant for \"bit stash load\". (stashedBitmapEntries is populated)\n resolvedComponents?: ConsumerComponent[]; // relevant for bit merge --resolve\n abortedComponents?: ApplyVersionResult[]; // relevant for bit merge --abort\n mergeSnapResults?: MergeSnapResults;\n mergeSnapError?: Error;\n leftUnresolvedConflicts?: boolean;\n verbose?: boolean;\n newFromLane?: string[];\n newFromLaneAdded?: boolean;\n installationError?: Error; // in case the package manager failed, it won't throw, instead, it'll return error here\n compilationError?: Error; // in case the compiler failed, it won't throw, instead, it'll return error here\n workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult;\n};\n\nexport class MergingMain {\n constructor(\n private workspace: Workspace,\n private scope: ScopeMain,\n private install: InstallMain,\n private snapping: SnappingMain,\n private checkout: CheckoutMain,\n private logger: Logger,\n private componentWriter: ComponentWriterMain,\n private importer: ImporterMain,\n private config: ConfigMain,\n private remove: RemoveMain,\n private configMerger: ConfigMergerMain,\n private depResolver: DependencyResolverMain\n ) {}\n\n async merge(\n pattern: string,\n mergeStrategy: MergeStrategy,\n abort: boolean,\n resolve: boolean,\n noAutoSnap: boolean,\n message: string,\n build: boolean,\n skipDependencyInstallation: boolean\n ): Promise<ApplyVersionResults> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const consumer: Consumer = this.workspace.consumer;\n let mergeResults;\n if (resolve) {\n mergeResults = await this.resolveMerge(pattern, message, build);\n } else if (abort) {\n mergeResults = await this.abortMerge(pattern);\n } else {\n const bitIds = await this.getComponentsToMerge(consumer, pattern);\n mergeResults = await this.mergeComponentsFromRemote(\n consumer,\n bitIds,\n mergeStrategy,\n noAutoSnap,\n message,\n build,\n skipDependencyInstallation\n );\n }\n await consumer.onDestroy('merge');\n return mergeResults;\n }\n\n /**\n * when user is on main, it merges the remote main components into local.\n * when user is on a lane, it merges the remote lane components into the local lane.\n */\n async mergeComponentsFromRemote(\n consumer: Consumer,\n bitIds: ComponentID[],\n mergeStrategy: MergeStrategy,\n noAutoSnap: boolean,\n snapMessage: string,\n build: boolean,\n skipDependencyInstallation: boolean\n ): Promise<ApplyVersionResults> {\n const currentLaneId = consumer.getCurrentLaneId();\n const currentLaneObject = await consumer.getCurrentLaneObject();\n const allComponentsStatus = await this.getAllComponentsStatus(\n bitIds,\n currentLaneId,\n currentLaneObject,\n mergeStrategy\n );\n const failedComponents = allComponentsStatus.filter((c) => c.unchangedMessage && !c.unchangedLegitimately);\n if (failedComponents.length) {\n const failureMsgs = failedComponents\n .map(\n (failedComponent) =>\n `${chalk.bold(failedComponent.id.toString())} - ${chalk.red(failedComponent.unchangedMessage as string)}`\n )\n .join('\\n');\n throw new BitError(`unable to merge due to the following failures:\\n${failureMsgs}`);\n }\n\n return this.mergeSnaps({\n mergeStrategy,\n allComponentsStatus,\n otherLaneId: currentLaneId,\n currentLane: currentLaneObject,\n noAutoSnap: noAutoSnap,\n snapMessage,\n build,\n skipDependencyInstallation,\n });\n }\n\n /**\n * merge multiple components according to the \"allComponentsStatus\".\n */\n async mergeSnaps({\n mergeStrategy,\n allComponentsStatus,\n otherLaneId,\n currentLane,\n noAutoSnap,\n noSnap,\n tag,\n snapMessage,\n build,\n skipDependencyInstallation,\n }: {\n mergeStrategy: MergeStrategy;\n allComponentsStatus: ComponentMergeStatus[];\n otherLaneId: LaneId;\n currentLane?: Lane;\n noAutoSnap?: boolean;\n noSnap?: boolean;\n tag?: boolean;\n snapMessage?: string;\n build?: boolean;\n skipDependencyInstallation?: boolean;\n }): Promise<ApplyVersionResults> {\n const consumer = this.workspace?.consumer;\n const legacyScope = this.scope.legacyScope;\n const componentWithConflict = allComponentsStatus.find(\n (component) => component.mergeResults && component.mergeResults.hasConflicts\n );\n if (componentWithConflict && !mergeStrategy) {\n mergeStrategy = await getMergeStrategyInteractive();\n }\n const failedComponents: FailedComponents[] = allComponentsStatus\n .filter((componentStatus) => componentStatus.unchangedMessage)\n .filter((componentStatus) => !componentStatus.shouldBeRemoved)\n .map((componentStatus) => ({\n id: componentStatus.id,\n unchangedMessage: componentStatus.unchangedMessage as string,\n unchangedLegitimately: componentStatus.unchangedLegitimately,\n }));\n\n const componentIdsToRemove = allComponentsStatus\n .filter((componentStatus) => componentStatus.shouldBeRemoved)\n .map((c) => c.id.changeVersion(undefined));\n\n const succeededComponents = allComponentsStatus.filter((componentStatus) => !componentStatus.unchangedMessage);\n\n const currentLaneIdsBeforeMerge = currentLane?.toComponentIds();\n\n const componentsResults = await this.applyVersionMultiple(\n succeededComponents,\n otherLaneId,\n mergeStrategy,\n currentLane\n );\n\n const allConfigMerge = compact(succeededComponents.map((c) => c.configMergeResult));\n\n const { workspaceDepsUpdates, workspaceDepsConflicts, workspaceDepsUnchanged } = this.workspace\n ? await this.configMerger.updateWorkspaceJsoncWithDepsIfNeeded(allConfigMerge)\n : { workspaceDepsUpdates: undefined, workspaceDepsConflicts: undefined, workspaceDepsUnchanged: undefined };\n\n let workspaceConfigConflictWriteError: Error | undefined;\n if (workspaceDepsConflicts) {\n workspaceConfigConflictWriteError = await this.configMerger.writeWorkspaceJsoncWithConflictsGracefully(\n workspaceDepsConflicts\n );\n }\n if (this.workspace) await this.configMerger.generateConfigMergeConflictFileForAll(allConfigMerge);\n\n if (currentLane) legacyScope.objects.add(currentLane);\n\n await legacyScope.objects.persist(); // persist anyway, if currentLane is null it should save all main heads\n\n await legacyScope.objects.unmergedComponents.write();\n\n if (this.workspace) {\n await consumer.writeBitMap(`merge ${otherLaneId.toString()}`);\n await this.removeFromWsJsonPolicyIfExists(componentsResults, currentLane, currentLaneIdsBeforeMerge);\n }\n\n if (componentIdsToRemove.length && this.workspace) {\n const compBitIdsToRemove = ComponentIdList.fromArray(componentIdsToRemove);\n await deleteComponentsFiles(consumer, compBitIdsToRemove);\n await consumer.cleanFromBitMap(compBitIdsToRemove);\n }\n\n const componentsHasConfigMergeConflicts = allComponentsStatus.some((c) => c.configMergeResult?.hasConflicts());\n const leftUnresolvedConflicts = componentWithConflict && mergeStrategy === 'manual';\n if (!skipDependencyInstallation && !leftUnresolvedConflicts && !componentsHasConfigMergeConflicts) {\n try {\n await this.install.install(undefined, {\n dedupe: true,\n updateExisting: false,\n import: false,\n });\n } catch (err: any) {\n this.logger.error(`failed installing packages`, err);\n this.logger.consoleFailure(\n `failed installing packages, see the log for full stacktrace. error: ${err.message}`\n );\n }\n }\n\n const getSnapOrTagResults = async (): Promise<MergeSnapResults> => {\n // if one of the component has conflict, don't snap-merge. otherwise, some of the components would be snap-merged\n // and some not. besides the fact that it could by mistake tag dependent, it's a confusing state. better not snap.\n if (noAutoSnap || noSnap || leftUnresolvedConflicts || componentsHasConfigMergeConflicts) {\n return null;\n }\n if (tag) {\n const idsToTag = allComponentsStatus.map((c) => c.id);\n const results = await this.tagAllLaneComponent(idsToTag, snapMessage, build);\n if (!results) return null;\n const { taggedComponents, autoTaggedResults, removedComponents } = results;\n return { snappedComponents: taggedComponents, autoSnappedResults: autoTaggedResults, removedComponents };\n }\n return this.snapResolvedComponents(snapMessage, build, currentLane?.toLaneId());\n };\n let mergeSnapResults: MergeSnapResults = null;\n let mergeSnapError: Error | undefined;\n const bitMapSnapshot = this.workspace ? this.workspace.bitMap.takeSnapshot() : null;\n try {\n mergeSnapResults = await getSnapOrTagResults();\n } catch (err: any) {\n this.logger.error('failed running snap. mergeSnapError:', err);\n mergeSnapError = err;\n if (bitMapSnapshot) this.workspace.bitMap.restoreFromSnapshot(bitMapSnapshot);\n }\n\n return {\n components: componentsResults.map((c) => c.applyVersionResult),\n failedComponents,\n removedComponents: [...componentIdsToRemove, ...(mergeSnapResults?.removedComponents || [])],\n mergeSnapResults,\n mergeSnapError,\n workspaceConfigUpdateResult: {\n workspaceDepsUpdates,\n workspaceDepsConflicts,\n workspaceDepsUnchanged,\n workspaceConfigConflictWriteError,\n },\n leftUnresolvedConflicts,\n };\n }\n\n async removeFromWsJsonPolicyIfExists(\n componentsResults: ApplyVersionWithComps[],\n currentLane?: Lane,\n currentLaneIdsBeforeMerge?: ComponentIdList\n ) {\n const newlyIntroducedIds = currentLane\n ?.toComponentIds()\n .filter((id) => !currentLaneIdsBeforeMerge?.hasWithoutVersion(id));\n const newlyIntroducedComponentIds = ComponentIdList.fromArray(newlyIntroducedIds || []);\n const components = compact(\n componentsResults\n .map((c) => c.legacyCompToWrite)\n .filter((c) => c && newlyIntroducedComponentIds.hasWithoutVersion(c.id))\n );\n const packages = components.map((c) => componentIdToPackageName(c));\n const isRemoved = this.depResolver.removeFromRootPolicy(packages);\n if (isRemoved) await this.depResolver.persistConfig('merge (remove packages)');\n }\n\n /**\n * this function gets called from two different commands:\n * 1. \"bit merge <ids...>\", when merging a component from a remote to the local.\n * in this case, the remote and local are on the same lane or both on main.\n * 2. \"bit lane merge\", when merging from one lane to another.\n */\n async getMergeStatus(\n bitIds: ComponentID[], // the id.version is the version we want to merge to the current component\n options: MergeStatusProviderOptions,\n currentLane?: Lane, // currently checked out lane. if on main, then it's null.\n otherLane?: Lane // the lane we want to merged to our lane. (null if it's \"main\").\n ): Promise<ComponentMergeStatus[]> {\n const mergeStatusProvider = new MergeStatusProvider(\n this.scope,\n this.logger,\n this.importer,\n options,\n this.workspace,\n currentLane,\n otherLane\n );\n return mergeStatusProvider.getStatus(bitIds);\n }\n\n private async applyVersionMultiple(\n succeededComponents: ComponentMergeStatus[],\n otherLaneId: LaneId,\n mergeStrategy: MergeStrategy,\n currentLane?: Lane\n ): Promise<ApplyVersionWithComps[]> {\n const componentsResults = await mapSeries(\n succeededComponents,\n async ({ currentComponent, id, mergeResults, resolvedUnrelated, configMergeResult }) => {\n const modelComponent = await this.scope.legacyScope.getModelComponent(id);\n const updatedLaneId = otherLaneId.isDefault() ? LaneId.from(otherLaneId.name, id.scope as string) : otherLaneId;\n return this.applyVersion({\n currentComponent,\n id,\n mergeResults,\n mergeStrategy,\n remoteHead: modelComponent.getRef(id.version as string) as Ref,\n otherLaneId: updatedLaneId,\n currentLane,\n resolvedUnrelated,\n configMergeResult,\n });\n }\n );\n\n if (this.workspace) {\n const compsToWrite = compact(componentsResults.map((c) => c.legacyCompToWrite));\n const manyComponentsWriterOpts = {\n consumer: this.workspace.consumer,\n components: compsToWrite,\n skipDependencyInstallation: true,\n writeConfig: false, // @todo: should write if config exists before, needs to figure out how to do it.\n reasonForBitmapChange: 'merge',\n };\n await this.componentWriter.writeMany(manyComponentsWriterOpts);\n }\n\n return componentsResults;\n }\n\n private async applyVersion({\n currentComponent,\n id,\n mergeResults,\n mergeStrategy,\n remoteHead,\n otherLaneId,\n currentLane,\n resolvedUnrelated,\n configMergeResult,\n }: {\n currentComponent: ConsumerComponent | null | undefined;\n id: ComponentID;\n mergeResults: MergeResultsThreeWay | null | undefined;\n mergeStrategy: MergeStrategy;\n remoteHead: Ref;\n otherLaneId: LaneId;\n currentLane?: Lane;\n resolvedUnrelated?: ResolveUnrelatedData;\n configMergeResult?: ConfigMergeResult;\n }): Promise<ApplyVersionWithComps> {\n const legacyScope = this.scope.legacyScope;\n let filesStatus = {};\n const unmergedComponent: UnmergedComponent = {\n id: { name: id.fullName, scope: id.scope },\n head: remoteHead,\n laneId: otherLaneId,\n };\n id = currentComponent ? currentComponent.id : id;\n const modelComponent = await legacyScope.getModelComponent(id);\n\n const addToCurrentLane = (head: Ref) => {\n if (!currentLane) throw new Error('currentLane must be defined when adding to the lane');\n if (otherLaneId.isDefault()) {\n const isPartOfLane = currentLane.components.find((c) => c.id.isEqualWithoutVersion(id));\n if (!isPartOfLane) return;\n }\n currentLane.addComponent({ id, head });\n };\n\n const handleResolveUnrelated = (legacyCompToWrite?: ConsumerComponent) => {\n if (!currentComponent) throw new Error('currentComponent must be defined when resolvedUnrelated');\n // because when on a main, we don't allow merging lanes with unrelated. we asks users to switch to the lane\n // first and then merge with --resolve-unrelated\n if (!currentLane) throw new Error('currentLane must be defined when resolvedUnrelated');\n if (!resolvedUnrelated) throw new Error('resolvedUnrelated must be populated');\n addToCurrentLane(resolvedUnrelated.headOnCurrentLane);\n unmergedComponent.unrelated = {\n unrelatedHead: resolvedUnrelated.unrelatedHead,\n headOnCurrentLane: resolvedUnrelated.headOnCurrentLane,\n unrelatedLaneId: resolvedUnrelated.unrelatedLaneId,\n };\n legacyScope.objects.unmergedComponents.addEntry(unmergedComponent);\n return { applyVersionResult: { id, filesStatus }, component: currentComponent, legacyCompToWrite };\n };\n\n const markAllFilesAsUnchanged = () => {\n if (!currentComponent) throw new Error(`applyVersion expect to get currentComponent for ${id.toString()}`);\n currentComponent.files.forEach((file) => {\n filesStatus[pathNormalizeToLinux(file.relative)] = FileStatus.unchanged;\n });\n };\n if (mergeResults && mergeResults.hasConflicts && mergeStrategy === MergeOptions.ours) {\n markAllFilesAsUnchanged();\n legacyScope.objects.unmergedComponents.addEntry(unmergedComponent);\n return { applyVersionResult: { id, filesStatus }, component: currentComponent || undefined };\n }\n if (resolvedUnrelated?.strategy === 'ours') {\n markAllFilesAsUnchanged();\n return handleResolveUnrelated();\n }\n const remoteId = id.changeVersion(remoteHead.toString());\n const idToLoad = !mergeResults || mergeStrategy === MergeOptions.theirs ? remoteId : id;\n const legacyComponent = this.workspace\n ? await this.workspace.consumer.loadComponentFromModelImportIfNeeded(idToLoad)\n : await legacyScope.getConsumerComponent(idToLoad); // when loading from the scope, we import all needed components first, so it should be fine. otherwise, change the code to import it here\n if (mergeResults && mergeStrategy === MergeOptions.theirs) {\n // in this case, we don't want to update .bitmap with the version of the remote. we want to keep the same version\n legacyComponent.version = id.version;\n }\n const files = legacyComponent.files;\n updateFileStatus(files, filesStatus, currentComponent || undefined);\n\n if (mergeResults) {\n // update files according to the merge results\n const { filesStatus: modifiedStatus, modifiedFiles } = applyModifiedVersion(files, mergeResults, mergeStrategy);\n legacyComponent.files = modifiedFiles;\n filesStatus = { ...filesStatus, ...modifiedStatus };\n }\n\n if (this.workspace) await removeFilesIfNeeded(filesStatus, this.workspace.consumer, currentComponent || undefined);\n\n if (configMergeResult) {\n const successfullyMergedConfig = configMergeResult.getSuccessfullyMergedConfig();\n if (successfullyMergedConfig) {\n unmergedComponent.mergedConfig = successfullyMergedConfig;\n // no need to `unmergedComponents.addEntry` here. it'll be added in the next lines inside `if (mergeResults)`.\n // because if `configMergeResult` is set, `mergeResults` must be set as well. both happen on diverge.\n }\n }\n\n // if mergeResults, the head snap is going to be updated on a later phase when snapping with two parents\n // otherwise, update the head of the current lane or main\n if (mergeResults) {\n if (mergeResults.hasConflicts && mergeStrategy === MergeOptions.manual) {\n unmergedComponent.unmergedPaths = mergeResults.modifiedFiles.filter((f) => f.conflict).map((f) => f.filePath);\n }\n legacyScope.objects.unmergedComponents.addEntry(unmergedComponent);\n } else if (currentLane) {\n if (resolvedUnrelated) {\n // must be \"theirs\"\n return handleResolveUnrelated(legacyComponent);\n }\n addToCurrentLane(remoteHead);\n } else {\n // this is main\n modelComponent.setHead(remoteHead);\n // mark it as local, otherwise, when importing this component from a remote, it'll override it.\n modelComponent.markVersionAsLocal(remoteHead.toString());\n legacyScope.objects.add(modelComponent);\n }\n\n return {\n applyVersionResult: { id: idToLoad, filesStatus },\n component: currentComponent || undefined,\n legacyCompToWrite: legacyComponent,\n };\n }\n\n private async abortMerge(pattern: string): Promise<ApplyVersionResults> {\n const consumer = this.workspace.consumer;\n const ids = await this.getIdsForUnmerged(pattern);\n const results = await this.checkout.checkout({ ids, reset: true });\n ids.forEach((id) => consumer.scope.objects.unmergedComponents.removeComponent(id));\n await consumer.scope.objects.unmergedComponents.write();\n return { abortedComponents: results.components };\n }\n\n private async resolveMerge(pattern: string, snapMessage: string, build: boolean): Promise<ApplyVersionResults> {\n const ids = await this.getIdsForUnmerged(pattern);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const { snappedComponents } = await this.snapping.snap({\n legacyBitIds: ComponentIdList.fromArray(ids.map((id) => id)),\n build,\n message: snapMessage,\n });\n return { resolvedComponents: snappedComponents };\n }\n\n private async getAllComponentsStatus(\n bitIds: ComponentID[],\n laneId: LaneId,\n localLaneObject: Lane | undefined,\n mergeStrategy: MergeStrategy\n ): Promise<ComponentMergeStatus[]> {\n const ids = await Promise.all(\n bitIds.map(async (bitId) => {\n const remoteScopeName = laneId.isDefault() ? bitId.scope : laneId.scope;\n const remoteLaneId = LaneId.from(laneId.name, remoteScopeName as string);\n const remoteHead = await this.workspace.consumer.scope.objects.remoteLanes.getRef(remoteLaneId, bitId);\n const laneIdStr = remoteLaneId.toString();\n if (!remoteHead) {\n throw new BitError(`unable to find a remote head of \"${bitId.toStringWithoutVersion()}\" in \"${laneIdStr}\"`);\n }\n return bitId.changeVersion(remoteHead.toString());\n })\n );\n\n return this.getMergeStatus(ids, { shouldSquash: false, mergeStrategy }, localLaneObject, localLaneObject);\n }\n\n private async snapResolvedComponents(\n snapMessage?: string,\n build?: boolean,\n laneId?: LaneId\n ): Promise<MergeSnapResults> {\n const unmergedComponents = this.scope.legacyScope.objects.unmergedComponents.getComponents();\n this.logger.debug(`merge-snaps, snapResolvedComponents, total ${unmergedComponents.length.toString()} components`);\n if (!unmergedComponents.length) return null;\n const ids = ComponentIdList.fromArray(unmergedComponents.map((r) => ComponentID.fromObject(r.id)));\n if (!this.workspace) {\n const results = await this.snapping.snapFromScope(\n ids.map((id) => ({ componentId: id.toString() })),\n {\n message: snapMessage,\n build,\n lane: laneId?.toString(),\n }\n );\n return { ...results, autoSnappedResults: [] };\n }\n return this.snapping.snap({\n legacyBitIds: ids,\n build,\n message: snapMessage,\n });\n }\n\n private async tagAllLaneComponent(\n idsToTag: ComponentID[],\n tagMessage?: string,\n build?: boolean\n ): Promise<TagResults | null> {\n const ids = idsToTag.map((id) => {\n return id.toStringWithoutVersion();\n });\n this.logger.debug(`merge-snaps, tagResolvedComponents, total ${idsToTag.length.toString()} components`);\n return this.snapping.tag({\n ids,\n build,\n message: tagMessage,\n unmodified: true,\n });\n }\n\n private async getIdsForUnmerged(pattern?: string): Promise<ComponentID[]> {\n if (pattern) {\n const componentIds = await this.workspace.idsByPattern(pattern);\n componentIds.forEach((id) => {\n const entry = this.workspace.consumer.scope.objects.unmergedComponents.getEntry(id);\n if (!entry) {\n throw new BitError(`unable to merge-resolve ${id.toString()}, it is not marked as unresolved`);\n }\n });\n return componentIds;\n }\n const unresolvedComponents = this.workspace.consumer.scope.objects.unmergedComponents.getComponents();\n if (!unresolvedComponents.length) throw new BitError(`all components are resolved already, nothing to do`);\n return unresolvedComponents.map((u) => ComponentID.fromObject(u.id));\n }\n\n private async getComponentsToMerge(consumer: Consumer, pattern?: string): Promise<ComponentID[]> {\n if (pattern) {\n return this.workspace.idsByPattern(pattern);\n }\n const componentsList = new ComponentsList(consumer);\n const mergePending = await componentsList.listMergePendingComponents();\n return mergePending.map((c) => c.id);\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n ScopeAspect,\n SnappingAspect,\n CheckoutAspect,\n InstallAspect,\n LoggerAspect,\n ComponentWriterAspect,\n ImporterAspect,\n ConfigAspect,\n RemoveAspect,\n GlobalConfigAspect,\n ConfigMergerAspect,\n DependencyResolverAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n scope,\n snapping,\n checkout,\n install,\n loggerMain,\n compWriter,\n importer,\n config,\n remove,\n globalConfig,\n configMerger,\n depResolver,\n ]: [\n CLIMain,\n Workspace,\n ScopeMain,\n SnappingMain,\n CheckoutMain,\n InstallMain,\n LoggerMain,\n ComponentWriterMain,\n ImporterMain,\n ConfigMain,\n RemoveMain,\n GlobalConfigMain,\n ConfigMergerMain,\n DependencyResolverMain\n ]) {\n const logger = loggerMain.createLogger(MergingAspect.id);\n const merging = new MergingMain(\n workspace,\n scope,\n install,\n snapping,\n checkout,\n logger,\n compWriter,\n importer,\n config,\n remove,\n configMerger,\n depResolver\n );\n cli.register(new MergeCmd(merging, globalConfig));\n return merging;\n }\n}\n\nMergingAspect.addRuntime(MergingMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,UAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SA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AM,EACN4O,YAAY,EACZ3O,YAAY,EACZC,WAAW,CAgBZ,EAAE;IACD,MAAMN,MAAM,GAAG8O,UAAU,CAACG,YAAY,CAACC,wBAAa,CAACzM,EAAE,CAAC;IACxD,MAAM0M,OAAO,GAAG,IAAI1P,WAAW,CAC7BE,SAAS,EACTC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,QAAQ,EACRC,MAAM,EACN+O,UAAU,EACV7O,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,YAAY,EACZC,WACF,CAAC;IACDuO,GAAG,CAACO,QAAQ,CAAC,KAAIC,oBAAQ,EAACF,OAAO,EAAEH,YAAY,CAAC,CAAC;IACjD,OAAOG,OAAO;EAChB;AACF;AAACG,OAAA,CAAA7P,WAAA,GAAAA,WAAA;AAAAhB,eAAA,CAvnBYgB,WAAW,WAojBP,EAAE;AAAAhB,eAAA,CApjBNgB,WAAW,kBAqjBA,CACpB8P,gBAAS,EACTC,4BAAe,EACfC,oBAAW,EACXC,0BAAc,EACdC,0BAAc,EACdC,wBAAa,EACbC,sBAAY,EACZC,wCAAqB,EACrBC,0BAAc,EACdC,sBAAY,EACZC,sBAAY,EACZC,kCAAkB,EAClBC,kCAAkB,EAClBC,8CAAwB,CACzB;AAAA3R,eAAA,CApkBUgB,WAAW,aAqkBL4Q,kBAAW;AAoD9BnB,wBAAa,CAACoB,UAAU,CAAC7Q,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_workspace","_legacy","_snapping","_pMapSeries","_interopRequireDefault","_componentId","_bitError","_laneId","_chalk","_config","_remove","_toolboxPath","_pkgModules","_componentWriter","_importer","_logger","_globalConfig","_lodash","_checkout","_configMerger","_dependencyResolver","_install","_scope","_mergeCmd","_merging","_mergeStatusProvider","_mergeVersion","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MergingMain","constructor","workspace","scope","install","snapping","checkout","logger","componentWriter","importer","config","remove","configMerger","depResolver","merge","pattern","mergeStrategy","abort","resolve","noAutoSnap","message","build","skipDependencyInstallation","OutsideWorkspaceError","consumer","mergeResults","resolveMerge","abortMerge","bitIds","getComponentsToMerge","mergeComponentsFromRemote","onDestroy","snapMessage","currentLaneId","getCurrentLaneId","currentLaneObject","getCurrentLaneObject","allComponentsStatus","getAllComponentsStatus","failedComponents","c","unchangedMessage","unchangedLegitimately","failureMsgs","map","failedComponent","chalk","bold","id","toString","red","join","BitError","mergeSnaps","otherLaneId","currentLane","noSnap","tag","legacyScope","componentWithConflict","find","component","hasConflicts","getMergeStrategyInteractive","componentStatus","shouldBeRemoved","componentIdsToRemove","changeVersion","undefined","succeededComponents","currentLaneIdsBeforeMerge","toComponentIds","componentsResults","applyVersionMultiple","allConfigMerge","compact","configMergeResult","workspaceDepsUpdates","workspaceDepsConflicts","workspaceDepsUnchanged","updateWorkspaceJsoncWithDepsIfNeeded","workspaceConfigConflictWriteError","writeWorkspaceJsoncWithConflictsGracefully","generateConfigMergeConflictFileForAll","objects","add","persist","unmergedComponents","write","writeBitMap","removeFromWsJsonPolicyIfExists","compBitIdsToRemove","ComponentIdList","fromArray","deleteComponentsFiles","cleanFromBitMap","componentsHasConfigMergeConflicts","some","leftUnresolvedConflicts","dedupe","updateExisting","import","err","error","consoleFailure","getSnapOrTagResults","idsToTag","results","tagAllLaneComponent","taggedComponents","autoTaggedResults","removedComponents","snappedComponents","autoSnappedResults","snapResolvedComponents","toLaneId","mergeSnapResults","mergeSnapError","bitMapSnapshot","bitMap","takeSnapshot","restoreFromSnapshot","components","applyVersionResult","workspaceConfigUpdateResult","newlyIntroducedIds","hasWithoutVersion","newlyIntroducedComponentIds","legacyCompToWrite","packages","componentIdToPackageName","isRemoved","removeFromRootPolicy","persistConfig","getMergeStatus","options","otherLane","mergeStatusProvider","MergeStatusProvider","getStatus","mapSeries","currentComponent","resolvedUnrelated","modelComponent","getModelComponent","updatedLaneId","isDefault","LaneId","from","name","applyVersion","remoteHead","getRef","version","compsToWrite","manyComponentsWriterOpts","writeConfig","reasonForBitmapChange","writeMany","filesStatus","unmergedComponent","fullName","head","laneId","addToCurrentLane","Error","isPartOfLane","isEqualWithoutVersion","addComponent","handleResolveUnrelated","headOnCurrentLane","unrelated","unrelatedHead","unrelatedLaneId","addEntry","markAllFilesAsUnchanged","files","file","pathNormalizeToLinux","relative","FileStatus","unchanged","MergeOptions","ours","strategy","remoteId","idToLoad","theirs","legacyComponent","loadComponentFromModelImportIfNeeded","getConsumerComponent","updateFileStatus","modifiedStatus","modifiedFiles","applyModifiedVersion","removeFilesIfNeeded","successfullyMergedConfig","getSuccessfullyMergedConfig","mergedConfig","manual","unmergedPaths","f","conflict","filePath","setHead","markVersionAsLocal","ids","getIdsForUnmerged","reset","removeComponent","abortedComponents","snap","legacyBitIds","resolvedComponents","localLaneObject","Promise","all","bitId","remoteScopeName","remoteLaneId","remoteLanes","laneIdStr","toStringWithoutVersion","shouldSquash","getComponents","debug","ComponentID","fromObject","snapFromScope","componentId","lane","tagMessage","unmodified","componentIds","idsByPattern","entry","getEntry","unresolvedComponents","u","componentsList","ComponentsList","mergePending","listMergePendingComponents","provider","cli","loggerMain","compWriter","globalConfig","createLogger","MergingAspect","merging","register","MergeCmd","exports","CLIAspect","WorkspaceAspect","ScopeAspect","SnappingAspect","CheckoutAspect","InstallAspect","LoggerAspect","ComponentWriterAspect","ImporterAspect","ConfigAspect","RemoveAspect","GlobalConfigAspect","ConfigMergerAspect","DependencyResolverAspect","MainRuntime","addRuntime"],"sources":["merging.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport { ComponentsList } from '@teambit/legacy.component-list';\nimport { SnappingAspect, SnappingMain, TagResults } from '@teambit/snapping';\nimport mapSeries from 'p-map-series';\nimport { ComponentID, ComponentIdList } from '@teambit/component-id';\nimport { BitError } from '@teambit/bit-error';\nimport { LaneId } from '@teambit/lane-id';\nimport { AutoTagResult } from '@teambit/legacy/dist/scope/component-ops/auto-tag';\nimport { UnmergedComponent } from '@teambit/legacy/dist/scope/lanes/unmerged-components';\nimport { Lane, ModelComponent } from '@teambit/legacy/dist/scope/models';\nimport { Ref } from '@teambit/legacy/dist/scope/objects';\nimport chalk from 'chalk';\nimport { ConfigAspect, ConfigMain } from '@teambit/config';\nimport { RemoveAspect, RemoveMain, deleteComponentsFiles } from '@teambit/remove';\nimport { pathNormalizeToLinux } from '@teambit/toolbox.path.path';\nimport { componentIdToPackageName } from '@teambit/pkg.modules.component-package-name';\nimport { ComponentWriterAspect, ComponentWriterMain } from '@teambit/component-writer';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component/consumer-component';\nimport { ImporterAspect, ImporterMain } from '@teambit/importer';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { GlobalConfigAspect, GlobalConfigMain } from '@teambit/global-config';\nimport { compact } from 'lodash';\nimport {\n ApplyVersionWithComps,\n CheckoutAspect,\n CheckoutMain,\n ComponentStatusBase,\n applyModifiedVersion,\n removeFilesIfNeeded,\n updateFileStatus,\n} from '@teambit/checkout';\nimport {\n ConfigMergerAspect,\n ConfigMergerMain,\n ConfigMergeResult,\n WorkspaceConfigUpdateResult,\n} from '@teambit/config-merger';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { InstallMain, InstallAspect } from '@teambit/install';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { MergeCmd } from './merge-cmd';\nimport { MergingAspect } from './merging.aspect';\nimport { MergeStatusProvider, MergeStatusProviderOptions } from './merge-status-provider';\nimport {\n MergeStrategy,\n FileStatus,\n getMergeStrategyInteractive,\n MergeResultsThreeWay,\n MergeOptions,\n} from './merge-version';\n\ntype ResolveUnrelatedData = {\n strategy: MergeStrategy;\n headOnCurrentLane: Ref;\n unrelatedHead: Ref;\n unrelatedLaneId: LaneId;\n};\n\nexport type ComponentMergeStatus = ComponentStatusBase & {\n mergeResults?: MergeResultsThreeWay | null;\n divergeData?: SnapsDistance;\n resolvedUnrelated?: ResolveUnrelatedData;\n configMergeResult?: ConfigMergeResult;\n};\n\nexport type ComponentMergeStatusBeforeMergeAttempt = ComponentStatusBase & {\n divergeData?: SnapsDistance;\n resolvedUnrelated?: ResolveUnrelatedData;\n mergeProps?: {\n otherLaneHead: Ref;\n currentId: ComponentID;\n modelComponent: ModelComponent;\n };\n};\n\nexport type FailedComponents = { id: ComponentID; unchangedMessage: string; unchangedLegitimately?: boolean };\n\n// fileName is PathLinux. TS doesn't let anything else in the keys other than string and number\nexport type FilesStatus = { [fileName: string]: keyof typeof FileStatus };\n\nexport type MergeSnapResults = {\n snappedComponents: ConsumerComponent[];\n autoSnappedResults: AutoTagResult[];\n removedComponents?: ComponentIdList;\n exportedIds?: ComponentID[];\n} | null;\n\nexport type ApplyVersionResult = { id: ComponentID; filesStatus: FilesStatus };\n\nexport type ApplyVersionResults = {\n components?: ApplyVersionResult[];\n version?: string;\n failedComponents?: FailedComponents[];\n removedComponents?: ComponentID[];\n addedComponents?: ComponentID[]; // relevant when restoreMissingComponents is true (e.g. bit lane merge-abort)\n newComponents?: ComponentID[]; // relevant for \"bit stash load\". (stashedBitmapEntries is populated)\n resolvedComponents?: ConsumerComponent[]; // relevant for bit merge --resolve\n abortedComponents?: ApplyVersionResult[]; // relevant for bit merge --abort\n mergeSnapResults?: MergeSnapResults;\n mergeSnapError?: Error;\n leftUnresolvedConflicts?: boolean;\n verbose?: boolean;\n newFromLane?: string[];\n newFromLaneAdded?: boolean;\n installationError?: Error; // in case the package manager failed, it won't throw, instead, it'll return error here\n compilationError?: Error; // in case the compiler failed, it won't throw, instead, it'll return error here\n workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult;\n};\n\nexport class MergingMain {\n constructor(\n private workspace: Workspace,\n private scope: ScopeMain,\n private install: InstallMain,\n private snapping: SnappingMain,\n private checkout: CheckoutMain,\n private logger: Logger,\n private componentWriter: ComponentWriterMain,\n private importer: ImporterMain,\n private config: ConfigMain,\n private remove: RemoveMain,\n private configMerger: ConfigMergerMain,\n private depResolver: DependencyResolverMain\n ) {}\n\n async merge(\n pattern: string,\n mergeStrategy: MergeStrategy,\n abort: boolean,\n resolve: boolean,\n noAutoSnap: boolean,\n message: string,\n build: boolean,\n skipDependencyInstallation: boolean\n ): Promise<ApplyVersionResults> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const consumer: Consumer = this.workspace.consumer;\n let mergeResults;\n if (resolve) {\n mergeResults = await this.resolveMerge(pattern, message, build);\n } else if (abort) {\n mergeResults = await this.abortMerge(pattern);\n } else {\n const bitIds = await this.getComponentsToMerge(consumer, pattern);\n mergeResults = await this.mergeComponentsFromRemote(\n consumer,\n bitIds,\n mergeStrategy,\n noAutoSnap,\n message,\n build,\n skipDependencyInstallation\n );\n }\n await consumer.onDestroy('merge');\n return mergeResults;\n }\n\n /**\n * when user is on main, it merges the remote main components into local.\n * when user is on a lane, it merges the remote lane components into the local lane.\n */\n async mergeComponentsFromRemote(\n consumer: Consumer,\n bitIds: ComponentID[],\n mergeStrategy: MergeStrategy,\n noAutoSnap: boolean,\n snapMessage: string,\n build: boolean,\n skipDependencyInstallation: boolean\n ): Promise<ApplyVersionResults> {\n const currentLaneId = consumer.getCurrentLaneId();\n const currentLaneObject = await consumer.getCurrentLaneObject();\n const allComponentsStatus = await this.getAllComponentsStatus(\n bitIds,\n currentLaneId,\n currentLaneObject,\n mergeStrategy\n );\n const failedComponents = allComponentsStatus.filter((c) => c.unchangedMessage && !c.unchangedLegitimately);\n if (failedComponents.length) {\n const failureMsgs = failedComponents\n .map(\n (failedComponent) =>\n `${chalk.bold(failedComponent.id.toString())} - ${chalk.red(failedComponent.unchangedMessage as string)}`\n )\n .join('\\n');\n throw new BitError(`unable to merge due to the following failures:\\n${failureMsgs}`);\n }\n\n return this.mergeSnaps({\n mergeStrategy,\n allComponentsStatus,\n otherLaneId: currentLaneId,\n currentLane: currentLaneObject,\n noAutoSnap: noAutoSnap,\n snapMessage,\n build,\n skipDependencyInstallation,\n });\n }\n\n /**\n * merge multiple components according to the \"allComponentsStatus\".\n */\n async mergeSnaps({\n mergeStrategy,\n allComponentsStatus,\n otherLaneId,\n currentLane,\n noAutoSnap,\n noSnap,\n tag,\n snapMessage,\n build,\n skipDependencyInstallation,\n }: {\n mergeStrategy: MergeStrategy;\n allComponentsStatus: ComponentMergeStatus[];\n otherLaneId: LaneId;\n currentLane?: Lane;\n noAutoSnap?: boolean;\n noSnap?: boolean;\n tag?: boolean;\n snapMessage?: string;\n build?: boolean;\n skipDependencyInstallation?: boolean;\n }): Promise<ApplyVersionResults> {\n const consumer = this.workspace?.consumer;\n const legacyScope = this.scope.legacyScope;\n const componentWithConflict = allComponentsStatus.find(\n (component) => component.mergeResults && component.mergeResults.hasConflicts\n );\n if (componentWithConflict && !mergeStrategy) {\n mergeStrategy = await getMergeStrategyInteractive();\n }\n const failedComponents: FailedComponents[] = allComponentsStatus\n .filter((componentStatus) => componentStatus.unchangedMessage)\n .filter((componentStatus) => !componentStatus.shouldBeRemoved)\n .map((componentStatus) => ({\n id: componentStatus.id,\n unchangedMessage: componentStatus.unchangedMessage as string,\n unchangedLegitimately: componentStatus.unchangedLegitimately,\n }));\n\n const componentIdsToRemove = allComponentsStatus\n .filter((componentStatus) => componentStatus.shouldBeRemoved)\n .map((c) => c.id.changeVersion(undefined));\n\n const succeededComponents = allComponentsStatus.filter((componentStatus) => !componentStatus.unchangedMessage);\n\n const currentLaneIdsBeforeMerge = currentLane?.toComponentIds();\n\n const componentsResults = await this.applyVersionMultiple(\n succeededComponents,\n otherLaneId,\n mergeStrategy,\n currentLane\n );\n\n const allConfigMerge = compact(succeededComponents.map((c) => c.configMergeResult));\n\n const { workspaceDepsUpdates, workspaceDepsConflicts, workspaceDepsUnchanged } = this.workspace\n ? await this.configMerger.updateWorkspaceJsoncWithDepsIfNeeded(allConfigMerge)\n : { workspaceDepsUpdates: undefined, workspaceDepsConflicts: undefined, workspaceDepsUnchanged: undefined };\n\n let workspaceConfigConflictWriteError: Error | undefined;\n if (workspaceDepsConflicts) {\n workspaceConfigConflictWriteError =\n await this.configMerger.writeWorkspaceJsoncWithConflictsGracefully(workspaceDepsConflicts);\n }\n if (this.workspace) await this.configMerger.generateConfigMergeConflictFileForAll(allConfigMerge);\n\n if (currentLane) legacyScope.objects.add(currentLane);\n\n await legacyScope.objects.persist(); // persist anyway, if currentLane is null it should save all main heads\n\n await legacyScope.objects.unmergedComponents.write();\n\n if (this.workspace) {\n await consumer.writeBitMap(`merge ${otherLaneId.toString()}`);\n await this.removeFromWsJsonPolicyIfExists(componentsResults, currentLane, currentLaneIdsBeforeMerge);\n }\n\n if (componentIdsToRemove.length && this.workspace) {\n const compBitIdsToRemove = ComponentIdList.fromArray(componentIdsToRemove);\n await deleteComponentsFiles(consumer, compBitIdsToRemove);\n await consumer.cleanFromBitMap(compBitIdsToRemove);\n }\n\n const componentsHasConfigMergeConflicts = allComponentsStatus.some((c) => c.configMergeResult?.hasConflicts());\n const leftUnresolvedConflicts = componentWithConflict && mergeStrategy === 'manual';\n if (!skipDependencyInstallation && !leftUnresolvedConflicts && !componentsHasConfigMergeConflicts) {\n try {\n await this.install.install(undefined, {\n dedupe: true,\n updateExisting: false,\n import: false,\n });\n } catch (err: any) {\n this.logger.error(`failed installing packages`, err);\n this.logger.consoleFailure(\n `failed installing packages, see the log for full stacktrace. error: ${err.message}`\n );\n }\n }\n\n const getSnapOrTagResults = async (): Promise<MergeSnapResults> => {\n // if one of the component has conflict, don't snap-merge. otherwise, some of the components would be snap-merged\n // and some not. besides the fact that it could by mistake tag dependent, it's a confusing state. better not snap.\n if (noAutoSnap || noSnap || leftUnresolvedConflicts || componentsHasConfigMergeConflicts) {\n return null;\n }\n if (tag) {\n const idsToTag = allComponentsStatus.map((c) => c.id);\n const results = await this.tagAllLaneComponent(idsToTag, snapMessage, build);\n if (!results) return null;\n const { taggedComponents, autoTaggedResults, removedComponents } = results;\n return { snappedComponents: taggedComponents, autoSnappedResults: autoTaggedResults, removedComponents };\n }\n return this.snapResolvedComponents(snapMessage, build, currentLane?.toLaneId());\n };\n let mergeSnapResults: MergeSnapResults = null;\n let mergeSnapError: Error | undefined;\n const bitMapSnapshot = this.workspace ? this.workspace.bitMap.takeSnapshot() : null;\n try {\n mergeSnapResults = await getSnapOrTagResults();\n } catch (err: any) {\n this.logger.error('failed running snap. mergeSnapError:', err);\n mergeSnapError = err;\n if (bitMapSnapshot) this.workspace.bitMap.restoreFromSnapshot(bitMapSnapshot);\n }\n\n return {\n components: componentsResults.map((c) => c.applyVersionResult),\n failedComponents,\n removedComponents: [...componentIdsToRemove, ...(mergeSnapResults?.removedComponents || [])],\n mergeSnapResults,\n mergeSnapError,\n workspaceConfigUpdateResult: {\n workspaceDepsUpdates,\n workspaceDepsConflicts,\n workspaceDepsUnchanged,\n workspaceConfigConflictWriteError,\n },\n leftUnresolvedConflicts,\n };\n }\n\n async removeFromWsJsonPolicyIfExists(\n componentsResults: ApplyVersionWithComps[],\n currentLane?: Lane,\n currentLaneIdsBeforeMerge?: ComponentIdList\n ) {\n const newlyIntroducedIds = currentLane\n ?.toComponentIds()\n .filter((id) => !currentLaneIdsBeforeMerge?.hasWithoutVersion(id));\n const newlyIntroducedComponentIds = ComponentIdList.fromArray(newlyIntroducedIds || []);\n const components = compact(\n componentsResults\n .map((c) => c.legacyCompToWrite)\n .filter((c) => c && newlyIntroducedComponentIds.hasWithoutVersion(c.id))\n );\n const packages = components.map((c) => componentIdToPackageName(c));\n const isRemoved = this.depResolver.removeFromRootPolicy(packages);\n if (isRemoved) await this.depResolver.persistConfig('merge (remove packages)');\n }\n\n /**\n * this function gets called from two different commands:\n * 1. \"bit merge <ids...>\", when merging a component from a remote to the local.\n * in this case, the remote and local are on the same lane or both on main.\n * 2. \"bit lane merge\", when merging from one lane to another.\n */\n async getMergeStatus(\n bitIds: ComponentID[], // the id.version is the version we want to merge to the current component\n options: MergeStatusProviderOptions,\n currentLane?: Lane, // currently checked out lane. if on main, then it's null.\n otherLane?: Lane // the lane we want to merged to our lane. (null if it's \"main\").\n ): Promise<ComponentMergeStatus[]> {\n const mergeStatusProvider = new MergeStatusProvider(\n this.scope,\n this.logger,\n this.importer,\n options,\n this.workspace,\n currentLane,\n otherLane\n );\n return mergeStatusProvider.getStatus(bitIds);\n }\n\n private async applyVersionMultiple(\n succeededComponents: ComponentMergeStatus[],\n otherLaneId: LaneId,\n mergeStrategy: MergeStrategy,\n currentLane?: Lane\n ): Promise<ApplyVersionWithComps[]> {\n const componentsResults = await mapSeries(\n succeededComponents,\n async ({ currentComponent, id, mergeResults, resolvedUnrelated, configMergeResult }) => {\n const modelComponent = await this.scope.legacyScope.getModelComponent(id);\n const updatedLaneId = otherLaneId.isDefault() ? LaneId.from(otherLaneId.name, id.scope as string) : otherLaneId;\n return this.applyVersion({\n currentComponent,\n id,\n mergeResults,\n mergeStrategy,\n remoteHead: modelComponent.getRef(id.version as string) as Ref,\n otherLaneId: updatedLaneId,\n currentLane,\n resolvedUnrelated,\n configMergeResult,\n });\n }\n );\n\n if (this.workspace) {\n const compsToWrite = compact(componentsResults.map((c) => c.legacyCompToWrite));\n const manyComponentsWriterOpts = {\n consumer: this.workspace.consumer,\n components: compsToWrite,\n skipDependencyInstallation: true,\n writeConfig: false, // @todo: should write if config exists before, needs to figure out how to do it.\n reasonForBitmapChange: 'merge',\n };\n await this.componentWriter.writeMany(manyComponentsWriterOpts);\n }\n\n return componentsResults;\n }\n\n private async applyVersion({\n currentComponent,\n id,\n mergeResults,\n mergeStrategy,\n remoteHead,\n otherLaneId,\n currentLane,\n resolvedUnrelated,\n configMergeResult,\n }: {\n currentComponent: ConsumerComponent | null | undefined;\n id: ComponentID;\n mergeResults: MergeResultsThreeWay | null | undefined;\n mergeStrategy: MergeStrategy;\n remoteHead: Ref;\n otherLaneId: LaneId;\n currentLane?: Lane;\n resolvedUnrelated?: ResolveUnrelatedData;\n configMergeResult?: ConfigMergeResult;\n }): Promise<ApplyVersionWithComps> {\n const legacyScope = this.scope.legacyScope;\n let filesStatus = {};\n const unmergedComponent: UnmergedComponent = {\n id: { name: id.fullName, scope: id.scope },\n head: remoteHead,\n laneId: otherLaneId,\n };\n id = currentComponent ? currentComponent.id : id;\n const modelComponent = await legacyScope.getModelComponent(id);\n\n const addToCurrentLane = (head: Ref) => {\n if (!currentLane) throw new Error('currentLane must be defined when adding to the lane');\n if (otherLaneId.isDefault()) {\n const isPartOfLane = currentLane.components.find((c) => c.id.isEqualWithoutVersion(id));\n if (!isPartOfLane) return;\n }\n currentLane.addComponent({ id, head });\n };\n\n const handleResolveUnrelated = (legacyCompToWrite?: ConsumerComponent) => {\n if (!currentComponent) throw new Error('currentComponent must be defined when resolvedUnrelated');\n // because when on a main, we don't allow merging lanes with unrelated. we asks users to switch to the lane\n // first and then merge with --resolve-unrelated\n if (!currentLane) throw new Error('currentLane must be defined when resolvedUnrelated');\n if (!resolvedUnrelated) throw new Error('resolvedUnrelated must be populated');\n addToCurrentLane(resolvedUnrelated.headOnCurrentLane);\n unmergedComponent.unrelated = {\n unrelatedHead: resolvedUnrelated.unrelatedHead,\n headOnCurrentLane: resolvedUnrelated.headOnCurrentLane,\n unrelatedLaneId: resolvedUnrelated.unrelatedLaneId,\n };\n legacyScope.objects.unmergedComponents.addEntry(unmergedComponent);\n return { applyVersionResult: { id, filesStatus }, component: currentComponent, legacyCompToWrite };\n };\n\n const markAllFilesAsUnchanged = () => {\n if (!currentComponent) throw new Error(`applyVersion expect to get currentComponent for ${id.toString()}`);\n currentComponent.files.forEach((file) => {\n filesStatus[pathNormalizeToLinux(file.relative)] = FileStatus.unchanged;\n });\n };\n if (mergeResults && mergeResults.hasConflicts && mergeStrategy === MergeOptions.ours) {\n markAllFilesAsUnchanged();\n legacyScope.objects.unmergedComponents.addEntry(unmergedComponent);\n return { applyVersionResult: { id, filesStatus }, component: currentComponent || undefined };\n }\n if (resolvedUnrelated?.strategy === 'ours') {\n markAllFilesAsUnchanged();\n return handleResolveUnrelated();\n }\n const remoteId = id.changeVersion(remoteHead.toString());\n const idToLoad = !mergeResults || mergeStrategy === MergeOptions.theirs ? remoteId : id;\n const legacyComponent = this.workspace\n ? await this.workspace.consumer.loadComponentFromModelImportIfNeeded(idToLoad)\n : await legacyScope.getConsumerComponent(idToLoad); // when loading from the scope, we import all needed components first, so it should be fine. otherwise, change the code to import it here\n if (mergeResults && mergeStrategy === MergeOptions.theirs) {\n // in this case, we don't want to update .bitmap with the version of the remote. we want to keep the same version\n legacyComponent.version = id.version;\n }\n const files = legacyComponent.files;\n updateFileStatus(files, filesStatus, currentComponent || undefined);\n\n if (mergeResults) {\n // update files according to the merge results\n const { filesStatus: modifiedStatus, modifiedFiles } = applyModifiedVersion(files, mergeResults, mergeStrategy);\n legacyComponent.files = modifiedFiles;\n filesStatus = { ...filesStatus, ...modifiedStatus };\n }\n\n if (this.workspace) await removeFilesIfNeeded(filesStatus, this.workspace.consumer, currentComponent || undefined);\n\n if (configMergeResult) {\n const successfullyMergedConfig = configMergeResult.getSuccessfullyMergedConfig();\n if (successfullyMergedConfig) {\n unmergedComponent.mergedConfig = successfullyMergedConfig;\n // no need to `unmergedComponents.addEntry` here. it'll be added in the next lines inside `if (mergeResults)`.\n // because if `configMergeResult` is set, `mergeResults` must be set as well. both happen on diverge.\n }\n }\n\n // if mergeResults, the head snap is going to be updated on a later phase when snapping with two parents\n // otherwise, update the head of the current lane or main\n if (mergeResults) {\n if (mergeResults.hasConflicts && mergeStrategy === MergeOptions.manual) {\n unmergedComponent.unmergedPaths = mergeResults.modifiedFiles.filter((f) => f.conflict).map((f) => f.filePath);\n }\n legacyScope.objects.unmergedComponents.addEntry(unmergedComponent);\n } else if (currentLane) {\n if (resolvedUnrelated) {\n // must be \"theirs\"\n return handleResolveUnrelated(legacyComponent);\n }\n addToCurrentLane(remoteHead);\n } else {\n // this is main\n modelComponent.setHead(remoteHead);\n // mark it as local, otherwise, when importing this component from a remote, it'll override it.\n modelComponent.markVersionAsLocal(remoteHead.toString());\n legacyScope.objects.add(modelComponent);\n }\n\n return {\n applyVersionResult: { id: idToLoad, filesStatus },\n component: currentComponent || undefined,\n legacyCompToWrite: legacyComponent,\n };\n }\n\n private async abortMerge(pattern: string): Promise<ApplyVersionResults> {\n const consumer = this.workspace.consumer;\n const ids = await this.getIdsForUnmerged(pattern);\n const results = await this.checkout.checkout({ ids, reset: true });\n ids.forEach((id) => consumer.scope.objects.unmergedComponents.removeComponent(id));\n await consumer.scope.objects.unmergedComponents.write();\n return { abortedComponents: results.components };\n }\n\n private async resolveMerge(pattern: string, snapMessage: string, build: boolean): Promise<ApplyVersionResults> {\n const ids = await this.getIdsForUnmerged(pattern);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const { snappedComponents } = await this.snapping.snap({\n legacyBitIds: ComponentIdList.fromArray(ids.map((id) => id)),\n build,\n message: snapMessage,\n });\n return { resolvedComponents: snappedComponents };\n }\n\n private async getAllComponentsStatus(\n bitIds: ComponentID[],\n laneId: LaneId,\n localLaneObject: Lane | undefined,\n mergeStrategy: MergeStrategy\n ): Promise<ComponentMergeStatus[]> {\n const ids = await Promise.all(\n bitIds.map(async (bitId) => {\n const remoteScopeName = laneId.isDefault() ? bitId.scope : laneId.scope;\n const remoteLaneId = LaneId.from(laneId.name, remoteScopeName as string);\n const remoteHead = await this.workspace.consumer.scope.objects.remoteLanes.getRef(remoteLaneId, bitId);\n const laneIdStr = remoteLaneId.toString();\n if (!remoteHead) {\n throw new BitError(`unable to find a remote head of \"${bitId.toStringWithoutVersion()}\" in \"${laneIdStr}\"`);\n }\n return bitId.changeVersion(remoteHead.toString());\n })\n );\n\n return this.getMergeStatus(ids, { shouldSquash: false, mergeStrategy }, localLaneObject, localLaneObject);\n }\n\n private async snapResolvedComponents(\n snapMessage?: string,\n build?: boolean,\n laneId?: LaneId\n ): Promise<MergeSnapResults> {\n const unmergedComponents = this.scope.legacyScope.objects.unmergedComponents.getComponents();\n this.logger.debug(`merge-snaps, snapResolvedComponents, total ${unmergedComponents.length.toString()} components`);\n if (!unmergedComponents.length) return null;\n const ids = ComponentIdList.fromArray(unmergedComponents.map((r) => ComponentID.fromObject(r.id)));\n if (!this.workspace) {\n const results = await this.snapping.snapFromScope(\n ids.map((id) => ({ componentId: id.toString() })),\n {\n message: snapMessage,\n build,\n lane: laneId?.toString(),\n }\n );\n return { ...results, autoSnappedResults: [] };\n }\n return this.snapping.snap({\n legacyBitIds: ids,\n build,\n message: snapMessage,\n });\n }\n\n private async tagAllLaneComponent(\n idsToTag: ComponentID[],\n tagMessage?: string,\n build?: boolean\n ): Promise<TagResults | null> {\n const ids = idsToTag.map((id) => {\n return id.toStringWithoutVersion();\n });\n this.logger.debug(`merge-snaps, tagResolvedComponents, total ${idsToTag.length.toString()} components`);\n return this.snapping.tag({\n ids,\n build,\n message: tagMessage,\n unmodified: true,\n });\n }\n\n private async getIdsForUnmerged(pattern?: string): Promise<ComponentID[]> {\n if (pattern) {\n const componentIds = await this.workspace.idsByPattern(pattern);\n componentIds.forEach((id) => {\n const entry = this.workspace.consumer.scope.objects.unmergedComponents.getEntry(id);\n if (!entry) {\n throw new BitError(`unable to merge-resolve ${id.toString()}, it is not marked as unresolved`);\n }\n });\n return componentIds;\n }\n const unresolvedComponents = this.workspace.consumer.scope.objects.unmergedComponents.getComponents();\n if (!unresolvedComponents.length) throw new BitError(`all components are resolved already, nothing to do`);\n return unresolvedComponents.map((u) => ComponentID.fromObject(u.id));\n }\n\n private async getComponentsToMerge(consumer: Consumer, pattern?: string): Promise<ComponentID[]> {\n if (pattern) {\n return this.workspace.idsByPattern(pattern);\n }\n const componentsList = new ComponentsList(consumer);\n const mergePending = await componentsList.listMergePendingComponents();\n return mergePending.map((c) => c.id);\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n ScopeAspect,\n SnappingAspect,\n CheckoutAspect,\n InstallAspect,\n LoggerAspect,\n ComponentWriterAspect,\n ImporterAspect,\n ConfigAspect,\n RemoveAspect,\n GlobalConfigAspect,\n ConfigMergerAspect,\n DependencyResolverAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n scope,\n snapping,\n checkout,\n install,\n loggerMain,\n compWriter,\n importer,\n config,\n remove,\n globalConfig,\n configMerger,\n depResolver,\n ]: [\n CLIMain,\n Workspace,\n ScopeMain,\n SnappingMain,\n CheckoutMain,\n InstallMain,\n LoggerMain,\n ComponentWriterMain,\n ImporterMain,\n ConfigMain,\n RemoveMain,\n GlobalConfigMain,\n ConfigMergerMain,\n DependencyResolverMain,\n ]) {\n const logger = loggerMain.createLogger(MergingAspect.id);\n const merging = new MergingMain(\n workspace,\n scope,\n install,\n snapping,\n checkout,\n logger,\n compWriter,\n importer,\n config,\n remove,\n configMerger,\n depResolver\n );\n cli.register(new MergeCmd(merging, globalConfig));\n return merging;\n }\n}\n\nMergingAspect.addRuntime(MergingMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,UA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AG,EACHlP,SAAS,EACTC,KAAK,EACLE,QAAQ,EACRC,QAAQ,EACRF,OAAO,EACPiP,UAAU,EACVC,UAAU,EACV7O,QAAQ,EACRC,MAAM,EACNC,MAAM,EACN4O,YAAY,EACZ3O,YAAY,EACZC,WAAW,CAgBZ,EAAE;IACD,MAAMN,MAAM,GAAG8O,UAAU,CAACG,YAAY,CAACC,wBAAa,CAACzM,EAAE,CAAC;IACxD,MAAM0M,OAAO,GAAG,IAAI1P,WAAW,CAC7BE,SAAS,EACTC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,QAAQ,EACRC,MAAM,EACN+O,UAAU,EACV7O,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,YAAY,EACZC,WACF,CAAC;IACDuO,GAAG,CAACO,QAAQ,CAAC,KAAIC,oBAAQ,EAACF,OAAO,EAAEH,YAAY,CAAC,CAAC;IACjD,OAAOG,OAAO;EAChB;AACF;AAACG,OAAA,CAAA7P,WAAA,GAAAA,WAAA;AAAAhB,eAAA,CAtnBYgB,WAAW,WAmjBP,EAAE;AAAAhB,eAAA,CAnjBNgB,WAAW,kBAojBA,CACpB8P,gBAAS,EACTC,4BAAe,EACfC,oBAAW,EACXC,0BAAc,EACdC,0BAAc,EACdC,wBAAa,EACbC,sBAAY,EACZC,wCAAqB,EACrBC,0BAAc,EACdC,sBAAY,EACZC,sBAAY,EACZC,kCAAkB,EAClBC,kCAAkB,EAClBC,8CAAwB,CACzB;AAAA3R,eAAA,CAnkBUgB,WAAW,aAokBL4Q,kBAAW;AAoD9BnB,wBAAa,CAACoB,UAAU,CAAC7Q,WAAW,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/merging",
3
- "version": "1.0.481",
3
+ "version": "1.0.482",
4
4
  "homepage": "https://bit.cloud/teambit/component/merging",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "merging",
9
- "version": "1.0.481"
9
+ "version": "1.0.482"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,34 +17,34 @@
17
17
  "@teambit/component-id": "1.2.2",
18
18
  "@teambit/lane-id": "0.0.311",
19
19
  "@teambit/harmony": "0.4.6",
20
- "@teambit/cli": "0.0.1058",
21
- "@teambit/config-merger": "0.0.348",
22
- "@teambit/global-config": "0.0.1061",
20
+ "@teambit/cli": "0.0.1059",
21
+ "@teambit/config-merger": "0.0.349",
22
+ "@teambit/global-config": "0.0.1062",
23
23
  "@teambit/git.modules.git-executable": "0.0.1",
24
- "@teambit/legacy.utils": "0.0.6",
25
- "@teambit/importer": "1.0.481",
26
- "@teambit/logger": "0.0.1151",
27
- "@teambit/scope": "1.0.481",
28
- "@teambit/workspace": "1.0.481",
29
- "@teambit/checkout": "1.0.481",
30
- "@teambit/component-writer": "1.0.481",
31
- "@teambit/config": "0.0.1232",
32
- "@teambit/dependency-resolver": "1.0.481",
33
- "@teambit/install": "1.0.481",
34
- "@teambit/legacy.component-list": "0.0.51",
35
- "@teambit/pkg.modules.component-package-name": "0.0.5",
36
- "@teambit/remove": "1.0.481",
37
- "@teambit/snapping": "1.0.481",
24
+ "@teambit/legacy.utils": "0.0.7",
25
+ "@teambit/importer": "1.0.482",
26
+ "@teambit/logger": "0.0.1152",
27
+ "@teambit/scope": "1.0.482",
28
+ "@teambit/workspace": "1.0.482",
29
+ "@teambit/checkout": "1.0.482",
30
+ "@teambit/component-writer": "1.0.482",
31
+ "@teambit/config": "0.0.1233",
32
+ "@teambit/dependency-resolver": "1.0.482",
33
+ "@teambit/install": "1.0.482",
34
+ "@teambit/legacy.component-list": "0.0.52",
35
+ "@teambit/pkg.modules.component-package-name": "0.0.6",
36
+ "@teambit/remove": "1.0.482",
37
+ "@teambit/snapping": "1.0.482",
38
38
  "@teambit/toolbox.path.path": "0.0.4",
39
39
  "@teambit/legacy.cli.prompts": "0.0.5",
40
- "@teambit/component.sources": "0.0.49",
40
+ "@teambit/component.sources": "0.0.50",
41
41
  "@teambit/toolbox.crypto.sha1": "0.0.2",
42
42
  "@teambit/toolbox.string.eol": "0.0.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/lodash": "4.14.165",
46
46
  "@types/mocha": "9.1.0",
47
- "@teambit/harmony.envs.core-aspect-env": "0.0.62"
47
+ "@teambit/harmony.envs.core-aspect-env": "0.0.63"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@teambit/legacy": "1.0.624"