@teambit/merging 1.0.224 → 1.0.226
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.
|
|
3
|
+
<testsuite name="teambit.component/merging@1.0.226" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -1930,14 +1930,14 @@
|
|
|
1930
1930
|
"__schema": "FunctionLikeSchema",
|
|
1931
1931
|
"location": {
|
|
1932
1932
|
"filePath": "merging.main.runtime.ts",
|
|
1933
|
-
"line":
|
|
1933
|
+
"line": 350,
|
|
1934
1934
|
"character": 3
|
|
1935
1935
|
},
|
|
1936
1936
|
"doc": {
|
|
1937
1937
|
"__schema": "DocSchema",
|
|
1938
1938
|
"location": {
|
|
1939
1939
|
"filePath": "merging.main.runtime.ts",
|
|
1940
|
-
"line":
|
|
1940
|
+
"line": 344,
|
|
1941
1941
|
"character": 3
|
|
1942
1942
|
},
|
|
1943
1943
|
"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 */",
|
|
@@ -1950,7 +1950,7 @@
|
|
|
1950
1950
|
"__schema": "ParameterSchema",
|
|
1951
1951
|
"location": {
|
|
1952
1952
|
"filePath": "merging.main.runtime.ts",
|
|
1953
|
-
"line":
|
|
1953
|
+
"line": 351,
|
|
1954
1954
|
"character": 5
|
|
1955
1955
|
},
|
|
1956
1956
|
"name": "bitIds",
|
|
@@ -1958,14 +1958,14 @@
|
|
|
1958
1958
|
"__schema": "TypeArraySchema",
|
|
1959
1959
|
"location": {
|
|
1960
1960
|
"filePath": "merging.main.runtime.ts",
|
|
1961
|
-
"line":
|
|
1961
|
+
"line": 351,
|
|
1962
1962
|
"character": 13
|
|
1963
1963
|
},
|
|
1964
1964
|
"type": {
|
|
1965
1965
|
"__schema": "TypeRefSchema",
|
|
1966
1966
|
"location": {
|
|
1967
1967
|
"filePath": "merging.main.runtime.ts",
|
|
1968
|
-
"line":
|
|
1968
|
+
"line": 351,
|
|
1969
1969
|
"character": 13
|
|
1970
1970
|
},
|
|
1971
1971
|
"name": "ComponentID",
|
|
@@ -1983,7 +1983,7 @@
|
|
|
1983
1983
|
"__schema": "ParameterSchema",
|
|
1984
1984
|
"location": {
|
|
1985
1985
|
"filePath": "merging.main.runtime.ts",
|
|
1986
|
-
"line":
|
|
1986
|
+
"line": 352,
|
|
1987
1987
|
"character": 5
|
|
1988
1988
|
},
|
|
1989
1989
|
"name": "options",
|
|
@@ -1991,7 +1991,7 @@
|
|
|
1991
1991
|
"__schema": "TypeRefSchema",
|
|
1992
1992
|
"location": {
|
|
1993
1993
|
"filePath": "merging.main.runtime.ts",
|
|
1994
|
-
"line":
|
|
1994
|
+
"line": 352,
|
|
1995
1995
|
"character": 14
|
|
1996
1996
|
},
|
|
1997
1997
|
"name": "MergeStatusProviderOptions",
|
|
@@ -2004,7 +2004,7 @@
|
|
|
2004
2004
|
"__schema": "ParameterSchema",
|
|
2005
2005
|
"location": {
|
|
2006
2006
|
"filePath": "merging.main.runtime.ts",
|
|
2007
|
-
"line":
|
|
2007
|
+
"line": 353,
|
|
2008
2008
|
"character": 5
|
|
2009
2009
|
},
|
|
2010
2010
|
"name": "currentLane",
|
|
@@ -2012,7 +2012,7 @@
|
|
|
2012
2012
|
"__schema": "TypeUnionSchema",
|
|
2013
2013
|
"location": {
|
|
2014
2014
|
"filePath": "merging.main.runtime.ts",
|
|
2015
|
-
"line":
|
|
2015
|
+
"line": 353,
|
|
2016
2016
|
"character": 18
|
|
2017
2017
|
},
|
|
2018
2018
|
"types": [
|
|
@@ -2020,7 +2020,7 @@
|
|
|
2020
2020
|
"__schema": "TypeRefSchema",
|
|
2021
2021
|
"location": {
|
|
2022
2022
|
"filePath": "merging.main.runtime.ts",
|
|
2023
|
-
"line":
|
|
2023
|
+
"line": 353,
|
|
2024
2024
|
"character": 18
|
|
2025
2025
|
},
|
|
2026
2026
|
"name": "Lane",
|
|
@@ -2030,7 +2030,7 @@
|
|
|
2030
2030
|
"__schema": "LiteralTypeSchema",
|
|
2031
2031
|
"location": {
|
|
2032
2032
|
"filePath": "merging.main.runtime.ts",
|
|
2033
|
-
"line":
|
|
2033
|
+
"line": 353,
|
|
2034
2034
|
"character": 25
|
|
2035
2035
|
},
|
|
2036
2036
|
"name": "null"
|
|
@@ -2044,7 +2044,7 @@
|
|
|
2044
2044
|
"__schema": "ParameterSchema",
|
|
2045
2045
|
"location": {
|
|
2046
2046
|
"filePath": "merging.main.runtime.ts",
|
|
2047
|
-
"line":
|
|
2047
|
+
"line": 354,
|
|
2048
2048
|
"character": 5
|
|
2049
2049
|
},
|
|
2050
2050
|
"name": "otherLane",
|
|
@@ -2052,7 +2052,7 @@
|
|
|
2052
2052
|
"__schema": "TypeUnionSchema",
|
|
2053
2053
|
"location": {
|
|
2054
2054
|
"filePath": "merging.main.runtime.ts",
|
|
2055
|
-
"line":
|
|
2055
|
+
"line": 354,
|
|
2056
2056
|
"character": 17
|
|
2057
2057
|
},
|
|
2058
2058
|
"types": [
|
|
@@ -2060,7 +2060,7 @@
|
|
|
2060
2060
|
"__schema": "TypeRefSchema",
|
|
2061
2061
|
"location": {
|
|
2062
2062
|
"filePath": "merging.main.runtime.ts",
|
|
2063
|
-
"line":
|
|
2063
|
+
"line": 354,
|
|
2064
2064
|
"character": 17
|
|
2065
2065
|
},
|
|
2066
2066
|
"name": "Lane",
|
|
@@ -2070,7 +2070,7 @@
|
|
|
2070
2070
|
"__schema": "LiteralTypeSchema",
|
|
2071
2071
|
"location": {
|
|
2072
2072
|
"filePath": "merging.main.runtime.ts",
|
|
2073
|
-
"line":
|
|
2073
|
+
"line": 354,
|
|
2074
2074
|
"character": 24
|
|
2075
2075
|
},
|
|
2076
2076
|
"name": "null"
|
|
@@ -2085,7 +2085,7 @@
|
|
|
2085
2085
|
"__schema": "TypeRefSchema",
|
|
2086
2086
|
"location": {
|
|
2087
2087
|
"filePath": "merging.main.runtime.ts",
|
|
2088
|
-
"line":
|
|
2088
|
+
"line": 355,
|
|
2089
2089
|
"character": 6
|
|
2090
2090
|
},
|
|
2091
2091
|
"name": "Promise",
|
|
@@ -2094,14 +2094,14 @@
|
|
|
2094
2094
|
"__schema": "TypeArraySchema",
|
|
2095
2095
|
"location": {
|
|
2096
2096
|
"filePath": "merging.main.runtime.ts",
|
|
2097
|
-
"line":
|
|
2097
|
+
"line": 355,
|
|
2098
2098
|
"character": 14
|
|
2099
2099
|
},
|
|
2100
2100
|
"type": {
|
|
2101
2101
|
"__schema": "TypeRefSchema",
|
|
2102
2102
|
"location": {
|
|
2103
2103
|
"filePath": "merging.main.runtime.ts",
|
|
2104
|
-
"line":
|
|
2104
|
+
"line": 355,
|
|
2105
2105
|
"character": 14
|
|
2106
2106
|
},
|
|
2107
2107
|
"name": "ComponentMergeStatus"
|
|
@@ -2117,7 +2117,7 @@
|
|
|
2117
2117
|
"__schema": "VariableLikeSchema",
|
|
2118
2118
|
"location": {
|
|
2119
2119
|
"filePath": "merging.main.runtime.ts",
|
|
2120
|
-
"line":
|
|
2120
|
+
"line": 651,
|
|
2121
2121
|
"character": 3
|
|
2122
2122
|
},
|
|
2123
2123
|
"signature": "(property) MergingMain.slots: never[]",
|
|
@@ -2126,7 +2126,7 @@
|
|
|
2126
2126
|
"__schema": "InferenceTypeSchema",
|
|
2127
2127
|
"location": {
|
|
2128
2128
|
"filePath": "merging.main.runtime.ts",
|
|
2129
|
-
"line":
|
|
2129
|
+
"line": 651,
|
|
2130
2130
|
"character": 3
|
|
2131
2131
|
},
|
|
2132
2132
|
"type": "never[]"
|
|
@@ -2138,7 +2138,7 @@
|
|
|
2138
2138
|
"__schema": "VariableLikeSchema",
|
|
2139
2139
|
"location": {
|
|
2140
2140
|
"filePath": "merging.main.runtime.ts",
|
|
2141
|
-
"line":
|
|
2141
|
+
"line": 652,
|
|
2142
2142
|
"character": 3
|
|
2143
2143
|
},
|
|
2144
2144
|
"signature": "(property) MergingMain.dependencies: Aspect[]",
|
|
@@ -2147,7 +2147,7 @@
|
|
|
2147
2147
|
"__schema": "InferenceTypeSchema",
|
|
2148
2148
|
"location": {
|
|
2149
2149
|
"filePath": "merging.main.runtime.ts",
|
|
2150
|
-
"line":
|
|
2150
|
+
"line": 652,
|
|
2151
2151
|
"character": 3
|
|
2152
2152
|
},
|
|
2153
2153
|
"type": "Aspect[]"
|
|
@@ -2159,7 +2159,7 @@
|
|
|
2159
2159
|
"__schema": "VariableLikeSchema",
|
|
2160
2160
|
"location": {
|
|
2161
2161
|
"filePath": "merging.main.runtime.ts",
|
|
2162
|
-
"line":
|
|
2162
|
+
"line": 667,
|
|
2163
2163
|
"character": 3
|
|
2164
2164
|
},
|
|
2165
2165
|
"signature": "(property) MergingMain.runtime: RuntimeDefinition",
|
|
@@ -2168,7 +2168,7 @@
|
|
|
2168
2168
|
"__schema": "InferenceTypeSchema",
|
|
2169
2169
|
"location": {
|
|
2170
2170
|
"filePath": "merging.main.runtime.ts",
|
|
2171
|
-
"line":
|
|
2171
|
+
"line": 667,
|
|
2172
2172
|
"character": 3
|
|
2173
2173
|
},
|
|
2174
2174
|
"type": "RuntimeDefinition"
|
|
@@ -2180,7 +2180,7 @@
|
|
|
2180
2180
|
"__schema": "FunctionLikeSchema",
|
|
2181
2181
|
"location": {
|
|
2182
2182
|
"filePath": "merging.main.runtime.ts",
|
|
2183
|
-
"line":
|
|
2183
|
+
"line": 668,
|
|
2184
2184
|
"character": 3
|
|
2185
2185
|
},
|
|
2186
2186
|
"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>",
|
|
@@ -2190,7 +2190,7 @@
|
|
|
2190
2190
|
"__schema": "ParameterSchema",
|
|
2191
2191
|
"location": {
|
|
2192
2192
|
"filePath": "merging.main.runtime.ts",
|
|
2193
|
-
"line":
|
|
2193
|
+
"line": 668,
|
|
2194
2194
|
"character": 25
|
|
2195
2195
|
},
|
|
2196
2196
|
"name": "[ cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger ]",
|
|
@@ -2198,7 +2198,7 @@
|
|
|
2198
2198
|
"__schema": "TupleTypeSchema",
|
|
2199
2199
|
"location": {
|
|
2200
2200
|
"filePath": "merging.main.runtime.ts",
|
|
2201
|
-
"line":
|
|
2201
|
+
"line": 682,
|
|
2202
2202
|
"character": 6
|
|
2203
2203
|
},
|
|
2204
2204
|
"elements": [
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
"__schema": "TypeRefSchema",
|
|
2207
2207
|
"location": {
|
|
2208
2208
|
"filePath": "merging.main.runtime.ts",
|
|
2209
|
-
"line":
|
|
2209
|
+
"line": 683,
|
|
2210
2210
|
"character": 5
|
|
2211
2211
|
},
|
|
2212
2212
|
"name": "CLIMain",
|
|
@@ -2219,7 +2219,7 @@
|
|
|
2219
2219
|
"__schema": "TypeRefSchema",
|
|
2220
2220
|
"location": {
|
|
2221
2221
|
"filePath": "merging.main.runtime.ts",
|
|
2222
|
-
"line":
|
|
2222
|
+
"line": 684,
|
|
2223
2223
|
"character": 5
|
|
2224
2224
|
},
|
|
2225
2225
|
"name": "Workspace",
|
|
@@ -2232,7 +2232,7 @@
|
|
|
2232
2232
|
"__schema": "TypeRefSchema",
|
|
2233
2233
|
"location": {
|
|
2234
2234
|
"filePath": "merging.main.runtime.ts",
|
|
2235
|
-
"line":
|
|
2235
|
+
"line": 685,
|
|
2236
2236
|
"character": 5
|
|
2237
2237
|
},
|
|
2238
2238
|
"name": "ScopeMain",
|
|
@@ -2245,7 +2245,7 @@
|
|
|
2245
2245
|
"__schema": "TypeRefSchema",
|
|
2246
2246
|
"location": {
|
|
2247
2247
|
"filePath": "merging.main.runtime.ts",
|
|
2248
|
-
"line":
|
|
2248
|
+
"line": 686,
|
|
2249
2249
|
"character": 5
|
|
2250
2250
|
},
|
|
2251
2251
|
"name": "SnappingMain",
|
|
@@ -2258,7 +2258,7 @@
|
|
|
2258
2258
|
"__schema": "TypeRefSchema",
|
|
2259
2259
|
"location": {
|
|
2260
2260
|
"filePath": "merging.main.runtime.ts",
|
|
2261
|
-
"line":
|
|
2261
|
+
"line": 687,
|
|
2262
2262
|
"character": 5
|
|
2263
2263
|
},
|
|
2264
2264
|
"name": "CheckoutMain",
|
|
@@ -2271,7 +2271,7 @@
|
|
|
2271
2271
|
"__schema": "TypeRefSchema",
|
|
2272
2272
|
"location": {
|
|
2273
2273
|
"filePath": "merging.main.runtime.ts",
|
|
2274
|
-
"line":
|
|
2274
|
+
"line": 688,
|
|
2275
2275
|
"character": 5
|
|
2276
2276
|
},
|
|
2277
2277
|
"name": "InstallMain",
|
|
@@ -2284,7 +2284,7 @@
|
|
|
2284
2284
|
"__schema": "TypeRefSchema",
|
|
2285
2285
|
"location": {
|
|
2286
2286
|
"filePath": "merging.main.runtime.ts",
|
|
2287
|
-
"line":
|
|
2287
|
+
"line": 689,
|
|
2288
2288
|
"character": 5
|
|
2289
2289
|
},
|
|
2290
2290
|
"name": "LoggerMain",
|
|
@@ -2297,7 +2297,7 @@
|
|
|
2297
2297
|
"__schema": "TypeRefSchema",
|
|
2298
2298
|
"location": {
|
|
2299
2299
|
"filePath": "merging.main.runtime.ts",
|
|
2300
|
-
"line":
|
|
2300
|
+
"line": 690,
|
|
2301
2301
|
"character": 5
|
|
2302
2302
|
},
|
|
2303
2303
|
"name": "ComponentWriterMain",
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
"__schema": "TypeRefSchema",
|
|
2311
2311
|
"location": {
|
|
2312
2312
|
"filePath": "merging.main.runtime.ts",
|
|
2313
|
-
"line":
|
|
2313
|
+
"line": 691,
|
|
2314
2314
|
"character": 5
|
|
2315
2315
|
},
|
|
2316
2316
|
"name": "ImporterMain",
|
|
@@ -2323,7 +2323,7 @@
|
|
|
2323
2323
|
"__schema": "TypeRefSchema",
|
|
2324
2324
|
"location": {
|
|
2325
2325
|
"filePath": "merging.main.runtime.ts",
|
|
2326
|
-
"line":
|
|
2326
|
+
"line": 692,
|
|
2327
2327
|
"character": 5
|
|
2328
2328
|
},
|
|
2329
2329
|
"name": "ConfigMain",
|
|
@@ -2336,7 +2336,7 @@
|
|
|
2336
2336
|
"__schema": "TypeRefSchema",
|
|
2337
2337
|
"location": {
|
|
2338
2338
|
"filePath": "merging.main.runtime.ts",
|
|
2339
|
-
"line":
|
|
2339
|
+
"line": 693,
|
|
2340
2340
|
"character": 5
|
|
2341
2341
|
},
|
|
2342
2342
|
"name": "RemoveMain",
|
|
@@ -2349,7 +2349,7 @@
|
|
|
2349
2349
|
"__schema": "TypeRefSchema",
|
|
2350
2350
|
"location": {
|
|
2351
2351
|
"filePath": "merging.main.runtime.ts",
|
|
2352
|
-
"line":
|
|
2352
|
+
"line": 694,
|
|
2353
2353
|
"character": 5
|
|
2354
2354
|
},
|
|
2355
2355
|
"name": "GlobalConfigMain",
|
|
@@ -2362,7 +2362,7 @@
|
|
|
2362
2362
|
"__schema": "TypeRefSchema",
|
|
2363
2363
|
"location": {
|
|
2364
2364
|
"filePath": "merging.main.runtime.ts",
|
|
2365
|
-
"line":
|
|
2365
|
+
"line": 695,
|
|
2366
2366
|
"character": 5
|
|
2367
2367
|
},
|
|
2368
2368
|
"name": "ConfigMergerMain",
|
|
@@ -2381,7 +2381,7 @@
|
|
|
2381
2381
|
"__schema": "InferenceTypeSchema",
|
|
2382
2382
|
"location": {
|
|
2383
2383
|
"filePath": "merging.main.runtime.ts",
|
|
2384
|
-
"line":
|
|
2384
|
+
"line": 668,
|
|
2385
2385
|
"character": 3
|
|
2386
2386
|
},
|
|
2387
2387
|
"type": "Promise<MergingMain>"
|
|
@@ -4029,7 +4029,7 @@
|
|
|
4029
4029
|
"_legacy": {
|
|
4030
4030
|
"scope": "teambit.component",
|
|
4031
4031
|
"name": "merging",
|
|
4032
|
-
"version": "1.0.
|
|
4032
|
+
"version": "1.0.226"
|
|
4033
4033
|
},
|
|
4034
4034
|
"_scope": "teambit.component"
|
|
4035
4035
|
}
|
|
@@ -7106,14 +7106,14 @@
|
|
|
7106
7106
|
"__schema": "FunctionLikeSchema",
|
|
7107
7107
|
"location": {
|
|
7108
7108
|
"filePath": "merging.main.runtime.ts",
|
|
7109
|
-
"line":
|
|
7109
|
+
"line": 350,
|
|
7110
7110
|
"character": 3
|
|
7111
7111
|
},
|
|
7112
7112
|
"doc": {
|
|
7113
7113
|
"__schema": "DocSchema",
|
|
7114
7114
|
"location": {
|
|
7115
7115
|
"filePath": "merging.main.runtime.ts",
|
|
7116
|
-
"line":
|
|
7116
|
+
"line": 344,
|
|
7117
7117
|
"character": 3
|
|
7118
7118
|
},
|
|
7119
7119
|
"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 */",
|
|
@@ -7126,7 +7126,7 @@
|
|
|
7126
7126
|
"__schema": "ParameterSchema",
|
|
7127
7127
|
"location": {
|
|
7128
7128
|
"filePath": "merging.main.runtime.ts",
|
|
7129
|
-
"line":
|
|
7129
|
+
"line": 351,
|
|
7130
7130
|
"character": 5
|
|
7131
7131
|
},
|
|
7132
7132
|
"name": "bitIds",
|
|
@@ -7134,14 +7134,14 @@
|
|
|
7134
7134
|
"__schema": "TypeArraySchema",
|
|
7135
7135
|
"location": {
|
|
7136
7136
|
"filePath": "merging.main.runtime.ts",
|
|
7137
|
-
"line":
|
|
7137
|
+
"line": 351,
|
|
7138
7138
|
"character": 13
|
|
7139
7139
|
},
|
|
7140
7140
|
"type": {
|
|
7141
7141
|
"__schema": "TypeRefSchema",
|
|
7142
7142
|
"location": {
|
|
7143
7143
|
"filePath": "merging.main.runtime.ts",
|
|
7144
|
-
"line":
|
|
7144
|
+
"line": 351,
|
|
7145
7145
|
"character": 13
|
|
7146
7146
|
},
|
|
7147
7147
|
"name": "ComponentID",
|
|
@@ -7159,7 +7159,7 @@
|
|
|
7159
7159
|
"__schema": "ParameterSchema",
|
|
7160
7160
|
"location": {
|
|
7161
7161
|
"filePath": "merging.main.runtime.ts",
|
|
7162
|
-
"line":
|
|
7162
|
+
"line": 352,
|
|
7163
7163
|
"character": 5
|
|
7164
7164
|
},
|
|
7165
7165
|
"name": "options",
|
|
@@ -7167,7 +7167,7 @@
|
|
|
7167
7167
|
"__schema": "TypeRefSchema",
|
|
7168
7168
|
"location": {
|
|
7169
7169
|
"filePath": "merging.main.runtime.ts",
|
|
7170
|
-
"line":
|
|
7170
|
+
"line": 352,
|
|
7171
7171
|
"character": 14
|
|
7172
7172
|
},
|
|
7173
7173
|
"name": "MergeStatusProviderOptions",
|
|
@@ -7180,7 +7180,7 @@
|
|
|
7180
7180
|
"__schema": "ParameterSchema",
|
|
7181
7181
|
"location": {
|
|
7182
7182
|
"filePath": "merging.main.runtime.ts",
|
|
7183
|
-
"line":
|
|
7183
|
+
"line": 353,
|
|
7184
7184
|
"character": 5
|
|
7185
7185
|
},
|
|
7186
7186
|
"name": "currentLane",
|
|
@@ -7188,7 +7188,7 @@
|
|
|
7188
7188
|
"__schema": "TypeUnionSchema",
|
|
7189
7189
|
"location": {
|
|
7190
7190
|
"filePath": "merging.main.runtime.ts",
|
|
7191
|
-
"line":
|
|
7191
|
+
"line": 353,
|
|
7192
7192
|
"character": 18
|
|
7193
7193
|
},
|
|
7194
7194
|
"types": [
|
|
@@ -7196,7 +7196,7 @@
|
|
|
7196
7196
|
"__schema": "TypeRefSchema",
|
|
7197
7197
|
"location": {
|
|
7198
7198
|
"filePath": "merging.main.runtime.ts",
|
|
7199
|
-
"line":
|
|
7199
|
+
"line": 353,
|
|
7200
7200
|
"character": 18
|
|
7201
7201
|
},
|
|
7202
7202
|
"name": "Lane",
|
|
@@ -7206,7 +7206,7 @@
|
|
|
7206
7206
|
"__schema": "LiteralTypeSchema",
|
|
7207
7207
|
"location": {
|
|
7208
7208
|
"filePath": "merging.main.runtime.ts",
|
|
7209
|
-
"line":
|
|
7209
|
+
"line": 353,
|
|
7210
7210
|
"character": 25
|
|
7211
7211
|
},
|
|
7212
7212
|
"name": "null"
|
|
@@ -7220,7 +7220,7 @@
|
|
|
7220
7220
|
"__schema": "ParameterSchema",
|
|
7221
7221
|
"location": {
|
|
7222
7222
|
"filePath": "merging.main.runtime.ts",
|
|
7223
|
-
"line":
|
|
7223
|
+
"line": 354,
|
|
7224
7224
|
"character": 5
|
|
7225
7225
|
},
|
|
7226
7226
|
"name": "otherLane",
|
|
@@ -7228,7 +7228,7 @@
|
|
|
7228
7228
|
"__schema": "TypeUnionSchema",
|
|
7229
7229
|
"location": {
|
|
7230
7230
|
"filePath": "merging.main.runtime.ts",
|
|
7231
|
-
"line":
|
|
7231
|
+
"line": 354,
|
|
7232
7232
|
"character": 17
|
|
7233
7233
|
},
|
|
7234
7234
|
"types": [
|
|
@@ -7236,7 +7236,7 @@
|
|
|
7236
7236
|
"__schema": "TypeRefSchema",
|
|
7237
7237
|
"location": {
|
|
7238
7238
|
"filePath": "merging.main.runtime.ts",
|
|
7239
|
-
"line":
|
|
7239
|
+
"line": 354,
|
|
7240
7240
|
"character": 17
|
|
7241
7241
|
},
|
|
7242
7242
|
"name": "Lane",
|
|
@@ -7246,7 +7246,7 @@
|
|
|
7246
7246
|
"__schema": "LiteralTypeSchema",
|
|
7247
7247
|
"location": {
|
|
7248
7248
|
"filePath": "merging.main.runtime.ts",
|
|
7249
|
-
"line":
|
|
7249
|
+
"line": 354,
|
|
7250
7250
|
"character": 24
|
|
7251
7251
|
},
|
|
7252
7252
|
"name": "null"
|
|
@@ -7261,7 +7261,7 @@
|
|
|
7261
7261
|
"__schema": "TypeRefSchema",
|
|
7262
7262
|
"location": {
|
|
7263
7263
|
"filePath": "merging.main.runtime.ts",
|
|
7264
|
-
"line":
|
|
7264
|
+
"line": 355,
|
|
7265
7265
|
"character": 6
|
|
7266
7266
|
},
|
|
7267
7267
|
"name": "Promise",
|
|
@@ -7270,14 +7270,14 @@
|
|
|
7270
7270
|
"__schema": "TypeArraySchema",
|
|
7271
7271
|
"location": {
|
|
7272
7272
|
"filePath": "merging.main.runtime.ts",
|
|
7273
|
-
"line":
|
|
7273
|
+
"line": 355,
|
|
7274
7274
|
"character": 14
|
|
7275
7275
|
},
|
|
7276
7276
|
"type": {
|
|
7277
7277
|
"__schema": "TypeRefSchema",
|
|
7278
7278
|
"location": {
|
|
7279
7279
|
"filePath": "merging.main.runtime.ts",
|
|
7280
|
-
"line":
|
|
7280
|
+
"line": 355,
|
|
7281
7281
|
"character": 14
|
|
7282
7282
|
},
|
|
7283
7283
|
"name": "ComponentMergeStatus"
|
|
@@ -7293,7 +7293,7 @@
|
|
|
7293
7293
|
"__schema": "VariableLikeSchema",
|
|
7294
7294
|
"location": {
|
|
7295
7295
|
"filePath": "merging.main.runtime.ts",
|
|
7296
|
-
"line":
|
|
7296
|
+
"line": 651,
|
|
7297
7297
|
"character": 3
|
|
7298
7298
|
},
|
|
7299
7299
|
"signature": "(property) MergingMain.slots: never[]",
|
|
@@ -7302,7 +7302,7 @@
|
|
|
7302
7302
|
"__schema": "InferenceTypeSchema",
|
|
7303
7303
|
"location": {
|
|
7304
7304
|
"filePath": "merging.main.runtime.ts",
|
|
7305
|
-
"line":
|
|
7305
|
+
"line": 651,
|
|
7306
7306
|
"character": 3
|
|
7307
7307
|
},
|
|
7308
7308
|
"type": "never[]"
|
|
@@ -7314,7 +7314,7 @@
|
|
|
7314
7314
|
"__schema": "VariableLikeSchema",
|
|
7315
7315
|
"location": {
|
|
7316
7316
|
"filePath": "merging.main.runtime.ts",
|
|
7317
|
-
"line":
|
|
7317
|
+
"line": 652,
|
|
7318
7318
|
"character": 3
|
|
7319
7319
|
},
|
|
7320
7320
|
"signature": "(property) MergingMain.dependencies: Aspect[]",
|
|
@@ -7323,7 +7323,7 @@
|
|
|
7323
7323
|
"__schema": "InferenceTypeSchema",
|
|
7324
7324
|
"location": {
|
|
7325
7325
|
"filePath": "merging.main.runtime.ts",
|
|
7326
|
-
"line":
|
|
7326
|
+
"line": 652,
|
|
7327
7327
|
"character": 3
|
|
7328
7328
|
},
|
|
7329
7329
|
"type": "Aspect[]"
|
|
@@ -7335,7 +7335,7 @@
|
|
|
7335
7335
|
"__schema": "VariableLikeSchema",
|
|
7336
7336
|
"location": {
|
|
7337
7337
|
"filePath": "merging.main.runtime.ts",
|
|
7338
|
-
"line":
|
|
7338
|
+
"line": 667,
|
|
7339
7339
|
"character": 3
|
|
7340
7340
|
},
|
|
7341
7341
|
"signature": "(property) MergingMain.runtime: RuntimeDefinition",
|
|
@@ -7344,7 +7344,7 @@
|
|
|
7344
7344
|
"__schema": "InferenceTypeSchema",
|
|
7345
7345
|
"location": {
|
|
7346
7346
|
"filePath": "merging.main.runtime.ts",
|
|
7347
|
-
"line":
|
|
7347
|
+
"line": 667,
|
|
7348
7348
|
"character": 3
|
|
7349
7349
|
},
|
|
7350
7350
|
"type": "RuntimeDefinition"
|
|
@@ -7356,7 +7356,7 @@
|
|
|
7356
7356
|
"__schema": "FunctionLikeSchema",
|
|
7357
7357
|
"location": {
|
|
7358
7358
|
"filePath": "merging.main.runtime.ts",
|
|
7359
|
-
"line":
|
|
7359
|
+
"line": 668,
|
|
7360
7360
|
"character": 3
|
|
7361
7361
|
},
|
|
7362
7362
|
"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>",
|
|
@@ -7366,7 +7366,7 @@
|
|
|
7366
7366
|
"__schema": "ParameterSchema",
|
|
7367
7367
|
"location": {
|
|
7368
7368
|
"filePath": "merging.main.runtime.ts",
|
|
7369
|
-
"line":
|
|
7369
|
+
"line": 668,
|
|
7370
7370
|
"character": 25
|
|
7371
7371
|
},
|
|
7372
7372
|
"name": "[ cli, workspace, scope, snapping, checkout, install, loggerMain, compWriter, importer, config, remove, globalConfig, configMerger ]",
|
|
@@ -7374,7 +7374,7 @@
|
|
|
7374
7374
|
"__schema": "TupleTypeSchema",
|
|
7375
7375
|
"location": {
|
|
7376
7376
|
"filePath": "merging.main.runtime.ts",
|
|
7377
|
-
"line":
|
|
7377
|
+
"line": 682,
|
|
7378
7378
|
"character": 6
|
|
7379
7379
|
},
|
|
7380
7380
|
"elements": [
|
|
@@ -7382,7 +7382,7 @@
|
|
|
7382
7382
|
"__schema": "TypeRefSchema",
|
|
7383
7383
|
"location": {
|
|
7384
7384
|
"filePath": "merging.main.runtime.ts",
|
|
7385
|
-
"line":
|
|
7385
|
+
"line": 683,
|
|
7386
7386
|
"character": 5
|
|
7387
7387
|
},
|
|
7388
7388
|
"name": "CLIMain",
|
|
@@ -7395,7 +7395,7 @@
|
|
|
7395
7395
|
"__schema": "TypeRefSchema",
|
|
7396
7396
|
"location": {
|
|
7397
7397
|
"filePath": "merging.main.runtime.ts",
|
|
7398
|
-
"line":
|
|
7398
|
+
"line": 684,
|
|
7399
7399
|
"character": 5
|
|
7400
7400
|
},
|
|
7401
7401
|
"name": "Workspace",
|
|
@@ -7408,7 +7408,7 @@
|
|
|
7408
7408
|
"__schema": "TypeRefSchema",
|
|
7409
7409
|
"location": {
|
|
7410
7410
|
"filePath": "merging.main.runtime.ts",
|
|
7411
|
-
"line":
|
|
7411
|
+
"line": 685,
|
|
7412
7412
|
"character": 5
|
|
7413
7413
|
},
|
|
7414
7414
|
"name": "ScopeMain",
|
|
@@ -7421,7 +7421,7 @@
|
|
|
7421
7421
|
"__schema": "TypeRefSchema",
|
|
7422
7422
|
"location": {
|
|
7423
7423
|
"filePath": "merging.main.runtime.ts",
|
|
7424
|
-
"line":
|
|
7424
|
+
"line": 686,
|
|
7425
7425
|
"character": 5
|
|
7426
7426
|
},
|
|
7427
7427
|
"name": "SnappingMain",
|
|
@@ -7434,7 +7434,7 @@
|
|
|
7434
7434
|
"__schema": "TypeRefSchema",
|
|
7435
7435
|
"location": {
|
|
7436
7436
|
"filePath": "merging.main.runtime.ts",
|
|
7437
|
-
"line":
|
|
7437
|
+
"line": 687,
|
|
7438
7438
|
"character": 5
|
|
7439
7439
|
},
|
|
7440
7440
|
"name": "CheckoutMain",
|
|
@@ -7447,7 +7447,7 @@
|
|
|
7447
7447
|
"__schema": "TypeRefSchema",
|
|
7448
7448
|
"location": {
|
|
7449
7449
|
"filePath": "merging.main.runtime.ts",
|
|
7450
|
-
"line":
|
|
7450
|
+
"line": 688,
|
|
7451
7451
|
"character": 5
|
|
7452
7452
|
},
|
|
7453
7453
|
"name": "InstallMain",
|
|
@@ -7460,7 +7460,7 @@
|
|
|
7460
7460
|
"__schema": "TypeRefSchema",
|
|
7461
7461
|
"location": {
|
|
7462
7462
|
"filePath": "merging.main.runtime.ts",
|
|
7463
|
-
"line":
|
|
7463
|
+
"line": 689,
|
|
7464
7464
|
"character": 5
|
|
7465
7465
|
},
|
|
7466
7466
|
"name": "LoggerMain",
|
|
@@ -7473,7 +7473,7 @@
|
|
|
7473
7473
|
"__schema": "TypeRefSchema",
|
|
7474
7474
|
"location": {
|
|
7475
7475
|
"filePath": "merging.main.runtime.ts",
|
|
7476
|
-
"line":
|
|
7476
|
+
"line": 690,
|
|
7477
7477
|
"character": 5
|
|
7478
7478
|
},
|
|
7479
7479
|
"name": "ComponentWriterMain",
|
|
@@ -7486,7 +7486,7 @@
|
|
|
7486
7486
|
"__schema": "TypeRefSchema",
|
|
7487
7487
|
"location": {
|
|
7488
7488
|
"filePath": "merging.main.runtime.ts",
|
|
7489
|
-
"line":
|
|
7489
|
+
"line": 691,
|
|
7490
7490
|
"character": 5
|
|
7491
7491
|
},
|
|
7492
7492
|
"name": "ImporterMain",
|
|
@@ -7499,7 +7499,7 @@
|
|
|
7499
7499
|
"__schema": "TypeRefSchema",
|
|
7500
7500
|
"location": {
|
|
7501
7501
|
"filePath": "merging.main.runtime.ts",
|
|
7502
|
-
"line":
|
|
7502
|
+
"line": 692,
|
|
7503
7503
|
"character": 5
|
|
7504
7504
|
},
|
|
7505
7505
|
"name": "ConfigMain",
|
|
@@ -7512,7 +7512,7 @@
|
|
|
7512
7512
|
"__schema": "TypeRefSchema",
|
|
7513
7513
|
"location": {
|
|
7514
7514
|
"filePath": "merging.main.runtime.ts",
|
|
7515
|
-
"line":
|
|
7515
|
+
"line": 693,
|
|
7516
7516
|
"character": 5
|
|
7517
7517
|
},
|
|
7518
7518
|
"name": "RemoveMain",
|
|
@@ -7525,7 +7525,7 @@
|
|
|
7525
7525
|
"__schema": "TypeRefSchema",
|
|
7526
7526
|
"location": {
|
|
7527
7527
|
"filePath": "merging.main.runtime.ts",
|
|
7528
|
-
"line":
|
|
7528
|
+
"line": 694,
|
|
7529
7529
|
"character": 5
|
|
7530
7530
|
},
|
|
7531
7531
|
"name": "GlobalConfigMain",
|
|
@@ -7538,7 +7538,7 @@
|
|
|
7538
7538
|
"__schema": "TypeRefSchema",
|
|
7539
7539
|
"location": {
|
|
7540
7540
|
"filePath": "merging.main.runtime.ts",
|
|
7541
|
-
"line":
|
|
7541
|
+
"line": 695,
|
|
7542
7542
|
"character": 5
|
|
7543
7543
|
},
|
|
7544
7544
|
"name": "ConfigMergerMain",
|
|
@@ -7557,7 +7557,7 @@
|
|
|
7557
7557
|
"__schema": "InferenceTypeSchema",
|
|
7558
7558
|
"location": {
|
|
7559
7559
|
"filePath": "merging.main.runtime.ts",
|
|
7560
|
-
"line":
|
|
7560
|
+
"line": 668,
|
|
7561
7561
|
"character": 3
|
|
7562
7562
|
},
|
|
7563
7563
|
"type": "Promise<MergingMain>"
|
|
@@ -7685,7 +7685,7 @@
|
|
|
7685
7685
|
"__schema": "UnImplementedSchema",
|
|
7686
7686
|
"location": {
|
|
7687
7687
|
"filePath": "merging.main.runtime.ts",
|
|
7688
|
-
"line":
|
|
7688
|
+
"line": 716,
|
|
7689
7689
|
"character": 1
|
|
7690
7690
|
},
|
|
7691
7691
|
"name": "MergingAspect.addRuntime(MergingMain);",
|
|
@@ -7734,7 +7734,7 @@
|
|
|
7734
7734
|
"componentId": {
|
|
7735
7735
|
"scope": "teambit.component",
|
|
7736
7736
|
"name": "merging",
|
|
7737
|
-
"version": "1.0.
|
|
7737
|
+
"version": "1.0.226"
|
|
7738
7738
|
},
|
|
7739
7739
|
"taggedModuleExports": []
|
|
7740
7740
|
}
|
|
@@ -318,7 +318,7 @@ class MergingMain {
|
|
|
318
318
|
});
|
|
319
319
|
} catch (err) {
|
|
320
320
|
this.logger.error(`failed installing packages`, err);
|
|
321
|
-
this.logger.
|
|
321
|
+
this.logger.consoleFailure(`failed installing packages, see the log for full stacktrace. error: ${err.message}`);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
const getSnapOrTagResults = async () => {
|
|
@@ -546,7 +546,7 @@ class MergingMain {
|
|
|
546
546
|
}
|
|
547
547
|
return {
|
|
548
548
|
applyVersionResult: {
|
|
549
|
-
id,
|
|
549
|
+
id: idToLoad,
|
|
550
550
|
filesStatus
|
|
551
551
|
},
|
|
552
552
|
component: currentComponent || undefined,
|
|
@@ -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","Symbol","toPrimitive","call","TypeError","String","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;EAAAK,SAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,aAAA;EAAA,MAAAP,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAM,YAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,YAAA;EAAA,MAAAR,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAO,WAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,aAAA;EAA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YAAY,CAACC,wBAAa,CAAChM,EAAE,CAAC;IACxD,MAAMiM,OAAO,GAAG,IAAIhP,WAAW,CAC7BE,SAAS,EACTC,KAAK,EACLC,OAAO,EACPC,QAAQ,EACRC,QAAQ,EACRC,MAAM,EACNqO,UAAU,EACVnO,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,YACF,CAAC;IACD8N,GAAG,CAACO,QAAQ,CAAC,KAAIC,oBAAQ,EAACF,OAAO,EAAEH,YAAY,CAAC,CAAC;IACjD,OAAOG,OAAO;EAChB;AACF;AAACG,OAAA,CAAAnP,WAAA,GAAAA,WAAA;AAAAjB,eAAA,CAzlBYiB,WAAW,WA0hBP,EAAE;AAAAjB,eAAA,CA1hBNiB,WAAW,kBA2hBA,CACpBoP,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,CACnB;AAAAjR,eAAA,CAziBUiB,WAAW,aA0iBLiQ,kBAAW;AAiD9BlB,wBAAa,CAACmB,UAAU,CAAClQ,WAAW,CAAC","ignoreList":[]}
|
|
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","Symbol","toPrimitive","call","TypeError","String","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","consoleFailure","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.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 (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 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(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,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AC,CAAC;IACjD,OAAOG,OAAO;EAChB;AACF;AAACG,OAAA,CAAAnP,WAAA,GAAAA,WAAA;AAAAjB,eAAA,CA1lBYiB,WAAW,WA2hBP,EAAE;AAAAjB,eAAA,CA3hBNiB,WAAW,kBA4hBA,CACpBoP,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,CACnB;AAAAjR,eAAA,CA1iBUiB,WAAW,aA2iBLiQ,kBAAW;AAiD9BlB,wBAAa,CAACmB,UAAU,CAAClQ,WAAW,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/merging",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.226",
|
|
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.
|
|
9
|
+
"version": "1.0.226"
|
|
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.859",
|
|
20
|
-
"@teambit/config-merger": "0.0.
|
|
20
|
+
"@teambit/config-merger": "0.0.93",
|
|
21
21
|
"@teambit/global-config": "0.0.862",
|
|
22
|
-
"@teambit/importer": "1.0.
|
|
22
|
+
"@teambit/importer": "1.0.226",
|
|
23
23
|
"@teambit/logger": "0.0.952",
|
|
24
|
-
"@teambit/scope": "1.0.
|
|
25
|
-
"@teambit/workspace": "1.0.
|
|
26
|
-
"@teambit/checkout": "1.0.
|
|
27
|
-
"@teambit/component-writer": "1.0.
|
|
28
|
-
"@teambit/config": "0.0.
|
|
29
|
-
"@teambit/install": "1.0.
|
|
30
|
-
"@teambit/remove": "1.0.
|
|
31
|
-
"@teambit/snapping": "1.0.
|
|
24
|
+
"@teambit/scope": "1.0.226",
|
|
25
|
+
"@teambit/workspace": "1.0.226",
|
|
26
|
+
"@teambit/checkout": "1.0.226",
|
|
27
|
+
"@teambit/component-writer": "1.0.226",
|
|
28
|
+
"@teambit/config": "0.0.977",
|
|
29
|
+
"@teambit/install": "1.0.226",
|
|
30
|
+
"@teambit/remove": "1.0.226",
|
|
31
|
+
"@teambit/snapping": "1.0.226"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/lodash": "4.14.165",
|
|
File without changes
|