@teambit/merging 1.0.173 → 1.0.175

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.173" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/merging@1.0.175" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1852,14 +1852,14 @@
1852
1852
  "__schema": "FunctionLikeSchema",
1853
1853
  "location": {
1854
1854
  "filePath": "merging.main.runtime.ts",
1855
- "line": 347,
1855
+ "line": 348,
1856
1856
  "character": 3
1857
1857
  },
1858
1858
  "doc": {
1859
1859
  "__schema": "DocSchema",
1860
1860
  "location": {
1861
1861
  "filePath": "merging.main.runtime.ts",
1862
- "line": 341,
1862
+ "line": 342,
1863
1863
  "character": 3
1864
1864
  },
1865
1865
  "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 */",
@@ -1872,7 +1872,7 @@
1872
1872
  "__schema": "ParameterSchema",
1873
1873
  "location": {
1874
1874
  "filePath": "merging.main.runtime.ts",
1875
- "line": 348,
1875
+ "line": 349,
1876
1876
  "character": 5
1877
1877
  },
1878
1878
  "name": "bitIds",
@@ -1880,14 +1880,14 @@
1880
1880
  "__schema": "TypeArraySchema",
1881
1881
  "location": {
1882
1882
  "filePath": "merging.main.runtime.ts",
1883
- "line": 348,
1883
+ "line": 349,
1884
1884
  "character": 13
1885
1885
  },
1886
1886
  "type": {
1887
1887
  "__schema": "TypeRefSchema",
1888
1888
  "location": {
1889
1889
  "filePath": "merging.main.runtime.ts",
1890
- "line": 348,
1890
+ "line": 349,
1891
1891
  "character": 13
1892
1892
  },
1893
1893
  "name": "ComponentID"
@@ -1900,7 +1900,7 @@
1900
1900
  "__schema": "ParameterSchema",
1901
1901
  "location": {
1902
1902
  "filePath": "merging.main.runtime.ts",
1903
- "line": 349,
1903
+ "line": 350,
1904
1904
  "character": 5
1905
1905
  },
1906
1906
  "name": "options",
@@ -1908,7 +1908,7 @@
1908
1908
  "__schema": "TypeRefSchema",
1909
1909
  "location": {
1910
1910
  "filePath": "merging.main.runtime.ts",
1911
- "line": 349,
1911
+ "line": 350,
1912
1912
  "character": 14
1913
1913
  },
1914
1914
  "name": "MergeStatusProviderOptions"
@@ -1920,7 +1920,7 @@
1920
1920
  "__schema": "ParameterSchema",
1921
1921
  "location": {
1922
1922
  "filePath": "merging.main.runtime.ts",
1923
- "line": 350,
1923
+ "line": 351,
1924
1924
  "character": 5
1925
1925
  },
1926
1926
  "name": "currentLane",
@@ -1928,7 +1928,7 @@
1928
1928
  "__schema": "TypeUnionSchema",
1929
1929
  "location": {
1930
1930
  "filePath": "merging.main.runtime.ts",
1931
- "line": 350,
1931
+ "line": 351,
1932
1932
  "character": 18
1933
1933
  },
1934
1934
  "types": [
@@ -1936,7 +1936,7 @@
1936
1936
  "__schema": "TypeRefSchema",
1937
1937
  "location": {
1938
1938
  "filePath": "merging.main.runtime.ts",
1939
- "line": 350,
1939
+ "line": 351,
1940
1940
  "character": 18
1941
1941
  },
1942
1942
  "name": "Lane"
@@ -1945,7 +1945,7 @@
1945
1945
  "__schema": "LiteralTypeSchema",
1946
1946
  "location": {
1947
1947
  "filePath": "merging.main.runtime.ts",
1948
- "line": 350,
1948
+ "line": 351,
1949
1949
  "character": 25
1950
1950
  },
1951
1951
  "name": "null"
@@ -1959,7 +1959,7 @@
1959
1959
  "__schema": "ParameterSchema",
1960
1960
  "location": {
1961
1961
  "filePath": "merging.main.runtime.ts",
1962
- "line": 351,
1962
+ "line": 352,
1963
1963
  "character": 5
1964
1964
  },
1965
1965
  "name": "otherLane",
@@ -1967,7 +1967,7 @@
1967
1967
  "__schema": "TypeUnionSchema",
1968
1968
  "location": {
1969
1969
  "filePath": "merging.main.runtime.ts",
1970
- "line": 351,
1970
+ "line": 352,
1971
1971
  "character": 17
1972
1972
  },
1973
1973
  "types": [
@@ -1975,7 +1975,7 @@
1975
1975
  "__schema": "TypeRefSchema",
1976
1976
  "location": {
1977
1977
  "filePath": "merging.main.runtime.ts",
1978
- "line": 351,
1978
+ "line": 352,
1979
1979
  "character": 17
1980
1980
  },
1981
1981
  "name": "Lane"
@@ -1984,7 +1984,7 @@
1984
1984
  "__schema": "LiteralTypeSchema",
1985
1985
  "location": {
1986
1986
  "filePath": "merging.main.runtime.ts",
1987
- "line": 351,
1987
+ "line": 352,
1988
1988
  "character": 24
1989
1989
  },
1990
1990
  "name": "null"
@@ -1999,7 +1999,7 @@
1999
1999
  "__schema": "TypeRefSchema",
2000
2000
  "location": {
2001
2001
  "filePath": "merging.main.runtime.ts",
2002
- "line": 352,
2002
+ "line": 353,
2003
2003
  "character": 6
2004
2004
  },
2005
2005
  "name": "Promise",
@@ -2008,14 +2008,14 @@
2008
2008
  "__schema": "TypeArraySchema",
2009
2009
  "location": {
2010
2010
  "filePath": "merging.main.runtime.ts",
2011
- "line": 352,
2011
+ "line": 353,
2012
2012
  "character": 14
2013
2013
  },
2014
2014
  "type": {
2015
2015
  "__schema": "TypeRefSchema",
2016
2016
  "location": {
2017
2017
  "filePath": "merging.main.runtime.ts",
2018
- "line": 352,
2018
+ "line": 353,
2019
2019
  "character": 14
2020
2020
  },
2021
2021
  "name": "ComponentMergeStatus"
@@ -2031,7 +2031,7 @@
2031
2031
  "__schema": "VariableLikeSchema",
2032
2032
  "location": {
2033
2033
  "filePath": "merging.main.runtime.ts",
2034
- "line": 649,
2034
+ "line": 650,
2035
2035
  "character": 3
2036
2036
  },
2037
2037
  "signature": "(property) MergingMain.slots: never[]",
@@ -2040,7 +2040,7 @@
2040
2040
  "__schema": "InferenceTypeSchema",
2041
2041
  "location": {
2042
2042
  "filePath": "merging.main.runtime.ts",
2043
- "line": 649,
2043
+ "line": 650,
2044
2044
  "character": 3
2045
2045
  },
2046
2046
  "type": "never[]"
@@ -2052,7 +2052,7 @@
2052
2052
  "__schema": "VariableLikeSchema",
2053
2053
  "location": {
2054
2054
  "filePath": "merging.main.runtime.ts",
2055
- "line": 650,
2055
+ "line": 651,
2056
2056
  "character": 3
2057
2057
  },
2058
2058
  "signature": "(property) MergingMain.dependencies: Aspect[]",
@@ -2061,7 +2061,7 @@
2061
2061
  "__schema": "InferenceTypeSchema",
2062
2062
  "location": {
2063
2063
  "filePath": "merging.main.runtime.ts",
2064
- "line": 650,
2064
+ "line": 651,
2065
2065
  "character": 3
2066
2066
  },
2067
2067
  "type": "Aspect[]"
@@ -2073,7 +2073,7 @@
2073
2073
  "__schema": "VariableLikeSchema",
2074
2074
  "location": {
2075
2075
  "filePath": "merging.main.runtime.ts",
2076
- "line": 665,
2076
+ "line": 666,
2077
2077
  "character": 3
2078
2078
  },
2079
2079
  "signature": "(property) MergingMain.runtime: RuntimeDefinition",
@@ -2082,7 +2082,7 @@
2082
2082
  "__schema": "InferenceTypeSchema",
2083
2083
  "location": {
2084
2084
  "filePath": "merging.main.runtime.ts",
2085
- "line": 665,
2085
+ "line": 666,
2086
2086
  "character": 3
2087
2087
  },
2088
2088
  "type": "RuntimeDefinition"
@@ -2094,7 +2094,7 @@
2094
2094
  "__schema": "FunctionLikeSchema",
2095
2095
  "location": {
2096
2096
  "filePath": "merging.main.runtime.ts",
2097
- "line": 666,
2097
+ "line": 667,
2098
2098
  "character": 3
2099
2099
  },
2100
2100
  "signature": "(method) MergingMain.provider([cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger,]: [\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]): Promise<MergingMain>",
@@ -2104,7 +2104,7 @@
2104
2104
  "__schema": "ParameterSchema",
2105
2105
  "location": {
2106
2106
  "filePath": "merging.main.runtime.ts",
2107
- "line": 666,
2107
+ "line": 667,
2108
2108
  "character": 25
2109
2109
  },
2110
2110
  "name": "[ cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger ]",
@@ -2112,7 +2112,7 @@
2112
2112
  "__schema": "TupleTypeSchema",
2113
2113
  "location": {
2114
2114
  "filePath": "merging.main.runtime.ts",
2115
- "line": 680,
2115
+ "line": 681,
2116
2116
  "character": 6
2117
2117
  },
2118
2118
  "elements": [
@@ -2120,7 +2120,7 @@
2120
2120
  "__schema": "TypeRefSchema",
2121
2121
  "location": {
2122
2122
  "filePath": "merging.main.runtime.ts",
2123
- "line": 681,
2123
+ "line": 682,
2124
2124
  "character": 5
2125
2125
  },
2126
2126
  "name": "CLIMain"
@@ -2129,7 +2129,7 @@
2129
2129
  "__schema": "TypeRefSchema",
2130
2130
  "location": {
2131
2131
  "filePath": "merging.main.runtime.ts",
2132
- "line": 682,
2132
+ "line": 683,
2133
2133
  "character": 5
2134
2134
  },
2135
2135
  "name": "Workspace"
@@ -2138,7 +2138,7 @@
2138
2138
  "__schema": "TypeRefSchema",
2139
2139
  "location": {
2140
2140
  "filePath": "merging.main.runtime.ts",
2141
- "line": 683,
2141
+ "line": 684,
2142
2142
  "character": 5
2143
2143
  },
2144
2144
  "name": "ScopeMain"
@@ -2147,7 +2147,7 @@
2147
2147
  "__schema": "TypeRefSchema",
2148
2148
  "location": {
2149
2149
  "filePath": "merging.main.runtime.ts",
2150
- "line": 684,
2150
+ "line": 685,
2151
2151
  "character": 5
2152
2152
  },
2153
2153
  "name": "SnappingMain"
@@ -2156,7 +2156,7 @@
2156
2156
  "__schema": "TypeRefSchema",
2157
2157
  "location": {
2158
2158
  "filePath": "merging.main.runtime.ts",
2159
- "line": 685,
2159
+ "line": 686,
2160
2160
  "character": 5
2161
2161
  },
2162
2162
  "name": "CheckoutMain"
@@ -2165,7 +2165,7 @@
2165
2165
  "__schema": "TypeRefSchema",
2166
2166
  "location": {
2167
2167
  "filePath": "merging.main.runtime.ts",
2168
- "line": 686,
2168
+ "line": 687,
2169
2169
  "character": 5
2170
2170
  },
2171
2171
  "name": "InstallMain"
@@ -2174,7 +2174,7 @@
2174
2174
  "__schema": "TypeRefSchema",
2175
2175
  "location": {
2176
2176
  "filePath": "merging.main.runtime.ts",
2177
- "line": 687,
2177
+ "line": 688,
2178
2178
  "character": 5
2179
2179
  },
2180
2180
  "name": "LoggerMain"
@@ -2183,7 +2183,7 @@
2183
2183
  "__schema": "TypeRefSchema",
2184
2184
  "location": {
2185
2185
  "filePath": "merging.main.runtime.ts",
2186
- "line": 688,
2186
+ "line": 689,
2187
2187
  "character": 5
2188
2188
  },
2189
2189
  "name": "ComponentWriterMain"
@@ -2192,7 +2192,7 @@
2192
2192
  "__schema": "TypeRefSchema",
2193
2193
  "location": {
2194
2194
  "filePath": "merging.main.runtime.ts",
2195
- "line": 689,
2195
+ "line": 690,
2196
2196
  "character": 5
2197
2197
  },
2198
2198
  "name": "ImporterMain"
@@ -2201,7 +2201,7 @@
2201
2201
  "__schema": "TypeRefSchema",
2202
2202
  "location": {
2203
2203
  "filePath": "merging.main.runtime.ts",
2204
- "line": 690,
2204
+ "line": 691,
2205
2205
  "character": 5
2206
2206
  },
2207
2207
  "name": "ConfigMain"
@@ -2210,7 +2210,7 @@
2210
2210
  "__schema": "TypeRefSchema",
2211
2211
  "location": {
2212
2212
  "filePath": "merging.main.runtime.ts",
2213
- "line": 691,
2213
+ "line": 692,
2214
2214
  "character": 5
2215
2215
  },
2216
2216
  "name": "RemoveMain"
@@ -2219,7 +2219,7 @@
2219
2219
  "__schema": "TypeRefSchema",
2220
2220
  "location": {
2221
2221
  "filePath": "merging.main.runtime.ts",
2222
- "line": 692,
2222
+ "line": 693,
2223
2223
  "character": 5
2224
2224
  },
2225
2225
  "name": "GlobalConfigMain"
@@ -2228,7 +2228,7 @@
2228
2228
  "__schema": "TypeRefSchema",
2229
2229
  "location": {
2230
2230
  "filePath": "merging.main.runtime.ts",
2231
- "line": 693,
2231
+ "line": 694,
2232
2232
  "character": 5
2233
2233
  },
2234
2234
  "name": "ConfigMergerMain"
@@ -2243,7 +2243,7 @@
2243
2243
  "__schema": "InferenceTypeSchema",
2244
2244
  "location": {
2245
2245
  "filePath": "merging.main.runtime.ts",
2246
- "line": 666,
2246
+ "line": 667,
2247
2247
  "character": 3
2248
2248
  },
2249
2249
  "type": "Promise<MergingMain>"
@@ -2863,7 +2863,7 @@
2863
2863
  "line": 82,
2864
2864
  "character": 1
2865
2865
  },
2866
- "signature": "type FilesStatus = {\n [fileName: string]: \"unchanged\" | \"manual\" | \"added\" | \"updated\" | \"merged\" | \"binaryConflict\" | \"removed\" | \"overridden\" | \"remainDeleted\" | \"deletedConflict\";\n}",
2866
+ "signature": "type FilesStatus = {\n [fileName: string]: \"unchanged\" | \"manual\" | \"merged\" | \"binaryConflict\" | \"updated\" | \"added\" | \"removed\" | \"overridden\" | \"remainDeleted\" | \"deletedConflict\";\n}",
2867
2867
  "name": "FilesStatus",
2868
2868
  "type": {
2869
2869
  "__schema": "TypeLiteralSchema",
@@ -3858,7 +3858,7 @@
3858
3858
  "_legacy": {
3859
3859
  "scope": "teambit.component",
3860
3860
  "name": "merging",
3861
- "version": "1.0.173"
3861
+ "version": "1.0.175"
3862
3862
  },
3863
3863
  "_scope": "teambit.component"
3864
3864
  }
@@ -4991,7 +4991,7 @@
4991
4991
  "line": 82,
4992
4992
  "character": 1
4993
4993
  },
4994
- "signature": "type FilesStatus = {\n [fileName: string]: \"unchanged\" | \"manual\" | \"added\" | \"updated\" | \"merged\" | \"binaryConflict\" | \"removed\" | \"overridden\" | \"remainDeleted\" | \"deletedConflict\";\n}",
4994
+ "signature": "type FilesStatus = {\n [fileName: string]: \"unchanged\" | \"manual\" | \"merged\" | \"binaryConflict\" | \"updated\" | \"added\" | \"removed\" | \"overridden\" | \"remainDeleted\" | \"deletedConflict\";\n}",
4995
4995
  "name": "FilesStatus",
4996
4996
  "type": {
4997
4997
  "__schema": "TypeLiteralSchema",
@@ -6808,14 +6808,14 @@
6808
6808
  "__schema": "FunctionLikeSchema",
6809
6809
  "location": {
6810
6810
  "filePath": "merging.main.runtime.ts",
6811
- "line": 347,
6811
+ "line": 348,
6812
6812
  "character": 3
6813
6813
  },
6814
6814
  "doc": {
6815
6815
  "__schema": "DocSchema",
6816
6816
  "location": {
6817
6817
  "filePath": "merging.main.runtime.ts",
6818
- "line": 341,
6818
+ "line": 342,
6819
6819
  "character": 3
6820
6820
  },
6821
6821
  "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 */",
@@ -6828,7 +6828,7 @@
6828
6828
  "__schema": "ParameterSchema",
6829
6829
  "location": {
6830
6830
  "filePath": "merging.main.runtime.ts",
6831
- "line": 348,
6831
+ "line": 349,
6832
6832
  "character": 5
6833
6833
  },
6834
6834
  "name": "bitIds",
@@ -6836,14 +6836,14 @@
6836
6836
  "__schema": "TypeArraySchema",
6837
6837
  "location": {
6838
6838
  "filePath": "merging.main.runtime.ts",
6839
- "line": 348,
6839
+ "line": 349,
6840
6840
  "character": 13
6841
6841
  },
6842
6842
  "type": {
6843
6843
  "__schema": "TypeRefSchema",
6844
6844
  "location": {
6845
6845
  "filePath": "merging.main.runtime.ts",
6846
- "line": 348,
6846
+ "line": 349,
6847
6847
  "character": 13
6848
6848
  },
6849
6849
  "name": "ComponentID"
@@ -6856,7 +6856,7 @@
6856
6856
  "__schema": "ParameterSchema",
6857
6857
  "location": {
6858
6858
  "filePath": "merging.main.runtime.ts",
6859
- "line": 349,
6859
+ "line": 350,
6860
6860
  "character": 5
6861
6861
  },
6862
6862
  "name": "options",
@@ -6864,7 +6864,7 @@
6864
6864
  "__schema": "TypeRefSchema",
6865
6865
  "location": {
6866
6866
  "filePath": "merging.main.runtime.ts",
6867
- "line": 349,
6867
+ "line": 350,
6868
6868
  "character": 14
6869
6869
  },
6870
6870
  "name": "MergeStatusProviderOptions"
@@ -6876,7 +6876,7 @@
6876
6876
  "__schema": "ParameterSchema",
6877
6877
  "location": {
6878
6878
  "filePath": "merging.main.runtime.ts",
6879
- "line": 350,
6879
+ "line": 351,
6880
6880
  "character": 5
6881
6881
  },
6882
6882
  "name": "currentLane",
@@ -6884,7 +6884,7 @@
6884
6884
  "__schema": "TypeUnionSchema",
6885
6885
  "location": {
6886
6886
  "filePath": "merging.main.runtime.ts",
6887
- "line": 350,
6887
+ "line": 351,
6888
6888
  "character": 18
6889
6889
  },
6890
6890
  "types": [
@@ -6892,7 +6892,7 @@
6892
6892
  "__schema": "TypeRefSchema",
6893
6893
  "location": {
6894
6894
  "filePath": "merging.main.runtime.ts",
6895
- "line": 350,
6895
+ "line": 351,
6896
6896
  "character": 18
6897
6897
  },
6898
6898
  "name": "Lane"
@@ -6901,7 +6901,7 @@
6901
6901
  "__schema": "LiteralTypeSchema",
6902
6902
  "location": {
6903
6903
  "filePath": "merging.main.runtime.ts",
6904
- "line": 350,
6904
+ "line": 351,
6905
6905
  "character": 25
6906
6906
  },
6907
6907
  "name": "null"
@@ -6915,7 +6915,7 @@
6915
6915
  "__schema": "ParameterSchema",
6916
6916
  "location": {
6917
6917
  "filePath": "merging.main.runtime.ts",
6918
- "line": 351,
6918
+ "line": 352,
6919
6919
  "character": 5
6920
6920
  },
6921
6921
  "name": "otherLane",
@@ -6923,7 +6923,7 @@
6923
6923
  "__schema": "TypeUnionSchema",
6924
6924
  "location": {
6925
6925
  "filePath": "merging.main.runtime.ts",
6926
- "line": 351,
6926
+ "line": 352,
6927
6927
  "character": 17
6928
6928
  },
6929
6929
  "types": [
@@ -6931,7 +6931,7 @@
6931
6931
  "__schema": "TypeRefSchema",
6932
6932
  "location": {
6933
6933
  "filePath": "merging.main.runtime.ts",
6934
- "line": 351,
6934
+ "line": 352,
6935
6935
  "character": 17
6936
6936
  },
6937
6937
  "name": "Lane"
@@ -6940,7 +6940,7 @@
6940
6940
  "__schema": "LiteralTypeSchema",
6941
6941
  "location": {
6942
6942
  "filePath": "merging.main.runtime.ts",
6943
- "line": 351,
6943
+ "line": 352,
6944
6944
  "character": 24
6945
6945
  },
6946
6946
  "name": "null"
@@ -6955,7 +6955,7 @@
6955
6955
  "__schema": "TypeRefSchema",
6956
6956
  "location": {
6957
6957
  "filePath": "merging.main.runtime.ts",
6958
- "line": 352,
6958
+ "line": 353,
6959
6959
  "character": 6
6960
6960
  },
6961
6961
  "name": "Promise",
@@ -6964,14 +6964,14 @@
6964
6964
  "__schema": "TypeArraySchema",
6965
6965
  "location": {
6966
6966
  "filePath": "merging.main.runtime.ts",
6967
- "line": 352,
6967
+ "line": 353,
6968
6968
  "character": 14
6969
6969
  },
6970
6970
  "type": {
6971
6971
  "__schema": "TypeRefSchema",
6972
6972
  "location": {
6973
6973
  "filePath": "merging.main.runtime.ts",
6974
- "line": 352,
6974
+ "line": 353,
6975
6975
  "character": 14
6976
6976
  },
6977
6977
  "name": "ComponentMergeStatus"
@@ -6987,7 +6987,7 @@
6987
6987
  "__schema": "VariableLikeSchema",
6988
6988
  "location": {
6989
6989
  "filePath": "merging.main.runtime.ts",
6990
- "line": 649,
6990
+ "line": 650,
6991
6991
  "character": 3
6992
6992
  },
6993
6993
  "signature": "(property) MergingMain.slots: never[]",
@@ -6996,7 +6996,7 @@
6996
6996
  "__schema": "InferenceTypeSchema",
6997
6997
  "location": {
6998
6998
  "filePath": "merging.main.runtime.ts",
6999
- "line": 649,
6999
+ "line": 650,
7000
7000
  "character": 3
7001
7001
  },
7002
7002
  "type": "never[]"
@@ -7008,7 +7008,7 @@
7008
7008
  "__schema": "VariableLikeSchema",
7009
7009
  "location": {
7010
7010
  "filePath": "merging.main.runtime.ts",
7011
- "line": 650,
7011
+ "line": 651,
7012
7012
  "character": 3
7013
7013
  },
7014
7014
  "signature": "(property) MergingMain.dependencies: Aspect[]",
@@ -7017,7 +7017,7 @@
7017
7017
  "__schema": "InferenceTypeSchema",
7018
7018
  "location": {
7019
7019
  "filePath": "merging.main.runtime.ts",
7020
- "line": 650,
7020
+ "line": 651,
7021
7021
  "character": 3
7022
7022
  },
7023
7023
  "type": "Aspect[]"
@@ -7029,7 +7029,7 @@
7029
7029
  "__schema": "VariableLikeSchema",
7030
7030
  "location": {
7031
7031
  "filePath": "merging.main.runtime.ts",
7032
- "line": 665,
7032
+ "line": 666,
7033
7033
  "character": 3
7034
7034
  },
7035
7035
  "signature": "(property) MergingMain.runtime: RuntimeDefinition",
@@ -7038,7 +7038,7 @@
7038
7038
  "__schema": "InferenceTypeSchema",
7039
7039
  "location": {
7040
7040
  "filePath": "merging.main.runtime.ts",
7041
- "line": 665,
7041
+ "line": 666,
7042
7042
  "character": 3
7043
7043
  },
7044
7044
  "type": "RuntimeDefinition"
@@ -7050,7 +7050,7 @@
7050
7050
  "__schema": "FunctionLikeSchema",
7051
7051
  "location": {
7052
7052
  "filePath": "merging.main.runtime.ts",
7053
- "line": 666,
7053
+ "line": 667,
7054
7054
  "character": 3
7055
7055
  },
7056
7056
  "signature": "(method) MergingMain.provider([cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger,]: [\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]): Promise<MergingMain>",
@@ -7060,7 +7060,7 @@
7060
7060
  "__schema": "ParameterSchema",
7061
7061
  "location": {
7062
7062
  "filePath": "merging.main.runtime.ts",
7063
- "line": 666,
7063
+ "line": 667,
7064
7064
  "character": 25
7065
7065
  },
7066
7066
  "name": "[ cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger ]",
@@ -7068,7 +7068,7 @@
7068
7068
  "__schema": "TupleTypeSchema",
7069
7069
  "location": {
7070
7070
  "filePath": "merging.main.runtime.ts",
7071
- "line": 680,
7071
+ "line": 681,
7072
7072
  "character": 6
7073
7073
  },
7074
7074
  "elements": [
@@ -7076,7 +7076,7 @@
7076
7076
  "__schema": "TypeRefSchema",
7077
7077
  "location": {
7078
7078
  "filePath": "merging.main.runtime.ts",
7079
- "line": 681,
7079
+ "line": 682,
7080
7080
  "character": 5
7081
7081
  },
7082
7082
  "name": "CLIMain"
@@ -7085,7 +7085,7 @@
7085
7085
  "__schema": "TypeRefSchema",
7086
7086
  "location": {
7087
7087
  "filePath": "merging.main.runtime.ts",
7088
- "line": 682,
7088
+ "line": 683,
7089
7089
  "character": 5
7090
7090
  },
7091
7091
  "name": "Workspace"
@@ -7094,7 +7094,7 @@
7094
7094
  "__schema": "TypeRefSchema",
7095
7095
  "location": {
7096
7096
  "filePath": "merging.main.runtime.ts",
7097
- "line": 683,
7097
+ "line": 684,
7098
7098
  "character": 5
7099
7099
  },
7100
7100
  "name": "ScopeMain"
@@ -7103,7 +7103,7 @@
7103
7103
  "__schema": "TypeRefSchema",
7104
7104
  "location": {
7105
7105
  "filePath": "merging.main.runtime.ts",
7106
- "line": 684,
7106
+ "line": 685,
7107
7107
  "character": 5
7108
7108
  },
7109
7109
  "name": "SnappingMain"
@@ -7112,7 +7112,7 @@
7112
7112
  "__schema": "TypeRefSchema",
7113
7113
  "location": {
7114
7114
  "filePath": "merging.main.runtime.ts",
7115
- "line": 685,
7115
+ "line": 686,
7116
7116
  "character": 5
7117
7117
  },
7118
7118
  "name": "CheckoutMain"
@@ -7121,7 +7121,7 @@
7121
7121
  "__schema": "TypeRefSchema",
7122
7122
  "location": {
7123
7123
  "filePath": "merging.main.runtime.ts",
7124
- "line": 686,
7124
+ "line": 687,
7125
7125
  "character": 5
7126
7126
  },
7127
7127
  "name": "InstallMain"
@@ -7130,7 +7130,7 @@
7130
7130
  "__schema": "TypeRefSchema",
7131
7131
  "location": {
7132
7132
  "filePath": "merging.main.runtime.ts",
7133
- "line": 687,
7133
+ "line": 688,
7134
7134
  "character": 5
7135
7135
  },
7136
7136
  "name": "LoggerMain"
@@ -7139,7 +7139,7 @@
7139
7139
  "__schema": "TypeRefSchema",
7140
7140
  "location": {
7141
7141
  "filePath": "merging.main.runtime.ts",
7142
- "line": 688,
7142
+ "line": 689,
7143
7143
  "character": 5
7144
7144
  },
7145
7145
  "name": "ComponentWriterMain"
@@ -7148,7 +7148,7 @@
7148
7148
  "__schema": "TypeRefSchema",
7149
7149
  "location": {
7150
7150
  "filePath": "merging.main.runtime.ts",
7151
- "line": 689,
7151
+ "line": 690,
7152
7152
  "character": 5
7153
7153
  },
7154
7154
  "name": "ImporterMain"
@@ -7157,7 +7157,7 @@
7157
7157
  "__schema": "TypeRefSchema",
7158
7158
  "location": {
7159
7159
  "filePath": "merging.main.runtime.ts",
7160
- "line": 690,
7160
+ "line": 691,
7161
7161
  "character": 5
7162
7162
  },
7163
7163
  "name": "ConfigMain"
@@ -7166,7 +7166,7 @@
7166
7166
  "__schema": "TypeRefSchema",
7167
7167
  "location": {
7168
7168
  "filePath": "merging.main.runtime.ts",
7169
- "line": 691,
7169
+ "line": 692,
7170
7170
  "character": 5
7171
7171
  },
7172
7172
  "name": "RemoveMain"
@@ -7175,7 +7175,7 @@
7175
7175
  "__schema": "TypeRefSchema",
7176
7176
  "location": {
7177
7177
  "filePath": "merging.main.runtime.ts",
7178
- "line": 692,
7178
+ "line": 693,
7179
7179
  "character": 5
7180
7180
  },
7181
7181
  "name": "GlobalConfigMain"
@@ -7184,7 +7184,7 @@
7184
7184
  "__schema": "TypeRefSchema",
7185
7185
  "location": {
7186
7186
  "filePath": "merging.main.runtime.ts",
7187
- "line": 693,
7187
+ "line": 694,
7188
7188
  "character": 5
7189
7189
  },
7190
7190
  "name": "ConfigMergerMain"
@@ -7199,7 +7199,7 @@
7199
7199
  "__schema": "InferenceTypeSchema",
7200
7200
  "location": {
7201
7201
  "filePath": "merging.main.runtime.ts",
7202
- "line": 666,
7202
+ "line": 667,
7203
7203
  "character": 3
7204
7204
  },
7205
7205
  "type": "Promise<MergingMain>"
@@ -7326,7 +7326,7 @@
7326
7326
  "__schema": "UnImplementedSchema",
7327
7327
  "location": {
7328
7328
  "filePath": "merging.main.runtime.ts",
7329
- "line": 714,
7329
+ "line": 715,
7330
7330
  "character": 1
7331
7331
  },
7332
7332
  "name": "MergingAspect.addRuntime(MergingMain);",
@@ -7375,7 +7375,7 @@
7375
7375
  "componentId": {
7376
7376
  "scope": "teambit.component",
7377
7377
  "name": "merging",
7378
- "version": "1.0.173"
7378
+ "version": "1.0.175"
7379
7379
  },
7380
7380
  "taggedModuleExports": []
7381
7381
  }
@@ -350,6 +350,7 @@ class MergingMain {
350
350
  try {
351
351
  mergeSnapResults = await getSnapOrTagResults();
352
352
  } catch (err) {
353
+ this.logger.error('failed running snap. mergeSnapError:', err);
353
354
  mergeSnapError = err;
354
355
  if (bitMapSnapshot) this.workspace.bitMap.restoreFromSnapshot(bitMapSnapshot);
355
356
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_workspace","_componentsList","_interopRequireDefault","_mergeVersion","_snapping","_hasWildcard","_pMapSeries","_componentId","_bitError","_laneId","_chalk","_config","_remove","_utils","_componentWriter","_importer","_logger","_globalConfig","_lodash","_checkout","_deleteComponentFiles","_configMerger","_install","_scope","_mergeCmd","_merging","_mergeStatusProvider","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","String","Symbol","toPrimitive","call","TypeError","Number","MergingMain","constructor","workspace","scope","install","snapping","checkout","logger","componentWriter","importer","config","remove","configMerger","merge","ids","mergeStrategy","abort","resolve","noSnap","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","tag","legacyScope","componentWithConflict","find","component","hasConflicts","getMergeStrategyInteractive","componentStatus","shouldBeRemoved","componentIdsToRemove","changeVersion","undefined","succeededComponents","componentsResults","applyVersionMultiple","allConfigMerge","compact","configMergeResult","workspaceDepsUpdates","workspaceDepsConflicts","updateWorkspaceJsoncWithDepsIfNeeded","workspaceConfigConflictWriteError","writeWorkspaceJsoncWithConflictsGracefully","generateConfigMergeConflictFileForAll","objects","add","persist","unmergedComponents","write","writeBitMap","compBitIdsToRemove","ComponentIdList","fromArray","deleteComponentsFiles","cleanFromBitMap","componentsHasConfigMergeConflicts","some","leftUnresolvedConflicts","dedupe","updateExisting","import","err","error","consoleError","getSnapOrTagResults","idsToTag","results","tagAllLaneComponent","taggedComponents","autoTaggedResults","removedComponents","snappedComponents","autoSnappedResults","snapResolvedComponents","toLaneId","mergeSnapResults","mergeSnapError","bitMapSnapshot","bitMap","takeSnapshot","restoreFromSnapshot","components","applyVersionResult","workspaceConfigUpdateResult","getMergeStatus","options","otherLane","mergeStatusProvider","MergeStatusProvider","getStatus","mapSeries","currentComponent","resolvedUnrelated","modelComponent","getModelComponent","updatedLaneId","isDefault","LaneId","from","name","applyVersion","remoteHead","getRef","version","compsToWrite","legacyCompToWrite","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","values","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","idsStr","componentIds","resolveMultipleComponentIds","entry","getEntry","unresolvedComponents","u","componentsList","ComponentsList","mergePending","listMergePendingComponents","hasWildcard","listComponentsByIdsWithWildcard","getParsedId","provider","cli","loggerMain","compWriter","globalConfig","createLogger","MergingAspect","merging","register","MergeCmd","exports","CLIAspect","WorkspaceAspect","ScopeAspect","SnappingAspect","CheckoutAspect","InstallAspect","LoggerAspect","ComponentWriterAspect","ImporterAspect","ConfigAspect","RemoveAspect","GlobalConfigAspect","ConfigMergerAspect","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/dist/consumer/component/components-list';\nimport {\n MergeStrategy,\n FileStatus,\n getMergeStrategyInteractive,\n MergeOptions,\n} from '@teambit/legacy/dist/consumer/versions-ops/merge-version';\nimport { SnappingAspect, SnappingMain, TagResults } from '@teambit/snapping';\nimport hasWildcard from '@teambit/legacy/dist/utils/string/has-wildcard';\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 } from '@teambit/remove';\nimport { pathNormalizeToLinux } from '@teambit/legacy/dist/utils';\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 { MergeResultsThreeWay } from '@teambit/legacy/dist/consumer/versions-ops/merge-version/three-way-merge';\nimport {\n ApplyVersionWithComps,\n CheckoutAspect,\n CheckoutMain,\n ComponentStatusBase,\n applyModifiedVersion,\n removeFilesIfNeeded,\n updateFileStatus,\n} from '@teambit/checkout';\nimport deleteComponentsFiles from '@teambit/legacy/dist/consumer/component-ops/delete-component-files';\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 { 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';\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 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 ) {}\n\n async merge(\n ids: string[],\n mergeStrategy: MergeStrategy,\n abort: boolean,\n resolve: boolean,\n noSnap: 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(ids, message, build);\n } else if (abort) {\n mergeResults = await this.abortMerge(ids);\n } else {\n const bitIds = await this.getComponentsToMerge(consumer, ids);\n mergeResults = await this.mergeComponentsFromRemote(\n consumer,\n bitIds,\n mergeStrategy,\n noSnap,\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 noSnap: 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 noSnap,\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 noSnap,\n tag,\n snapMessage,\n build,\n skipDependencyInstallation,\n }: {\n mergeStrategy: MergeStrategy;\n allComponentsStatus: ComponentMergeStatus[];\n otherLaneId: LaneId;\n currentLane: Lane | null;\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 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 } = this.workspace\n ? await this.configMerger.updateWorkspaceJsoncWithDepsIfNeeded(allConfigMerge)\n : { workspaceDepsUpdates: undefined, workspaceDepsConflicts: 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) await consumer.writeBitMap(`merge ${otherLaneId.toString()}`);\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.consoleError(`failed installing packages, see the log for full stacktrace. error: ${err.message}`);\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 (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 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 workspaceConfigConflictWriteError,\n },\n leftUnresolvedConflicts,\n };\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 | null, // currently checked out lane. if on main, then it's null.\n otherLane?: Lane | null // 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 || undefined,\n otherLane || undefined\n );\n return mergeStatusProvider.getStatus(bitIds);\n }\n\n private async applyVersionMultiple(\n succeededComponents: ComponentMergeStatus[],\n otherLaneId: LaneId,\n mergeStrategy: MergeStrategy,\n currentLane: Lane | null\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 | null;\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\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, filesStatus },\n component: currentComponent || undefined,\n legacyCompToWrite: legacyComponent,\n };\n }\n\n private async abortMerge(values: string[]): Promise<ApplyVersionResults> {\n const consumer = this.workspace.consumer;\n const ids = await this.getIdsForUnmerged(values);\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(values: string[], snapMessage: string, build: boolean): Promise<ApplyVersionResults> {\n const ids = await this.getIdsForUnmerged(values);\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 | null,\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(idsStr?: string[]): Promise<ComponentID[]> {\n if (idsStr && idsStr.length) {\n const componentIds = await this.workspace.resolveMultipleComponentIds(idsStr);\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, ids: string[]): Promise<ComponentID[]> {\n const componentsList = new ComponentsList(consumer);\n if (!ids.length) {\n const mergePending = await componentsList.listMergePendingComponents();\n return mergePending.map((c) => c.id);\n }\n if (hasWildcard(ids)) {\n return componentsList.listComponentsByIdsWithWildcard(ids);\n }\n return ids.map((id) => consumer.getParsedId(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 ];\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 ]: [\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 ]) {\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 );\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;EA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EACXC,0BAAc,EACdC,0BAAc,EACdC,wBAAa,EACbC,sBAAY,EACZC,wCAAqB,EACrBC,0BAAc,EACdC,sBAAY,EACZC,sBAAY,EACZC,kCAAkB,EAClBC,kCAAkB,CACnB;AAAAjR,eAAA,CAxiBUiB,WAAW,aAyiBLiQ,kBAAW;AAiD9BlB,wBAAa,CAACmB,UAAU,CAAClQ,WAAW,CAAC"}
1
+ {"version":3,"names":["_cli","data","require","_workspace","_componentsList","_interopRequireDefault","_mergeVersion","_snapping","_hasWildcard","_pMapSeries","_componentId","_bitError","_laneId","_chalk","_config","_remove","_utils","_componentWriter","_importer","_logger","_globalConfig","_lodash","_checkout","_deleteComponentFiles","_configMerger","_install","_scope","_mergeCmd","_merging","_mergeStatusProvider","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","String","Symbol","toPrimitive","call","TypeError","Number","MergingMain","constructor","workspace","scope","install","snapping","checkout","logger","componentWriter","importer","config","remove","configMerger","merge","ids","mergeStrategy","abort","resolve","noSnap","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","tag","legacyScope","componentWithConflict","find","component","hasConflicts","getMergeStrategyInteractive","componentStatus","shouldBeRemoved","componentIdsToRemove","changeVersion","undefined","succeededComponents","componentsResults","applyVersionMultiple","allConfigMerge","compact","configMergeResult","workspaceDepsUpdates","workspaceDepsConflicts","updateWorkspaceJsoncWithDepsIfNeeded","workspaceConfigConflictWriteError","writeWorkspaceJsoncWithConflictsGracefully","generateConfigMergeConflictFileForAll","objects","add","persist","unmergedComponents","write","writeBitMap","compBitIdsToRemove","ComponentIdList","fromArray","deleteComponentsFiles","cleanFromBitMap","componentsHasConfigMergeConflicts","some","leftUnresolvedConflicts","dedupe","updateExisting","import","err","error","consoleError","getSnapOrTagResults","idsToTag","results","tagAllLaneComponent","taggedComponents","autoTaggedResults","removedComponents","snappedComponents","autoSnappedResults","snapResolvedComponents","toLaneId","mergeSnapResults","mergeSnapError","bitMapSnapshot","bitMap","takeSnapshot","restoreFromSnapshot","components","applyVersionResult","workspaceConfigUpdateResult","getMergeStatus","options","otherLane","mergeStatusProvider","MergeStatusProvider","getStatus","mapSeries","currentComponent","resolvedUnrelated","modelComponent","getModelComponent","updatedLaneId","isDefault","LaneId","from","name","applyVersion","remoteHead","getRef","version","compsToWrite","legacyCompToWrite","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","values","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","idsStr","componentIds","resolveMultipleComponentIds","entry","getEntry","unresolvedComponents","u","componentsList","ComponentsList","mergePending","listMergePendingComponents","hasWildcard","listComponentsByIdsWithWildcard","getParsedId","provider","cli","loggerMain","compWriter","globalConfig","createLogger","MergingAspect","merging","register","MergeCmd","exports","CLIAspect","WorkspaceAspect","ScopeAspect","SnappingAspect","CheckoutAspect","InstallAspect","LoggerAspect","ComponentWriterAspect","ImporterAspect","ConfigAspect","RemoveAspect","GlobalConfigAspect","ConfigMergerAspect","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/dist/consumer/component/components-list';\nimport {\n MergeStrategy,\n FileStatus,\n getMergeStrategyInteractive,\n MergeOptions,\n} from '@teambit/legacy/dist/consumer/versions-ops/merge-version';\nimport { SnappingAspect, SnappingMain, TagResults } from '@teambit/snapping';\nimport hasWildcard from '@teambit/legacy/dist/utils/string/has-wildcard';\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 } from '@teambit/remove';\nimport { pathNormalizeToLinux } from '@teambit/legacy/dist/utils';\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 { MergeResultsThreeWay } from '@teambit/legacy/dist/consumer/versions-ops/merge-version/three-way-merge';\nimport {\n ApplyVersionWithComps,\n CheckoutAspect,\n CheckoutMain,\n ComponentStatusBase,\n applyModifiedVersion,\n removeFilesIfNeeded,\n updateFileStatus,\n} from '@teambit/checkout';\nimport deleteComponentsFiles from '@teambit/legacy/dist/consumer/component-ops/delete-component-files';\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 { 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';\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 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 ) {}\n\n async merge(\n ids: string[],\n mergeStrategy: MergeStrategy,\n abort: boolean,\n resolve: boolean,\n noSnap: 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(ids, message, build);\n } else if (abort) {\n mergeResults = await this.abortMerge(ids);\n } else {\n const bitIds = await this.getComponentsToMerge(consumer, ids);\n mergeResults = await this.mergeComponentsFromRemote(\n consumer,\n bitIds,\n mergeStrategy,\n noSnap,\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 noSnap: 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 noSnap,\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 noSnap,\n tag,\n snapMessage,\n build,\n skipDependencyInstallation,\n }: {\n mergeStrategy: MergeStrategy;\n allComponentsStatus: ComponentMergeStatus[];\n otherLaneId: LaneId;\n currentLane: Lane | null;\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 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 } = this.workspace\n ? await this.configMerger.updateWorkspaceJsoncWithDepsIfNeeded(allConfigMerge)\n : { workspaceDepsUpdates: undefined, workspaceDepsConflicts: 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) await consumer.writeBitMap(`merge ${otherLaneId.toString()}`);\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.consoleError(`failed installing packages, see the log for full stacktrace. error: ${err.message}`);\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 (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 workspaceConfigConflictWriteError,\n },\n leftUnresolvedConflicts,\n };\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 | null, // currently checked out lane. if on main, then it's null.\n otherLane?: Lane | null // 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 || undefined,\n otherLane || undefined\n );\n return mergeStatusProvider.getStatus(bitIds);\n }\n\n private async applyVersionMultiple(\n succeededComponents: ComponentMergeStatus[],\n otherLaneId: LaneId,\n mergeStrategy: MergeStrategy,\n currentLane: Lane | null\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 | null;\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\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, filesStatus },\n component: currentComponent || undefined,\n legacyCompToWrite: legacyComponent,\n };\n }\n\n private async abortMerge(values: string[]): Promise<ApplyVersionResults> {\n const consumer = this.workspace.consumer;\n const ids = await this.getIdsForUnmerged(values);\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(values: string[], snapMessage: string, build: boolean): Promise<ApplyVersionResults> {\n const ids = await this.getIdsForUnmerged(values);\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 | null,\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(idsStr?: string[]): Promise<ComponentID[]> {\n if (idsStr && idsStr.length) {\n const componentIds = await this.workspace.resolveMultipleComponentIds(idsStr);\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, ids: string[]): Promise<ComponentID[]> {\n const componentsList = new ComponentsList(consumer);\n if (!ids.length) {\n const mergePending = await componentsList.listMergePendingComponents();\n return mergePending.map((c) => c.id);\n }\n if (hasWildcard(ids)) {\n return componentsList.listComponentsByIdsWithWildcard(ids);\n }\n return ids.map((id) => consumer.getParsedId(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 ];\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 ]: [\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 ]) {\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 );\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,gBAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,cAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,aAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMA,SAAAM,UAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAA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 "version": "1.0.175",
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.173"
9
+ "version": "1.0.175"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,18 +17,18 @@
17
17
  "@teambit/lane-id": "0.0.311",
18
18
  "@teambit/harmony": "0.4.6",
19
19
  "@teambit/cli": "0.0.851",
20
- "@teambit/config-merger": "0.0.40",
20
+ "@teambit/config-merger": "0.0.42",
21
21
  "@teambit/global-config": "0.0.854",
22
- "@teambit/importer": "1.0.173",
22
+ "@teambit/importer": "1.0.175",
23
23
  "@teambit/logger": "0.0.944",
24
- "@teambit/scope": "1.0.173",
25
- "@teambit/workspace": "1.0.173",
26
- "@teambit/checkout": "1.0.173",
27
- "@teambit/component-writer": "1.0.173",
28
- "@teambit/config": "0.0.924",
29
- "@teambit/install": "1.0.173",
30
- "@teambit/remove": "1.0.173",
31
- "@teambit/snapping": "1.0.173"
24
+ "@teambit/scope": "1.0.175",
25
+ "@teambit/workspace": "1.0.175",
26
+ "@teambit/checkout": "1.0.175",
27
+ "@teambit/component-writer": "1.0.175",
28
+ "@teambit/config": "0.0.926",
29
+ "@teambit/install": "1.0.175",
30
+ "@teambit/remove": "1.0.175",
31
+ "@teambit/snapping": "1.0.175"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/lodash": "4.14.165",