@teambit/remove 1.0.328 → 1.0.330
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +183 -63
- package/dist/remove.main.runtime.d.ts +1 -0
- package/dist/remove.main.runtime.js +20 -6
- package/dist/remove.main.runtime.js.map +1 -1
- package/package.json +12 -12
- /package/dist/{preview-1720408839772.js → preview-1720513025675.js} +0 -0
|
@@ -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/remove@1.0.
|
|
3
|
+
<testsuite name="teambit.component/remove@1.0.330" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -1089,14 +1089,74 @@
|
|
|
1089
1089
|
"__schema": "FunctionLikeSchema",
|
|
1090
1090
|
"location": {
|
|
1091
1091
|
"filePath": "remove.main.runtime.ts",
|
|
1092
|
-
"line":
|
|
1092
|
+
"line": 330,
|
|
1093
|
+
"character": 3
|
|
1094
|
+
},
|
|
1095
|
+
"signature": "(method) RemoveMain.isEnvByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean>",
|
|
1096
|
+
"name": "isEnvByIdWithoutLoadingComponent",
|
|
1097
|
+
"params": [
|
|
1098
|
+
{
|
|
1099
|
+
"__schema": "ParameterSchema",
|
|
1100
|
+
"location": {
|
|
1101
|
+
"filePath": "remove.main.runtime.ts",
|
|
1102
|
+
"line": 330,
|
|
1103
|
+
"character": 42
|
|
1104
|
+
},
|
|
1105
|
+
"name": "componentId",
|
|
1106
|
+
"type": {
|
|
1107
|
+
"__schema": "TypeRefSchema",
|
|
1108
|
+
"location": {
|
|
1109
|
+
"filePath": "remove.main.runtime.ts",
|
|
1110
|
+
"line": 330,
|
|
1111
|
+
"character": 55
|
|
1112
|
+
},
|
|
1113
|
+
"name": "ComponentID",
|
|
1114
|
+
"componentId": {
|
|
1115
|
+
"scope": "teambit.component",
|
|
1116
|
+
"name": "component-id",
|
|
1117
|
+
"version": "1.2.0"
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
"isOptional": false,
|
|
1121
|
+
"isSpread": false
|
|
1122
|
+
}
|
|
1123
|
+
],
|
|
1124
|
+
"returnType": {
|
|
1125
|
+
"__schema": "TypeRefSchema",
|
|
1126
|
+
"location": {
|
|
1127
|
+
"filePath": "remove.main.runtime.ts",
|
|
1128
|
+
"line": 330,
|
|
1129
|
+
"character": 69
|
|
1130
|
+
},
|
|
1131
|
+
"name": "Promise",
|
|
1132
|
+
"typeArgs": [
|
|
1133
|
+
{
|
|
1134
|
+
"__schema": "KeywordTypeSchema",
|
|
1135
|
+
"location": {
|
|
1136
|
+
"filePath": "remove.main.runtime.ts",
|
|
1137
|
+
"line": 330,
|
|
1138
|
+
"character": 77
|
|
1139
|
+
},
|
|
1140
|
+
"name": "boolean"
|
|
1141
|
+
}
|
|
1142
|
+
]
|
|
1143
|
+
},
|
|
1144
|
+
"modifiers": [
|
|
1145
|
+
"async"
|
|
1146
|
+
]
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"__schema": "FunctionLikeSchema",
|
|
1150
|
+
"location": {
|
|
1151
|
+
"filePath": "remove.main.runtime.ts",
|
|
1152
|
+
"line": 339,
|
|
1093
1153
|
"character": 3
|
|
1094
1154
|
},
|
|
1095
1155
|
"doc": {
|
|
1096
1156
|
"__schema": "DocSchema",
|
|
1097
1157
|
"location": {
|
|
1098
1158
|
"filePath": "remove.main.runtime.ts",
|
|
1099
|
-
"line":
|
|
1159
|
+
"line": 336,
|
|
1100
1160
|
"character": 3
|
|
1101
1161
|
},
|
|
1102
1162
|
"raw": "/**\n * get components that were soft-removed and tagged/snapped/merged but not exported yet.\n */",
|
|
@@ -1110,7 +1170,7 @@
|
|
|
1110
1170
|
"__schema": "TypeRefSchema",
|
|
1111
1171
|
"location": {
|
|
1112
1172
|
"filePath": "remove.main.runtime.ts",
|
|
1113
|
-
"line":
|
|
1173
|
+
"line": 339,
|
|
1114
1174
|
"character": 29
|
|
1115
1175
|
},
|
|
1116
1176
|
"name": "Promise",
|
|
@@ -1119,14 +1179,14 @@
|
|
|
1119
1179
|
"__schema": "TypeArraySchema",
|
|
1120
1180
|
"location": {
|
|
1121
1181
|
"filePath": "remove.main.runtime.ts",
|
|
1122
|
-
"line":
|
|
1182
|
+
"line": 339,
|
|
1123
1183
|
"character": 37
|
|
1124
1184
|
},
|
|
1125
1185
|
"type": {
|
|
1126
1186
|
"__schema": "TypeRefSchema",
|
|
1127
1187
|
"location": {
|
|
1128
1188
|
"filePath": "remove.main.runtime.ts",
|
|
1129
|
-
"line":
|
|
1189
|
+
"line": 339,
|
|
1130
1190
|
"character": 37
|
|
1131
1191
|
},
|
|
1132
1192
|
"name": "ComponentID",
|
|
@@ -1147,7 +1207,7 @@
|
|
|
1147
1207
|
"__schema": "FunctionLikeSchema",
|
|
1148
1208
|
"location": {
|
|
1149
1209
|
"filePath": "remove.main.runtime.ts",
|
|
1150
|
-
"line":
|
|
1210
|
+
"line": 343,
|
|
1151
1211
|
"character": 3
|
|
1152
1212
|
},
|
|
1153
1213
|
"signature": "(method) RemoveMain.addRemovedDependenciesIssues(components: Component[]): Promise<void>",
|
|
@@ -1157,7 +1217,7 @@
|
|
|
1157
1217
|
"__schema": "ParameterSchema",
|
|
1158
1218
|
"location": {
|
|
1159
1219
|
"filePath": "remove.main.runtime.ts",
|
|
1160
|
-
"line":
|
|
1220
|
+
"line": 343,
|
|
1161
1221
|
"character": 38
|
|
1162
1222
|
},
|
|
1163
1223
|
"name": "components",
|
|
@@ -1165,14 +1225,14 @@
|
|
|
1165
1225
|
"__schema": "TypeArraySchema",
|
|
1166
1226
|
"location": {
|
|
1167
1227
|
"filePath": "remove.main.runtime.ts",
|
|
1168
|
-
"line":
|
|
1228
|
+
"line": 343,
|
|
1169
1229
|
"character": 50
|
|
1170
1230
|
},
|
|
1171
1231
|
"type": {
|
|
1172
1232
|
"__schema": "TypeRefSchema",
|
|
1173
1233
|
"location": {
|
|
1174
1234
|
"filePath": "remove.main.runtime.ts",
|
|
1175
|
-
"line":
|
|
1235
|
+
"line": 343,
|
|
1176
1236
|
"character": 50
|
|
1177
1237
|
},
|
|
1178
1238
|
"name": "Component",
|
|
@@ -1190,7 +1250,7 @@
|
|
|
1190
1250
|
"__schema": "InferenceTypeSchema",
|
|
1191
1251
|
"location": {
|
|
1192
1252
|
"filePath": "remove.main.runtime.ts",
|
|
1193
|
-
"line":
|
|
1253
|
+
"line": 343,
|
|
1194
1254
|
"character": 3
|
|
1195
1255
|
},
|
|
1196
1256
|
"type": "Promise<void>"
|
|
@@ -1203,7 +1263,7 @@
|
|
|
1203
1263
|
"__schema": "VariableLikeSchema",
|
|
1204
1264
|
"location": {
|
|
1205
1265
|
"filePath": "remove.main.runtime.ts",
|
|
1206
|
-
"line":
|
|
1266
|
+
"line": 423,
|
|
1207
1267
|
"character": 3
|
|
1208
1268
|
},
|
|
1209
1269
|
"signature": "(property) RemoveMain.slots: never[]",
|
|
@@ -1212,7 +1272,7 @@
|
|
|
1212
1272
|
"__schema": "InferenceTypeSchema",
|
|
1213
1273
|
"location": {
|
|
1214
1274
|
"filePath": "remove.main.runtime.ts",
|
|
1215
|
-
"line":
|
|
1275
|
+
"line": 423,
|
|
1216
1276
|
"character": 3
|
|
1217
1277
|
},
|
|
1218
1278
|
"type": "never[]"
|
|
@@ -1224,7 +1284,7 @@
|
|
|
1224
1284
|
"__schema": "VariableLikeSchema",
|
|
1225
1285
|
"location": {
|
|
1226
1286
|
"filePath": "remove.main.runtime.ts",
|
|
1227
|
-
"line":
|
|
1287
|
+
"line": 424,
|
|
1228
1288
|
"character": 3
|
|
1229
1289
|
},
|
|
1230
1290
|
"signature": "(property) RemoveMain.dependencies: Aspect[]",
|
|
@@ -1233,7 +1293,7 @@
|
|
|
1233
1293
|
"__schema": "InferenceTypeSchema",
|
|
1234
1294
|
"location": {
|
|
1235
1295
|
"filePath": "remove.main.runtime.ts",
|
|
1236
|
-
"line":
|
|
1296
|
+
"line": 424,
|
|
1237
1297
|
"character": 3
|
|
1238
1298
|
},
|
|
1239
1299
|
"type": "Aspect[]"
|
|
@@ -1245,7 +1305,7 @@
|
|
|
1245
1305
|
"__schema": "VariableLikeSchema",
|
|
1246
1306
|
"location": {
|
|
1247
1307
|
"filePath": "remove.main.runtime.ts",
|
|
1248
|
-
"line":
|
|
1308
|
+
"line": 435,
|
|
1249
1309
|
"character": 3
|
|
1250
1310
|
},
|
|
1251
1311
|
"signature": "(property) RemoveMain.runtime: RuntimeDefinition",
|
|
@@ -1254,7 +1314,7 @@
|
|
|
1254
1314
|
"__schema": "InferenceTypeSchema",
|
|
1255
1315
|
"location": {
|
|
1256
1316
|
"filePath": "remove.main.runtime.ts",
|
|
1257
|
-
"line":
|
|
1317
|
+
"line": 435,
|
|
1258
1318
|
"character": 3
|
|
1259
1319
|
},
|
|
1260
1320
|
"type": "RuntimeDefinition"
|
|
@@ -1266,7 +1326,7 @@
|
|
|
1266
1326
|
"__schema": "FunctionLikeSchema",
|
|
1267
1327
|
"location": {
|
|
1268
1328
|
"filePath": "remove.main.runtime.ts",
|
|
1269
|
-
"line":
|
|
1329
|
+
"line": 437,
|
|
1270
1330
|
"character": 3
|
|
1271
1331
|
},
|
|
1272
1332
|
"signature": "(method) RemoveMain.provider([workspace, scope, cli, loggerMain, componentAspect, importerMain, depResolver, issues, lister,]: [\n Workspace,\n ScopeMain,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain,\n ListerMain\n]): Promise<RemoveMain>",
|
|
@@ -1276,7 +1336,7 @@
|
|
|
1276
1336
|
"__schema": "ParameterSchema",
|
|
1277
1337
|
"location": {
|
|
1278
1338
|
"filePath": "remove.main.runtime.ts",
|
|
1279
|
-
"line":
|
|
1339
|
+
"line": 437,
|
|
1280
1340
|
"character": 25
|
|
1281
1341
|
},
|
|
1282
1342
|
"name": "[ workspace, scope, cli, loggerMain, componentAspect, importerMain, depResolver, issues, lister ]",
|
|
@@ -1284,7 +1344,7 @@
|
|
|
1284
1344
|
"__schema": "TupleTypeSchema",
|
|
1285
1345
|
"location": {
|
|
1286
1346
|
"filePath": "remove.main.runtime.ts",
|
|
1287
|
-
"line":
|
|
1347
|
+
"line": 447,
|
|
1288
1348
|
"character": 6
|
|
1289
1349
|
},
|
|
1290
1350
|
"elements": [
|
|
@@ -1292,7 +1352,7 @@
|
|
|
1292
1352
|
"__schema": "TypeRefSchema",
|
|
1293
1353
|
"location": {
|
|
1294
1354
|
"filePath": "remove.main.runtime.ts",
|
|
1295
|
-
"line":
|
|
1355
|
+
"line": 448,
|
|
1296
1356
|
"character": 5
|
|
1297
1357
|
},
|
|
1298
1358
|
"name": "Workspace",
|
|
@@ -1305,7 +1365,7 @@
|
|
|
1305
1365
|
"__schema": "TypeRefSchema",
|
|
1306
1366
|
"location": {
|
|
1307
1367
|
"filePath": "remove.main.runtime.ts",
|
|
1308
|
-
"line":
|
|
1368
|
+
"line": 449,
|
|
1309
1369
|
"character": 5
|
|
1310
1370
|
},
|
|
1311
1371
|
"name": "ScopeMain",
|
|
@@ -1318,7 +1378,7 @@
|
|
|
1318
1378
|
"__schema": "TypeRefSchema",
|
|
1319
1379
|
"location": {
|
|
1320
1380
|
"filePath": "remove.main.runtime.ts",
|
|
1321
|
-
"line":
|
|
1381
|
+
"line": 450,
|
|
1322
1382
|
"character": 5
|
|
1323
1383
|
},
|
|
1324
1384
|
"name": "CLIMain",
|
|
@@ -1331,7 +1391,7 @@
|
|
|
1331
1391
|
"__schema": "TypeRefSchema",
|
|
1332
1392
|
"location": {
|
|
1333
1393
|
"filePath": "remove.main.runtime.ts",
|
|
1334
|
-
"line":
|
|
1394
|
+
"line": 451,
|
|
1335
1395
|
"character": 5
|
|
1336
1396
|
},
|
|
1337
1397
|
"name": "LoggerMain",
|
|
@@ -1344,7 +1404,7 @@
|
|
|
1344
1404
|
"__schema": "TypeRefSchema",
|
|
1345
1405
|
"location": {
|
|
1346
1406
|
"filePath": "remove.main.runtime.ts",
|
|
1347
|
-
"line":
|
|
1407
|
+
"line": 452,
|
|
1348
1408
|
"character": 5
|
|
1349
1409
|
},
|
|
1350
1410
|
"name": "ComponentMain",
|
|
@@ -1357,7 +1417,7 @@
|
|
|
1357
1417
|
"__schema": "TypeRefSchema",
|
|
1358
1418
|
"location": {
|
|
1359
1419
|
"filePath": "remove.main.runtime.ts",
|
|
1360
|
-
"line":
|
|
1420
|
+
"line": 453,
|
|
1361
1421
|
"character": 5
|
|
1362
1422
|
},
|
|
1363
1423
|
"name": "ImporterMain",
|
|
@@ -1370,7 +1430,7 @@
|
|
|
1370
1430
|
"__schema": "TypeRefSchema",
|
|
1371
1431
|
"location": {
|
|
1372
1432
|
"filePath": "remove.main.runtime.ts",
|
|
1373
|
-
"line":
|
|
1433
|
+
"line": 454,
|
|
1374
1434
|
"character": 5
|
|
1375
1435
|
},
|
|
1376
1436
|
"name": "DependencyResolverMain",
|
|
@@ -1383,7 +1443,7 @@
|
|
|
1383
1443
|
"__schema": "TypeRefSchema",
|
|
1384
1444
|
"location": {
|
|
1385
1445
|
"filePath": "remove.main.runtime.ts",
|
|
1386
|
-
"line":
|
|
1446
|
+
"line": 455,
|
|
1387
1447
|
"character": 5
|
|
1388
1448
|
},
|
|
1389
1449
|
"name": "IssuesMain",
|
|
@@ -1396,7 +1456,7 @@
|
|
|
1396
1456
|
"__schema": "TypeRefSchema",
|
|
1397
1457
|
"location": {
|
|
1398
1458
|
"filePath": "remove.main.runtime.ts",
|
|
1399
|
-
"line":
|
|
1459
|
+
"line": 456,
|
|
1400
1460
|
"character": 5
|
|
1401
1461
|
},
|
|
1402
1462
|
"name": "ListerMain",
|
|
@@ -1415,7 +1475,7 @@
|
|
|
1415
1475
|
"__schema": "InferenceTypeSchema",
|
|
1416
1476
|
"location": {
|
|
1417
1477
|
"filePath": "remove.main.runtime.ts",
|
|
1418
|
-
"line":
|
|
1478
|
+
"line": 437,
|
|
1419
1479
|
"character": 3
|
|
1420
1480
|
},
|
|
1421
1481
|
"type": "Promise<RemoveMain>"
|
|
@@ -1769,7 +1829,7 @@
|
|
|
1769
1829
|
"_legacy": {
|
|
1770
1830
|
"scope": "teambit.component",
|
|
1771
1831
|
"name": "remove",
|
|
1772
|
-
"version": "1.0.
|
|
1832
|
+
"version": "1.0.330"
|
|
1773
1833
|
},
|
|
1774
1834
|
"_scope": "teambit.component"
|
|
1775
1835
|
}
|
|
@@ -3328,14 +3388,74 @@
|
|
|
3328
3388
|
"__schema": "FunctionLikeSchema",
|
|
3329
3389
|
"location": {
|
|
3330
3390
|
"filePath": "remove.main.runtime.ts",
|
|
3331
|
-
"line":
|
|
3391
|
+
"line": 330,
|
|
3392
|
+
"character": 3
|
|
3393
|
+
},
|
|
3394
|
+
"signature": "(method) RemoveMain.isEnvByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean>",
|
|
3395
|
+
"name": "isEnvByIdWithoutLoadingComponent",
|
|
3396
|
+
"params": [
|
|
3397
|
+
{
|
|
3398
|
+
"__schema": "ParameterSchema",
|
|
3399
|
+
"location": {
|
|
3400
|
+
"filePath": "remove.main.runtime.ts",
|
|
3401
|
+
"line": 330,
|
|
3402
|
+
"character": 42
|
|
3403
|
+
},
|
|
3404
|
+
"name": "componentId",
|
|
3405
|
+
"type": {
|
|
3406
|
+
"__schema": "TypeRefSchema",
|
|
3407
|
+
"location": {
|
|
3408
|
+
"filePath": "remove.main.runtime.ts",
|
|
3409
|
+
"line": 330,
|
|
3410
|
+
"character": 55
|
|
3411
|
+
},
|
|
3412
|
+
"name": "ComponentID",
|
|
3413
|
+
"componentId": {
|
|
3414
|
+
"scope": "teambit.component",
|
|
3415
|
+
"name": "component-id",
|
|
3416
|
+
"version": "1.2.0"
|
|
3417
|
+
}
|
|
3418
|
+
},
|
|
3419
|
+
"isOptional": false,
|
|
3420
|
+
"isSpread": false
|
|
3421
|
+
}
|
|
3422
|
+
],
|
|
3423
|
+
"returnType": {
|
|
3424
|
+
"__schema": "TypeRefSchema",
|
|
3425
|
+
"location": {
|
|
3426
|
+
"filePath": "remove.main.runtime.ts",
|
|
3427
|
+
"line": 330,
|
|
3428
|
+
"character": 69
|
|
3429
|
+
},
|
|
3430
|
+
"name": "Promise",
|
|
3431
|
+
"typeArgs": [
|
|
3432
|
+
{
|
|
3433
|
+
"__schema": "KeywordTypeSchema",
|
|
3434
|
+
"location": {
|
|
3435
|
+
"filePath": "remove.main.runtime.ts",
|
|
3436
|
+
"line": 330,
|
|
3437
|
+
"character": 77
|
|
3438
|
+
},
|
|
3439
|
+
"name": "boolean"
|
|
3440
|
+
}
|
|
3441
|
+
]
|
|
3442
|
+
},
|
|
3443
|
+
"modifiers": [
|
|
3444
|
+
"async"
|
|
3445
|
+
]
|
|
3446
|
+
},
|
|
3447
|
+
{
|
|
3448
|
+
"__schema": "FunctionLikeSchema",
|
|
3449
|
+
"location": {
|
|
3450
|
+
"filePath": "remove.main.runtime.ts",
|
|
3451
|
+
"line": 339,
|
|
3332
3452
|
"character": 3
|
|
3333
3453
|
},
|
|
3334
3454
|
"doc": {
|
|
3335
3455
|
"__schema": "DocSchema",
|
|
3336
3456
|
"location": {
|
|
3337
3457
|
"filePath": "remove.main.runtime.ts",
|
|
3338
|
-
"line":
|
|
3458
|
+
"line": 336,
|
|
3339
3459
|
"character": 3
|
|
3340
3460
|
},
|
|
3341
3461
|
"raw": "/**\n * get components that were soft-removed and tagged/snapped/merged but not exported yet.\n */",
|
|
@@ -3349,7 +3469,7 @@
|
|
|
3349
3469
|
"__schema": "TypeRefSchema",
|
|
3350
3470
|
"location": {
|
|
3351
3471
|
"filePath": "remove.main.runtime.ts",
|
|
3352
|
-
"line":
|
|
3472
|
+
"line": 339,
|
|
3353
3473
|
"character": 29
|
|
3354
3474
|
},
|
|
3355
3475
|
"name": "Promise",
|
|
@@ -3358,14 +3478,14 @@
|
|
|
3358
3478
|
"__schema": "TypeArraySchema",
|
|
3359
3479
|
"location": {
|
|
3360
3480
|
"filePath": "remove.main.runtime.ts",
|
|
3361
|
-
"line":
|
|
3481
|
+
"line": 339,
|
|
3362
3482
|
"character": 37
|
|
3363
3483
|
},
|
|
3364
3484
|
"type": {
|
|
3365
3485
|
"__schema": "TypeRefSchema",
|
|
3366
3486
|
"location": {
|
|
3367
3487
|
"filePath": "remove.main.runtime.ts",
|
|
3368
|
-
"line":
|
|
3488
|
+
"line": 339,
|
|
3369
3489
|
"character": 37
|
|
3370
3490
|
},
|
|
3371
3491
|
"name": "ComponentID",
|
|
@@ -3386,7 +3506,7 @@
|
|
|
3386
3506
|
"__schema": "FunctionLikeSchema",
|
|
3387
3507
|
"location": {
|
|
3388
3508
|
"filePath": "remove.main.runtime.ts",
|
|
3389
|
-
"line":
|
|
3509
|
+
"line": 343,
|
|
3390
3510
|
"character": 3
|
|
3391
3511
|
},
|
|
3392
3512
|
"signature": "(method) RemoveMain.addRemovedDependenciesIssues(components: Component[]): Promise<void>",
|
|
@@ -3396,7 +3516,7 @@
|
|
|
3396
3516
|
"__schema": "ParameterSchema",
|
|
3397
3517
|
"location": {
|
|
3398
3518
|
"filePath": "remove.main.runtime.ts",
|
|
3399
|
-
"line":
|
|
3519
|
+
"line": 343,
|
|
3400
3520
|
"character": 38
|
|
3401
3521
|
},
|
|
3402
3522
|
"name": "components",
|
|
@@ -3404,14 +3524,14 @@
|
|
|
3404
3524
|
"__schema": "TypeArraySchema",
|
|
3405
3525
|
"location": {
|
|
3406
3526
|
"filePath": "remove.main.runtime.ts",
|
|
3407
|
-
"line":
|
|
3527
|
+
"line": 343,
|
|
3408
3528
|
"character": 50
|
|
3409
3529
|
},
|
|
3410
3530
|
"type": {
|
|
3411
3531
|
"__schema": "TypeRefSchema",
|
|
3412
3532
|
"location": {
|
|
3413
3533
|
"filePath": "remove.main.runtime.ts",
|
|
3414
|
-
"line":
|
|
3534
|
+
"line": 343,
|
|
3415
3535
|
"character": 50
|
|
3416
3536
|
},
|
|
3417
3537
|
"name": "Component",
|
|
@@ -3429,7 +3549,7 @@
|
|
|
3429
3549
|
"__schema": "InferenceTypeSchema",
|
|
3430
3550
|
"location": {
|
|
3431
3551
|
"filePath": "remove.main.runtime.ts",
|
|
3432
|
-
"line":
|
|
3552
|
+
"line": 343,
|
|
3433
3553
|
"character": 3
|
|
3434
3554
|
},
|
|
3435
3555
|
"type": "Promise<void>"
|
|
@@ -3442,7 +3562,7 @@
|
|
|
3442
3562
|
"__schema": "VariableLikeSchema",
|
|
3443
3563
|
"location": {
|
|
3444
3564
|
"filePath": "remove.main.runtime.ts",
|
|
3445
|
-
"line":
|
|
3565
|
+
"line": 423,
|
|
3446
3566
|
"character": 3
|
|
3447
3567
|
},
|
|
3448
3568
|
"signature": "(property) RemoveMain.slots: never[]",
|
|
@@ -3451,7 +3571,7 @@
|
|
|
3451
3571
|
"__schema": "InferenceTypeSchema",
|
|
3452
3572
|
"location": {
|
|
3453
3573
|
"filePath": "remove.main.runtime.ts",
|
|
3454
|
-
"line":
|
|
3574
|
+
"line": 423,
|
|
3455
3575
|
"character": 3
|
|
3456
3576
|
},
|
|
3457
3577
|
"type": "never[]"
|
|
@@ -3463,7 +3583,7 @@
|
|
|
3463
3583
|
"__schema": "VariableLikeSchema",
|
|
3464
3584
|
"location": {
|
|
3465
3585
|
"filePath": "remove.main.runtime.ts",
|
|
3466
|
-
"line":
|
|
3586
|
+
"line": 424,
|
|
3467
3587
|
"character": 3
|
|
3468
3588
|
},
|
|
3469
3589
|
"signature": "(property) RemoveMain.dependencies: Aspect[]",
|
|
@@ -3472,7 +3592,7 @@
|
|
|
3472
3592
|
"__schema": "InferenceTypeSchema",
|
|
3473
3593
|
"location": {
|
|
3474
3594
|
"filePath": "remove.main.runtime.ts",
|
|
3475
|
-
"line":
|
|
3595
|
+
"line": 424,
|
|
3476
3596
|
"character": 3
|
|
3477
3597
|
},
|
|
3478
3598
|
"type": "Aspect[]"
|
|
@@ -3484,7 +3604,7 @@
|
|
|
3484
3604
|
"__schema": "VariableLikeSchema",
|
|
3485
3605
|
"location": {
|
|
3486
3606
|
"filePath": "remove.main.runtime.ts",
|
|
3487
|
-
"line":
|
|
3607
|
+
"line": 435,
|
|
3488
3608
|
"character": 3
|
|
3489
3609
|
},
|
|
3490
3610
|
"signature": "(property) RemoveMain.runtime: RuntimeDefinition",
|
|
@@ -3493,7 +3613,7 @@
|
|
|
3493
3613
|
"__schema": "InferenceTypeSchema",
|
|
3494
3614
|
"location": {
|
|
3495
3615
|
"filePath": "remove.main.runtime.ts",
|
|
3496
|
-
"line":
|
|
3616
|
+
"line": 435,
|
|
3497
3617
|
"character": 3
|
|
3498
3618
|
},
|
|
3499
3619
|
"type": "RuntimeDefinition"
|
|
@@ -3505,7 +3625,7 @@
|
|
|
3505
3625
|
"__schema": "FunctionLikeSchema",
|
|
3506
3626
|
"location": {
|
|
3507
3627
|
"filePath": "remove.main.runtime.ts",
|
|
3508
|
-
"line":
|
|
3628
|
+
"line": 437,
|
|
3509
3629
|
"character": 3
|
|
3510
3630
|
},
|
|
3511
3631
|
"signature": "(method) RemoveMain.provider([workspace, scope, cli, loggerMain, componentAspect, importerMain, depResolver, issues, lister,]: [\n Workspace,\n ScopeMain,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain,\n ListerMain\n]): Promise<RemoveMain>",
|
|
@@ -3515,7 +3635,7 @@
|
|
|
3515
3635
|
"__schema": "ParameterSchema",
|
|
3516
3636
|
"location": {
|
|
3517
3637
|
"filePath": "remove.main.runtime.ts",
|
|
3518
|
-
"line":
|
|
3638
|
+
"line": 437,
|
|
3519
3639
|
"character": 25
|
|
3520
3640
|
},
|
|
3521
3641
|
"name": "[ workspace, scope, cli, loggerMain, componentAspect, importerMain, depResolver, issues, lister ]",
|
|
@@ -3523,7 +3643,7 @@
|
|
|
3523
3643
|
"__schema": "TupleTypeSchema",
|
|
3524
3644
|
"location": {
|
|
3525
3645
|
"filePath": "remove.main.runtime.ts",
|
|
3526
|
-
"line":
|
|
3646
|
+
"line": 447,
|
|
3527
3647
|
"character": 6
|
|
3528
3648
|
},
|
|
3529
3649
|
"elements": [
|
|
@@ -3531,7 +3651,7 @@
|
|
|
3531
3651
|
"__schema": "TypeRefSchema",
|
|
3532
3652
|
"location": {
|
|
3533
3653
|
"filePath": "remove.main.runtime.ts",
|
|
3534
|
-
"line":
|
|
3654
|
+
"line": 448,
|
|
3535
3655
|
"character": 5
|
|
3536
3656
|
},
|
|
3537
3657
|
"name": "Workspace",
|
|
@@ -3544,7 +3664,7 @@
|
|
|
3544
3664
|
"__schema": "TypeRefSchema",
|
|
3545
3665
|
"location": {
|
|
3546
3666
|
"filePath": "remove.main.runtime.ts",
|
|
3547
|
-
"line":
|
|
3667
|
+
"line": 449,
|
|
3548
3668
|
"character": 5
|
|
3549
3669
|
},
|
|
3550
3670
|
"name": "ScopeMain",
|
|
@@ -3557,7 +3677,7 @@
|
|
|
3557
3677
|
"__schema": "TypeRefSchema",
|
|
3558
3678
|
"location": {
|
|
3559
3679
|
"filePath": "remove.main.runtime.ts",
|
|
3560
|
-
"line":
|
|
3680
|
+
"line": 450,
|
|
3561
3681
|
"character": 5
|
|
3562
3682
|
},
|
|
3563
3683
|
"name": "CLIMain",
|
|
@@ -3570,7 +3690,7 @@
|
|
|
3570
3690
|
"__schema": "TypeRefSchema",
|
|
3571
3691
|
"location": {
|
|
3572
3692
|
"filePath": "remove.main.runtime.ts",
|
|
3573
|
-
"line":
|
|
3693
|
+
"line": 451,
|
|
3574
3694
|
"character": 5
|
|
3575
3695
|
},
|
|
3576
3696
|
"name": "LoggerMain",
|
|
@@ -3583,7 +3703,7 @@
|
|
|
3583
3703
|
"__schema": "TypeRefSchema",
|
|
3584
3704
|
"location": {
|
|
3585
3705
|
"filePath": "remove.main.runtime.ts",
|
|
3586
|
-
"line":
|
|
3706
|
+
"line": 452,
|
|
3587
3707
|
"character": 5
|
|
3588
3708
|
},
|
|
3589
3709
|
"name": "ComponentMain",
|
|
@@ -3596,7 +3716,7 @@
|
|
|
3596
3716
|
"__schema": "TypeRefSchema",
|
|
3597
3717
|
"location": {
|
|
3598
3718
|
"filePath": "remove.main.runtime.ts",
|
|
3599
|
-
"line":
|
|
3719
|
+
"line": 453,
|
|
3600
3720
|
"character": 5
|
|
3601
3721
|
},
|
|
3602
3722
|
"name": "ImporterMain",
|
|
@@ -3609,7 +3729,7 @@
|
|
|
3609
3729
|
"__schema": "TypeRefSchema",
|
|
3610
3730
|
"location": {
|
|
3611
3731
|
"filePath": "remove.main.runtime.ts",
|
|
3612
|
-
"line":
|
|
3732
|
+
"line": 454,
|
|
3613
3733
|
"character": 5
|
|
3614
3734
|
},
|
|
3615
3735
|
"name": "DependencyResolverMain",
|
|
@@ -3622,7 +3742,7 @@
|
|
|
3622
3742
|
"__schema": "TypeRefSchema",
|
|
3623
3743
|
"location": {
|
|
3624
3744
|
"filePath": "remove.main.runtime.ts",
|
|
3625
|
-
"line":
|
|
3745
|
+
"line": 455,
|
|
3626
3746
|
"character": 5
|
|
3627
3747
|
},
|
|
3628
3748
|
"name": "IssuesMain",
|
|
@@ -3635,7 +3755,7 @@
|
|
|
3635
3755
|
"__schema": "TypeRefSchema",
|
|
3636
3756
|
"location": {
|
|
3637
3757
|
"filePath": "remove.main.runtime.ts",
|
|
3638
|
-
"line":
|
|
3758
|
+
"line": 456,
|
|
3639
3759
|
"character": 5
|
|
3640
3760
|
},
|
|
3641
3761
|
"name": "ListerMain",
|
|
@@ -3654,7 +3774,7 @@
|
|
|
3654
3774
|
"__schema": "InferenceTypeSchema",
|
|
3655
3775
|
"location": {
|
|
3656
3776
|
"filePath": "remove.main.runtime.ts",
|
|
3657
|
-
"line":
|
|
3777
|
+
"line": 437,
|
|
3658
3778
|
"character": 3
|
|
3659
3779
|
},
|
|
3660
3780
|
"type": "Promise<RemoveMain>"
|
|
@@ -3672,7 +3792,7 @@
|
|
|
3672
3792
|
"__schema": "UnImplementedSchema",
|
|
3673
3793
|
"location": {
|
|
3674
3794
|
"filePath": "remove.main.runtime.ts",
|
|
3675
|
-
"line":
|
|
3795
|
+
"line": 473,
|
|
3676
3796
|
"character": 16
|
|
3677
3797
|
},
|
|
3678
3798
|
"name": "RemoveMain",
|
|
@@ -3716,7 +3836,7 @@
|
|
|
3716
3836
|
"__schema": "UnImplementedSchema",
|
|
3717
3837
|
"location": {
|
|
3718
3838
|
"filePath": "remove.main.runtime.ts",
|
|
3719
|
-
"line":
|
|
3839
|
+
"line": 471,
|
|
3720
3840
|
"character": 1
|
|
3721
3841
|
},
|
|
3722
3842
|
"name": "RemoveAspect.addRuntime(RemoveMain);",
|
|
@@ -3952,7 +4072,7 @@
|
|
|
3952
4072
|
"_legacy": {
|
|
3953
4073
|
"scope": "teambit.component",
|
|
3954
4074
|
"name": "remove",
|
|
3955
|
-
"version": "1.0.
|
|
4075
|
+
"version": "1.0.330"
|
|
3956
4076
|
},
|
|
3957
4077
|
"_scope": "teambit.component"
|
|
3958
4078
|
}
|
|
@@ -4087,7 +4207,7 @@
|
|
|
4087
4207
|
"componentId": {
|
|
4088
4208
|
"scope": "teambit.component",
|
|
4089
4209
|
"name": "remove",
|
|
4090
|
-
"version": "1.0.
|
|
4210
|
+
"version": "1.0.330"
|
|
4091
4211
|
},
|
|
4092
4212
|
"taggedModuleExports": []
|
|
4093
4213
|
}
|
|
@@ -77,6 +77,7 @@ export declare class RemoveMain {
|
|
|
77
77
|
* performant version of isRemoved() in case the component object is not available and loading it is expensive.
|
|
78
78
|
*/
|
|
79
79
|
isRemovedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean>;
|
|
80
|
+
isEnvByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean>;
|
|
80
81
|
/**
|
|
81
82
|
* get components that were soft-removed and tagged/snapped/merged but not exported yet.
|
|
82
83
|
*/
|
|
@@ -449,6 +449,11 @@ ${mainComps.map(c => c.id.toString()).join('\n')}`);
|
|
|
449
449
|
const isRemoved = await modelComp.isRemoved(this.workspace.scope.legacyScope.objects, componentId.version);
|
|
450
450
|
return Boolean(isRemoved);
|
|
451
451
|
}
|
|
452
|
+
async isEnvByIdWithoutLoadingComponent(componentId) {
|
|
453
|
+
const versionObj = await this.workspace.scope.getBitObjectVersionById(componentId);
|
|
454
|
+
const envData = versionObj?.extensions.findCoreExtension('teambit.envs/envs');
|
|
455
|
+
return envData?.data.type === 'env';
|
|
456
|
+
}
|
|
452
457
|
|
|
453
458
|
/**
|
|
454
459
|
* get components that were soft-removed and tagged/snapped/merged but not exported yet.
|
|
@@ -463,14 +468,23 @@ ${mainComps.map(c => c.id.toString()).join('\n')}`);
|
|
|
463
468
|
}
|
|
464
469
|
async addRemovedDepIssue(component) {
|
|
465
470
|
const dependencies = this.depResolver.getComponentDependencies(component);
|
|
466
|
-
const
|
|
471
|
+
const removedDependencies = [];
|
|
472
|
+
let removedEnv;
|
|
473
|
+
await Promise.all(dependencies.map(async dep => {
|
|
467
474
|
const isRemoved = await this.isRemovedByIdWithoutLoadingComponent(dep.componentId);
|
|
468
|
-
if (isRemoved) return
|
|
469
|
-
|
|
475
|
+
if (!isRemoved) return;
|
|
476
|
+
const isEnv = await this.isEnvByIdWithoutLoadingComponent(dep.componentId);
|
|
477
|
+
if (isEnv) {
|
|
478
|
+
removedEnv = dep.componentId;
|
|
479
|
+
} else {
|
|
480
|
+
removedDependencies.push(dep.componentId);
|
|
481
|
+
}
|
|
470
482
|
}));
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
483
|
+
if (removedDependencies.length) {
|
|
484
|
+
component.state.issues.getOrCreate(_componentIssues().IssuesClasses.RemovedDependencies).data = removedDependencies.map(r => r.toString());
|
|
485
|
+
}
|
|
486
|
+
if (removedEnv) {
|
|
487
|
+
component.state.issues.getOrCreate(_componentIssues().IssuesClasses.RemovedEnv).data = removedEnv.toString();
|
|
474
488
|
}
|
|
475
489
|
}
|
|
476
490
|
async getRemovedStagedFromMain() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_semver","_interopRequireDefault","_logger","_workspace","_componentId","_exceptions","_importer","_lodash","_hasWildcard","_bitError","_dependencyResolver","_componentIssues","_issues","_pMapSeries","_noHeadNoVersion","_component","_packageJsonUtils","_deleteComponentFiles","_removeCmd","_removeComponents","_remove","_remove2","_recoverCmd","_deleteCmd","_scope","_lister","_chalk","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","BEFORE_REMOVE","RemoveMain","constructor","workspace","scope","logger","importer","depResolver","lister","remove","componentsPattern","force","remote","track","deleteFiles","setStatusLine","bitIds","getRemoteBitIdsToRemove","getLocalBitIdsToRemove","consumer","removeResults","removeComponents","ids","ComponentIdList","fromArray","onDestroy","removeLocallyByIds","reasonForRemoval","OutsideWorkspaceError","results","bitMap","write","markRemoveComps","componentIds","updateMain","range","allComponentsToMarkDeleted","getMany","componentsToDeleteFromFs","componentsIdsToDeleteFromFs","map","c","id","removeComponentsFromNodeModules","state","_consumer","config","removed","removeOnMain","forEach","compId","addComponentConfig","RemoveAspect","deleteComponentsFiles","deleteComps","opts","ConsumerNotFound","idsByPattern","newComps","filter","hasVersion","length","BitError","toString","join","currentLane","getCurrentLaneObject","isNew","Error","laneComp","toComponentIds","compIdsNotOnLane","hasWithoutVersion","chalk","bold","recover","compIdStr","options","bitMapEntry","components","find","compMap","fullName","toStringWithoutVersion","importComp","idStr","import","installNpmPackages","skipDependencyInstallation","writeConfigFiles","skipWriteConfigFiles","override","setAsRemovedFalse","addSpecificComponentConfig","compFromScope","get","rootDir","removeComponentConfig","comp","removeInfo","getRemoveInfo","resolveComponentId","idOnLane","getComponent","compIdWithPossibleVer","changeVersion","head","isDeleted","_legacy","getRemoteComponent","err","NoHeadNoVersion","throwForMainComponentWhenOnLane","laneComps","toBitIds","mainComps","component","headComponent","getHeadComponent","extensions","findExtension","isDeletedByRange","currentTag","getTag","Boolean","semver","satisfies","version","hash","headTag","headComp","undefined","isRemoved","isRemovedByIdWithoutLoadingComponent","componentId","bitmapEntry","getBitmapEntryIfExist","isRecovered","modelComp","getBitObjectModelComponent","legacyScope","objects","getRemovedStaged","isOnMain","getRemovedStagedFromMain","getRemovedStagedFromLane","addRemovedDependenciesIssues","pMapSeries","addRemovedDepIssue","dependencies","getComponentDependencies","removedWithUndefined","Promise","all","dep","compact","issues","getOrCreate","IssuesClasses","RemovedDependencies","stagedConfig","getStagedConfig","getAll","compConfig","laneIds","workspaceIds","listIds","laneCompIdsNotInWorkspace","wId","isEqualWithoutVersion","comps","staged","snapDistance","getSnapDistance","warn","name","isSourceAhead","hasWildcard","getRemoteCompIdsByWildcards","ComponentID","fromString","provider","cli","loggerMain","componentAspect","importerMain","createLogger","removeMain","registerAddComponentsIssues","bind","registerShowFragments","RemoveFragment","register","RemoveCmd","DeleteCmd","RecoverCmd","exports","WorkspaceAspect","ScopeAspect","CLIAspect","LoggerAspect","ComponentAspect","ImporterAspect","DependencyResolverAspect","IssuesAspect","ListerAspect","MainRuntime","addRuntime","_default"],"sources":["remove.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport semver from 'semver';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { ComponentID, ComponentIdList } from '@teambit/component-id';\nimport { ConsumerNotFound } from '@teambit/legacy/dist/consumer/exceptions';\nimport { ImporterAspect, ImporterMain } from '@teambit/importer';\nimport { compact } from 'lodash';\nimport hasWildcard from '@teambit/legacy/dist/utils/string/has-wildcard';\nimport { BitError } from '@teambit/bit-error';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport pMapSeries from 'p-map-series';\nimport { NoHeadNoVersion } from '@teambit/legacy/dist/scope/exceptions/no-head-no-version';\nimport { ComponentAspect, Component, ComponentMain } from '@teambit/component';\nimport { removeComponentsFromNodeModules } from '@teambit/legacy/dist/consumer/component/package-json-utils';\nimport { deleteComponentsFiles } from './delete-component-files';\nimport { RemoveCmd } from './remove-cmd';\nimport { RemoveComponentsResult, removeComponents } from './remove-components';\nimport { RemoveAspect } from './remove.aspect';\nimport { RemoveFragment } from './remove.fragment';\nimport { RecoverCmd, RecoverOptions } from './recover-cmd';\nimport { DeleteCmd } from './delete-cmd';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { ListerAspect, ListerMain } from '@teambit/lister';\nimport chalk from 'chalk';\n\nconst BEFORE_REMOVE = 'removing components';\n\nexport type RemoveInfo = {\n removed: boolean;\n /**\n * whether to remove the component from default lane once merged\n */\n removeOnMain?: boolean;\n /**\n * Semver range to mark specific versions as deleted\n */\n range?: string;\n};\n\nexport type DeleteOpts = { updateMain?: boolean; range?: string };\n\nexport class RemoveMain {\n constructor(\n private workspace: Workspace,\n private scope: ScopeMain,\n public logger: Logger,\n private importer: ImporterMain,\n private depResolver: DependencyResolverMain,\n private lister: ListerMain\n ) {}\n\n async remove({\n componentsPattern,\n force = false,\n remote = false,\n track = false,\n deleteFiles = true,\n }: {\n componentsPattern: string;\n force?: boolean;\n remote?: boolean;\n track?: boolean;\n deleteFiles?: boolean;\n }): Promise<RemoveComponentsResult> {\n this.logger.setStatusLine(BEFORE_REMOVE);\n const bitIds = remote\n ? await this.getRemoteBitIdsToRemove(componentsPattern)\n : await this.getLocalBitIdsToRemove(componentsPattern);\n this.logger.setStatusLine(BEFORE_REMOVE); // again because the loader might changed when talking to the remote\n const consumer = this.workspace?.consumer;\n const removeResults = await removeComponents({\n workspace: this.workspace,\n ids: ComponentIdList.fromArray(bitIds),\n force,\n remote,\n track,\n deleteFiles,\n });\n if (consumer) await consumer.onDestroy('remove');\n return removeResults;\n }\n\n /**\n * remove components from the workspace.\n */\n async removeLocallyByIds(\n ids: ComponentID[],\n { force = false, reasonForRemoval }: { force?: boolean; reasonForRemoval?: string } = {}\n ) {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const results = await removeComponents({\n workspace: this.workspace,\n ids: ComponentIdList.fromArray(ids),\n force,\n remote: false,\n track: false,\n deleteFiles: true,\n });\n await this.workspace.bitMap.write(`remove (by ${reasonForRemoval || 'N/A'})`);\n\n return results;\n }\n\n private async markRemoveComps(componentIds: ComponentID[], { updateMain, range }: DeleteOpts): Promise<Component[]> {\n const allComponentsToMarkDeleted = await this.workspace.getMany(componentIds);\n\n const componentsToDeleteFromFs = range ? [] : allComponentsToMarkDeleted;\n const componentsIdsToDeleteFromFs = ComponentIdList.fromArray(componentsToDeleteFromFs.map((c) => c.id));\n await removeComponentsFromNodeModules(\n this.workspace.consumer,\n componentsToDeleteFromFs.map((c) => c.state._consumer)\n );\n // don't use `this.workspace.addSpecificComponentConfig`, if the component has component.json it will be deleted\n // during this removal along with the entire component dir.\n // in case this is range, the \"removed\" property is set to false. even when the range overlap the current version.\n // the reason is that if we set it to true, then, the component is considered as \"deleted\" for *all* versions.\n // remember that this config is always passed to the next version and if we set removed: true, it'll be copied\n // to the next version even when that version is not in the range.\n const config: RemoveInfo = { removed: !range };\n if (updateMain) config.removeOnMain = true;\n if (range) config.range = range;\n componentIds.forEach((compId) => this.workspace.bitMap.addComponentConfig(compId, RemoveAspect.id, config));\n await this.workspace.bitMap.write('delete');\n await deleteComponentsFiles(this.workspace.consumer, componentsIdsToDeleteFromFs);\n\n return componentsToDeleteFromFs;\n }\n\n async deleteComps(componentsPattern: string, opts: DeleteOpts = {}): Promise<Component[]> {\n if (!this.workspace) throw new ConsumerNotFound();\n const componentIds = await this.workspace.idsByPattern(componentsPattern);\n const newComps = componentIds.filter((id) => !id.hasVersion());\n if (newComps.length) {\n throw new BitError(\n `no need to delete the following new component(s), please remove them by \"bit remove\"\\n${newComps\n .map((id) => id.toString())\n .join('\\n')}`\n );\n }\n const currentLane = await this.workspace.getCurrentLaneObject();\n const { updateMain } = opts;\n if (!updateMain && currentLane?.isNew) {\n throw new Error(\n 'no need to delete components from an un-exported lane, you can remove them by running \"bit remove\"'\n );\n }\n if (currentLane && !updateMain && opts.range) {\n throw new BitError(`--range is not needed when deleting components from a lane, unless --update-main is used`);\n }\n if (currentLane && !updateMain) {\n const laneComp = currentLane.toComponentIds();\n const compIdsNotOnLane = componentIds.filter((id) => !laneComp.hasWithoutVersion(id));\n if (compIdsNotOnLane.length) {\n throw new BitError(\n `unable to delete the following component(s) because they are not part of the current lane.\n${chalk.bold(compIdsNotOnLane.map((id) => id.toString()).join('\\n'))}\nto simply remove them from the workspace, use \"bit remove\".\nto delete them eventually from main, use \"--update-main\" flag and make sure to remove all occurrences from the code.`\n );\n }\n }\n return this.markRemoveComps(componentIds, opts);\n }\n\n /**\n * recover a soft-removed component.\n * there are 4 different scenarios.\n * 1. a component was just soft-removed, it wasn't snapped yet. so it's now in .bitmap with the \"removed\" aspect entry.\n * 1.a. the component still exists in the local scope. no need to import. write it from there.\n * 1.b. the component doesn't exist in the local scope. import it.\n * 2. soft-removed and then snapped. It's not in .bitmap now.\n * 3. soft-removed, snapped, exported. it's not in .bitmap now.\n * 4. a soft-removed components was imported, so it's now in .bitmap without the \"removed\" aspect entry.\n * 5. workspace is empty. the soft-removed component is on the remote.\n * returns `true` if it was recovered. `false` if the component wasn't soft-removed, so nothing to recover from.\n */\n async recover(compIdStr: string, options: RecoverOptions): Promise<boolean> {\n if (!this.workspace) throw new ConsumerNotFound();\n const bitMapEntry = this.workspace.consumer.bitMap.components.find((compMap) => {\n return compMap.id.fullName === compIdStr || compMap.id.toStringWithoutVersion() === compIdStr;\n });\n const importComp = async (idStr: string) => {\n await this.importer.import({\n ids: [idStr],\n installNpmPackages: !options.skipDependencyInstallation,\n writeConfigFiles: !options.skipWriteConfigFiles,\n override: true,\n });\n };\n const setAsRemovedFalse = async (compId: ComponentID) => {\n await this.workspace.addSpecificComponentConfig(compId, RemoveAspect.id, { removed: false });\n await this.workspace.bitMap.write('recover');\n };\n if (bitMapEntry) {\n if (bitMapEntry.config?.[RemoveAspect.id]) {\n // case #1\n const compFromScope = await this.workspace.scope.get(bitMapEntry.id);\n if (compFromScope) {\n // in the case the component is in the scope, we prefer to write it from the scope rather than import it.\n // because in some cases the \"import\" throws an error, e.g. when the component is diverged.\n await this.workspace.write(compFromScope, bitMapEntry.rootDir);\n this.workspace.bitMap.removeComponentConfig(bitMapEntry.id, RemoveAspect.id, false);\n await this.workspace.bitMap.write('recover');\n } else {\n delete bitMapEntry.config?.[RemoveAspect.id];\n await importComp(bitMapEntry.id.toString());\n }\n return true;\n }\n // case #4\n const compId = bitMapEntry.id;\n const comp = await this.workspace.get(compId);\n const removeInfo = await this.getRemoveInfo(comp);\n if (!removeInfo.removed && !removeInfo.range) {\n return false;\n }\n await setAsRemovedFalse(compId);\n return true;\n }\n const compId = await this.workspace.scope.resolveComponentId(compIdStr);\n const currentLane = await this.workspace.getCurrentLaneObject();\n const idOnLane = currentLane?.getComponent(compId);\n const compIdWithPossibleVer = idOnLane ? compId.changeVersion(idOnLane.head.toString()) : compId;\n const compFromScope = await this.workspace.scope.get(compIdWithPossibleVer);\n if (compFromScope && (await this.isDeleted(compFromScope))) {\n // case #2 and #3\n await importComp(compIdWithPossibleVer._legacy.toString());\n await setAsRemovedFalse(compIdWithPossibleVer);\n return true;\n }\n // case #5\n let comp: Component | undefined;\n try {\n comp = await this.workspace.scope.getRemoteComponent(compId);\n } catch (err: any) {\n if (err instanceof NoHeadNoVersion) {\n throw new BitError(\n `unable to find the component ${compIdWithPossibleVer.toString()} in the current lane or main`\n );\n }\n throw err;\n }\n if (!(await this.isDeleted(comp))) {\n return false;\n }\n await importComp(compId._legacy.toString());\n await setAsRemovedFalse(compId);\n\n return true;\n }\n\n private async throwForMainComponentWhenOnLane(components: Component[]) {\n const currentLane = await this.workspace.getCurrentLaneObject();\n if (!currentLane) return; // user on main\n const laneComps = currentLane.toBitIds();\n const mainComps = components.filter((comp) => !laneComps.hasWithoutVersion(comp.id));\n if (mainComps.length) {\n throw new BitError(`the following components belong to main, they cannot be soft-removed when on a lane. consider removing them without --soft.\n${mainComps.map((c) => c.id.toString()).join('\\n')}`);\n }\n }\n\n async getRemoveInfo(component: Component): Promise<RemoveInfo> {\n const headComponent = await this.getHeadComponent(component);\n const data = headComponent.config.extensions.findExtension(RemoveAspect.id)?.config as RemoveInfo | undefined;\n\n const isDeletedByRange = () => {\n if (!data?.range) return false;\n const currentTag = component.getTag();\n return Boolean(currentTag && semver.satisfies(currentTag.version, data.range));\n };\n\n return {\n removed: data?.removed || isDeletedByRange() || false,\n range: data?.range,\n };\n }\n\n private async getHeadComponent(component: Component): Promise<Component> {\n if (\n component.id.version &&\n component.head &&\n component.id.version !== component.head?.hash &&\n component.id.version !== component.headTag?.version.version\n ) {\n const headComp = this.workspace // if workspace exits, prefer using the workspace as it may be modified\n ? await this.workspace.get(component.id.changeVersion(undefined))\n : await this.scope.get(component.id.changeVersion(component.head.hash));\n if (!headComp) throw new Error(`unable to get the head of ${component.id.toString()}`);\n return headComp;\n }\n return component;\n }\n\n /**\n * @deprecated use `isDeleted` instead.\n */\n async isRemoved(component: Component): Promise<boolean> {\n return this.isDeleted(component);\n }\n\n /**\n * whether a component is marked as deleted.\n */\n async isDeleted(component: Component): Promise<boolean> {\n const removeInfo = await this.getRemoveInfo(component);\n return removeInfo.removed;\n }\n\n /**\n * performant version of isRemoved() in case the component object is not available and loading it is expensive.\n */\n async isRemovedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean> {\n if (!componentId.hasVersion()) return false;\n const bitmapEntry = this.workspace.bitMap.getBitmapEntryIfExist(componentId);\n if (bitmapEntry && bitmapEntry.isRemoved()) return true;\n if (bitmapEntry && bitmapEntry.isRecovered()) return false;\n const modelComp = await this.workspace.scope.getBitObjectModelComponent(componentId.changeVersion(undefined));\n if (!modelComp) return false;\n const isRemoved = await modelComp.isRemoved(\n this.workspace.scope.legacyScope.objects,\n componentId.version as string\n );\n return Boolean(isRemoved);\n }\n\n /**\n * get components that were soft-removed and tagged/snapped/merged but not exported yet.\n */\n async getRemovedStaged(): Promise<ComponentID[]> {\n return this.workspace.isOnMain() ? this.getRemovedStagedFromMain() : this.getRemovedStagedFromLane();\n }\n\n async addRemovedDependenciesIssues(components: Component[]) {\n await pMapSeries(components, async (component) => {\n await this.addRemovedDepIssue(component);\n });\n }\n\n private async addRemovedDepIssue(component: Component) {\n const dependencies = this.depResolver.getComponentDependencies(component);\n const removedWithUndefined = await Promise.all(\n dependencies.map(async (dep) => {\n const isRemoved = await this.isRemovedByIdWithoutLoadingComponent(dep.componentId);\n if (isRemoved) return dep.componentId;\n return undefined;\n })\n );\n const removed = compact(removedWithUndefined).map((id) => id.toString());\n if (removed.length) {\n component.state.issues.getOrCreate(IssuesClasses.RemovedDependencies).data = removed;\n }\n }\n\n private async getRemovedStagedFromMain(): Promise<ComponentID[]> {\n const stagedConfig = await this.workspace.scope.getStagedConfig();\n return stagedConfig\n .getAll()\n .filter((compConfig) => compConfig.config?.[RemoveAspect.id]?.removed)\n .map((compConfig) => compConfig.id);\n }\n\n private async getRemovedStagedFromLane(): Promise<ComponentID[]> {\n const currentLane = await this.workspace.getCurrentLaneObject();\n if (!currentLane) return [];\n const laneIds = currentLane.toComponentIds();\n const workspaceIds = this.workspace.listIds();\n const laneCompIdsNotInWorkspace = laneIds.filter(\n (id) => !workspaceIds.find((wId) => wId.isEqualWithoutVersion(id))\n );\n if (!laneCompIdsNotInWorkspace.length) return [];\n const comps = await this.workspace.scope.getMany(laneCompIdsNotInWorkspace);\n const removed = comps.filter((c) => this.isDeleted(c));\n const staged = await Promise.all(\n removed.map(async (c) => {\n const snapDistance = await this.workspace.scope.getSnapDistance(c.id, false);\n if (snapDistance.err) {\n this.logger.warn(\n `getRemovedStagedFromLane unable to get snapDistance for ${c.id.toString()} due to ${snapDistance.err.name}`\n );\n // todo: not clear what should be done here. should we consider it as removed-staged or not.\n }\n if (snapDistance.isSourceAhead()) return c.id;\n return undefined;\n })\n );\n return compact(staged);\n }\n\n private async getLocalBitIdsToRemove(componentsPattern: string): Promise<ComponentID[]> {\n if (!this.workspace) throw new ConsumerNotFound();\n const componentIds = await this.workspace.idsByPattern(componentsPattern);\n return componentIds.map((id) => id);\n }\n\n private async getRemoteBitIdsToRemove(componentsPattern: string): Promise<ComponentID[]> {\n if (hasWildcard(componentsPattern)) {\n return this.lister.getRemoteCompIdsByWildcards(componentsPattern);\n }\n return [ComponentID.fromString(componentsPattern)];\n }\n\n static slots = [];\n static dependencies = [\n WorkspaceAspect,\n ScopeAspect,\n CLIAspect,\n LoggerAspect,\n ComponentAspect,\n ImporterAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ListerAspect,\n ];\n static runtime = MainRuntime;\n\n static async provider([\n workspace,\n scope,\n cli,\n loggerMain,\n componentAspect,\n importerMain,\n depResolver,\n issues,\n lister,\n ]: [\n Workspace,\n ScopeMain,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain,\n ListerMain\n ]) {\n const logger = loggerMain.createLogger(RemoveAspect.id);\n const removeMain = new RemoveMain(workspace, scope, logger, importerMain, depResolver, lister);\n issues.registerAddComponentsIssues(removeMain.addRemovedDependenciesIssues.bind(removeMain));\n componentAspect.registerShowFragments([new RemoveFragment(removeMain)]);\n cli.register(\n new RemoveCmd(removeMain, workspace),\n new DeleteCmd(removeMain, workspace),\n new RecoverCmd(removeMain)\n );\n return removeMain;\n }\n}\n\nRemoveAspect.addRuntime(RemoveMain);\n\nexport default RemoveMain;\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,QAA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ACTC,KAAK,EACLkL,GAAG,EACHC,UAAU,EACVC,eAAe,EACfC,YAAY,EACZlL,WAAW,EACXqJ,MAAM,EACNpJ,MAAM,CAWP,EAAE;IACD,MAAMH,MAAM,GAAGkL,UAAU,CAACG,YAAY,CAACtI,sBAAY,CAACV,EAAE,CAAC;IACvD,MAAMiJ,UAAU,GAAG,IAAI1L,UAAU,CAACE,SAAS,EAAEC,KAAK,EAAEC,MAAM,EAAEoL,YAAY,EAAElL,WAAW,EAAEC,MAAM,CAAC;IAC9FoJ,MAAM,CAACgC,2BAA2B,CAACD,UAAU,CAACzC,4BAA4B,CAAC2C,IAAI,CAACF,UAAU,CAAC,CAAC;IAC5FH,eAAe,CAACM,qBAAqB,CAAC,CAAC,KAAIC,yBAAc,EAACJ,UAAU,CAAC,CAAC,CAAC;IACvEL,GAAG,CAACU,QAAQ,CACV,KAAIC,sBAAS,EAACN,UAAU,EAAExL,SAAS,CAAC,EACpC,KAAI+L,sBAAS,EAACP,UAAU,EAAExL,SAAS,CAAC,EACpC,KAAIgM,wBAAU,EAACR,UAAU,CAC3B,CAAC;IACD,OAAOA,UAAU;EACnB;AACF;AAACS,OAAA,CAAAnM,UAAA,GAAAA,UAAA;AAAAnB,eAAA,CAvZYmB,UAAU,WAyWN,EAAE;AAAAnB,eAAA,CAzWNmB,UAAU,kBA0WC,CACpBoM,4BAAe,EACfC,oBAAW,EACXC,gBAAS,EACTC,sBAAY,EACZC,4BAAe,EACfC,0BAAc,EACdC,8CAAwB,EACxBC,sBAAY,EACZC,sBAAY,CACb;AAAA/N,eAAA,CApXUmB,UAAU,aAqXJ6M,kBAAW;AAoC9B1J,sBAAY,CAAC2J,UAAU,CAAC9M,UAAU,CAAC;AAAC,IAAA+M,QAAA,GAAAZ,OAAA,CAAAvN,OAAA,GAErBoB,UAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_semver","_interopRequireDefault","_logger","_workspace","_componentId","_exceptions","_importer","_lodash","_hasWildcard","_bitError","_dependencyResolver","_componentIssues","_issues","_pMapSeries","_noHeadNoVersion","_component","_packageJsonUtils","_deleteComponentFiles","_removeCmd","_removeComponents","_remove","_remove2","_recoverCmd","_deleteCmd","_scope","_lister","_chalk","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","BEFORE_REMOVE","RemoveMain","constructor","workspace","scope","logger","importer","depResolver","lister","remove","componentsPattern","force","remote","track","deleteFiles","setStatusLine","bitIds","getRemoteBitIdsToRemove","getLocalBitIdsToRemove","consumer","removeResults","removeComponents","ids","ComponentIdList","fromArray","onDestroy","removeLocallyByIds","reasonForRemoval","OutsideWorkspaceError","results","bitMap","write","markRemoveComps","componentIds","updateMain","range","allComponentsToMarkDeleted","getMany","componentsToDeleteFromFs","componentsIdsToDeleteFromFs","map","c","id","removeComponentsFromNodeModules","state","_consumer","config","removed","removeOnMain","forEach","compId","addComponentConfig","RemoveAspect","deleteComponentsFiles","deleteComps","opts","ConsumerNotFound","idsByPattern","newComps","filter","hasVersion","length","BitError","toString","join","currentLane","getCurrentLaneObject","isNew","Error","laneComp","toComponentIds","compIdsNotOnLane","hasWithoutVersion","chalk","bold","recover","compIdStr","options","bitMapEntry","components","find","compMap","fullName","toStringWithoutVersion","importComp","idStr","import","installNpmPackages","skipDependencyInstallation","writeConfigFiles","skipWriteConfigFiles","override","setAsRemovedFalse","addSpecificComponentConfig","compFromScope","get","rootDir","removeComponentConfig","comp","removeInfo","getRemoveInfo","resolveComponentId","idOnLane","getComponent","compIdWithPossibleVer","changeVersion","head","isDeleted","_legacy","getRemoteComponent","err","NoHeadNoVersion","throwForMainComponentWhenOnLane","laneComps","toBitIds","mainComps","component","headComponent","getHeadComponent","extensions","findExtension","isDeletedByRange","currentTag","getTag","Boolean","semver","satisfies","version","hash","headTag","headComp","undefined","isRemoved","isRemovedByIdWithoutLoadingComponent","componentId","bitmapEntry","getBitmapEntryIfExist","isRecovered","modelComp","getBitObjectModelComponent","legacyScope","objects","isEnvByIdWithoutLoadingComponent","versionObj","getBitObjectVersionById","envData","findCoreExtension","type","getRemovedStaged","isOnMain","getRemovedStagedFromMain","getRemovedStagedFromLane","addRemovedDependenciesIssues","pMapSeries","addRemovedDepIssue","dependencies","getComponentDependencies","removedDependencies","removedEnv","Promise","all","dep","isEnv","push","issues","getOrCreate","IssuesClasses","RemovedDependencies","RemovedEnv","stagedConfig","getStagedConfig","getAll","compConfig","laneIds","workspaceIds","listIds","laneCompIdsNotInWorkspace","wId","isEqualWithoutVersion","comps","staged","snapDistance","getSnapDistance","warn","name","isSourceAhead","compact","hasWildcard","getRemoteCompIdsByWildcards","ComponentID","fromString","provider","cli","loggerMain","componentAspect","importerMain","createLogger","removeMain","registerAddComponentsIssues","bind","registerShowFragments","RemoveFragment","register","RemoveCmd","DeleteCmd","RecoverCmd","exports","WorkspaceAspect","ScopeAspect","CLIAspect","LoggerAspect","ComponentAspect","ImporterAspect","DependencyResolverAspect","IssuesAspect","ListerAspect","MainRuntime","addRuntime","_default"],"sources":["remove.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport semver from 'semver';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { ComponentID, ComponentIdList } from '@teambit/component-id';\nimport { ConsumerNotFound } from '@teambit/legacy/dist/consumer/exceptions';\nimport { ImporterAspect, ImporterMain } from '@teambit/importer';\nimport { compact } from 'lodash';\nimport hasWildcard from '@teambit/legacy/dist/utils/string/has-wildcard';\nimport { BitError } from '@teambit/bit-error';\nimport { DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport pMapSeries from 'p-map-series';\nimport { NoHeadNoVersion } from '@teambit/legacy/dist/scope/exceptions/no-head-no-version';\nimport { ComponentAspect, Component, ComponentMain } from '@teambit/component';\nimport { removeComponentsFromNodeModules } from '@teambit/legacy/dist/consumer/component/package-json-utils';\nimport { deleteComponentsFiles } from './delete-component-files';\nimport { RemoveCmd } from './remove-cmd';\nimport { RemoveComponentsResult, removeComponents } from './remove-components';\nimport { RemoveAspect } from './remove.aspect';\nimport { RemoveFragment } from './remove.fragment';\nimport { RecoverCmd, RecoverOptions } from './recover-cmd';\nimport { DeleteCmd } from './delete-cmd';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { ListerAspect, ListerMain } from '@teambit/lister';\nimport chalk from 'chalk';\n\nconst BEFORE_REMOVE = 'removing components';\n\nexport type RemoveInfo = {\n removed: boolean;\n /**\n * whether to remove the component from default lane once merged\n */\n removeOnMain?: boolean;\n /**\n * Semver range to mark specific versions as deleted\n */\n range?: string;\n};\n\nexport type DeleteOpts = { updateMain?: boolean; range?: string };\n\nexport class RemoveMain {\n constructor(\n private workspace: Workspace,\n private scope: ScopeMain,\n public logger: Logger,\n private importer: ImporterMain,\n private depResolver: DependencyResolverMain,\n private lister: ListerMain\n ) {}\n\n async remove({\n componentsPattern,\n force = false,\n remote = false,\n track = false,\n deleteFiles = true,\n }: {\n componentsPattern: string;\n force?: boolean;\n remote?: boolean;\n track?: boolean;\n deleteFiles?: boolean;\n }): Promise<RemoveComponentsResult> {\n this.logger.setStatusLine(BEFORE_REMOVE);\n const bitIds = remote\n ? await this.getRemoteBitIdsToRemove(componentsPattern)\n : await this.getLocalBitIdsToRemove(componentsPattern);\n this.logger.setStatusLine(BEFORE_REMOVE); // again because the loader might changed when talking to the remote\n const consumer = this.workspace?.consumer;\n const removeResults = await removeComponents({\n workspace: this.workspace,\n ids: ComponentIdList.fromArray(bitIds),\n force,\n remote,\n track,\n deleteFiles,\n });\n if (consumer) await consumer.onDestroy('remove');\n return removeResults;\n }\n\n /**\n * remove components from the workspace.\n */\n async removeLocallyByIds(\n ids: ComponentID[],\n { force = false, reasonForRemoval }: { force?: boolean; reasonForRemoval?: string } = {}\n ) {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const results = await removeComponents({\n workspace: this.workspace,\n ids: ComponentIdList.fromArray(ids),\n force,\n remote: false,\n track: false,\n deleteFiles: true,\n });\n await this.workspace.bitMap.write(`remove (by ${reasonForRemoval || 'N/A'})`);\n\n return results;\n }\n\n private async markRemoveComps(componentIds: ComponentID[], { updateMain, range }: DeleteOpts): Promise<Component[]> {\n const allComponentsToMarkDeleted = await this.workspace.getMany(componentIds);\n\n const componentsToDeleteFromFs = range ? [] : allComponentsToMarkDeleted;\n const componentsIdsToDeleteFromFs = ComponentIdList.fromArray(componentsToDeleteFromFs.map((c) => c.id));\n await removeComponentsFromNodeModules(\n this.workspace.consumer,\n componentsToDeleteFromFs.map((c) => c.state._consumer)\n );\n // don't use `this.workspace.addSpecificComponentConfig`, if the component has component.json it will be deleted\n // during this removal along with the entire component dir.\n // in case this is range, the \"removed\" property is set to false. even when the range overlap the current version.\n // the reason is that if we set it to true, then, the component is considered as \"deleted\" for *all* versions.\n // remember that this config is always passed to the next version and if we set removed: true, it'll be copied\n // to the next version even when that version is not in the range.\n const config: RemoveInfo = { removed: !range };\n if (updateMain) config.removeOnMain = true;\n if (range) config.range = range;\n componentIds.forEach((compId) => this.workspace.bitMap.addComponentConfig(compId, RemoveAspect.id, config));\n await this.workspace.bitMap.write('delete');\n await deleteComponentsFiles(this.workspace.consumer, componentsIdsToDeleteFromFs);\n\n return componentsToDeleteFromFs;\n }\n\n async deleteComps(componentsPattern: string, opts: DeleteOpts = {}): Promise<Component[]> {\n if (!this.workspace) throw new ConsumerNotFound();\n const componentIds = await this.workspace.idsByPattern(componentsPattern);\n const newComps = componentIds.filter((id) => !id.hasVersion());\n if (newComps.length) {\n throw new BitError(\n `no need to delete the following new component(s), please remove them by \"bit remove\"\\n${newComps\n .map((id) => id.toString())\n .join('\\n')}`\n );\n }\n const currentLane = await this.workspace.getCurrentLaneObject();\n const { updateMain } = opts;\n if (!updateMain && currentLane?.isNew) {\n throw new Error(\n 'no need to delete components from an un-exported lane, you can remove them by running \"bit remove\"'\n );\n }\n if (currentLane && !updateMain && opts.range) {\n throw new BitError(`--range is not needed when deleting components from a lane, unless --update-main is used`);\n }\n if (currentLane && !updateMain) {\n const laneComp = currentLane.toComponentIds();\n const compIdsNotOnLane = componentIds.filter((id) => !laneComp.hasWithoutVersion(id));\n if (compIdsNotOnLane.length) {\n throw new BitError(\n `unable to delete the following component(s) because they are not part of the current lane.\n${chalk.bold(compIdsNotOnLane.map((id) => id.toString()).join('\\n'))}\nto simply remove them from the workspace, use \"bit remove\".\nto delete them eventually from main, use \"--update-main\" flag and make sure to remove all occurrences from the code.`\n );\n }\n }\n return this.markRemoveComps(componentIds, opts);\n }\n\n /**\n * recover a soft-removed component.\n * there are 4 different scenarios.\n * 1. a component was just soft-removed, it wasn't snapped yet. so it's now in .bitmap with the \"removed\" aspect entry.\n * 1.a. the component still exists in the local scope. no need to import. write it from there.\n * 1.b. the component doesn't exist in the local scope. import it.\n * 2. soft-removed and then snapped. It's not in .bitmap now.\n * 3. soft-removed, snapped, exported. it's not in .bitmap now.\n * 4. a soft-removed components was imported, so it's now in .bitmap without the \"removed\" aspect entry.\n * 5. workspace is empty. the soft-removed component is on the remote.\n * returns `true` if it was recovered. `false` if the component wasn't soft-removed, so nothing to recover from.\n */\n async recover(compIdStr: string, options: RecoverOptions): Promise<boolean> {\n if (!this.workspace) throw new ConsumerNotFound();\n const bitMapEntry = this.workspace.consumer.bitMap.components.find((compMap) => {\n return compMap.id.fullName === compIdStr || compMap.id.toStringWithoutVersion() === compIdStr;\n });\n const importComp = async (idStr: string) => {\n await this.importer.import({\n ids: [idStr],\n installNpmPackages: !options.skipDependencyInstallation,\n writeConfigFiles: !options.skipWriteConfigFiles,\n override: true,\n });\n };\n const setAsRemovedFalse = async (compId: ComponentID) => {\n await this.workspace.addSpecificComponentConfig(compId, RemoveAspect.id, { removed: false });\n await this.workspace.bitMap.write('recover');\n };\n if (bitMapEntry) {\n if (bitMapEntry.config?.[RemoveAspect.id]) {\n // case #1\n const compFromScope = await this.workspace.scope.get(bitMapEntry.id);\n if (compFromScope) {\n // in the case the component is in the scope, we prefer to write it from the scope rather than import it.\n // because in some cases the \"import\" throws an error, e.g. when the component is diverged.\n await this.workspace.write(compFromScope, bitMapEntry.rootDir);\n this.workspace.bitMap.removeComponentConfig(bitMapEntry.id, RemoveAspect.id, false);\n await this.workspace.bitMap.write('recover');\n } else {\n delete bitMapEntry.config?.[RemoveAspect.id];\n await importComp(bitMapEntry.id.toString());\n }\n return true;\n }\n // case #4\n const compId = bitMapEntry.id;\n const comp = await this.workspace.get(compId);\n const removeInfo = await this.getRemoveInfo(comp);\n if (!removeInfo.removed && !removeInfo.range) {\n return false;\n }\n await setAsRemovedFalse(compId);\n return true;\n }\n const compId = await this.workspace.scope.resolveComponentId(compIdStr);\n const currentLane = await this.workspace.getCurrentLaneObject();\n const idOnLane = currentLane?.getComponent(compId);\n const compIdWithPossibleVer = idOnLane ? compId.changeVersion(idOnLane.head.toString()) : compId;\n const compFromScope = await this.workspace.scope.get(compIdWithPossibleVer);\n if (compFromScope && (await this.isDeleted(compFromScope))) {\n // case #2 and #3\n await importComp(compIdWithPossibleVer._legacy.toString());\n await setAsRemovedFalse(compIdWithPossibleVer);\n return true;\n }\n // case #5\n let comp: Component | undefined;\n try {\n comp = await this.workspace.scope.getRemoteComponent(compId);\n } catch (err: any) {\n if (err instanceof NoHeadNoVersion) {\n throw new BitError(\n `unable to find the component ${compIdWithPossibleVer.toString()} in the current lane or main`\n );\n }\n throw err;\n }\n if (!(await this.isDeleted(comp))) {\n return false;\n }\n await importComp(compId._legacy.toString());\n await setAsRemovedFalse(compId);\n\n return true;\n }\n\n private async throwForMainComponentWhenOnLane(components: Component[]) {\n const currentLane = await this.workspace.getCurrentLaneObject();\n if (!currentLane) return; // user on main\n const laneComps = currentLane.toBitIds();\n const mainComps = components.filter((comp) => !laneComps.hasWithoutVersion(comp.id));\n if (mainComps.length) {\n throw new BitError(`the following components belong to main, they cannot be soft-removed when on a lane. consider removing them without --soft.\n${mainComps.map((c) => c.id.toString()).join('\\n')}`);\n }\n }\n\n async getRemoveInfo(component: Component): Promise<RemoveInfo> {\n const headComponent = await this.getHeadComponent(component);\n const data = headComponent.config.extensions.findExtension(RemoveAspect.id)?.config as RemoveInfo | undefined;\n\n const isDeletedByRange = () => {\n if (!data?.range) return false;\n const currentTag = component.getTag();\n return Boolean(currentTag && semver.satisfies(currentTag.version, data.range));\n };\n\n return {\n removed: data?.removed || isDeletedByRange() || false,\n range: data?.range,\n };\n }\n\n private async getHeadComponent(component: Component): Promise<Component> {\n if (\n component.id.version &&\n component.head &&\n component.id.version !== component.head?.hash &&\n component.id.version !== component.headTag?.version.version\n ) {\n const headComp = this.workspace // if workspace exits, prefer using the workspace as it may be modified\n ? await this.workspace.get(component.id.changeVersion(undefined))\n : await this.scope.get(component.id.changeVersion(component.head.hash));\n if (!headComp) throw new Error(`unable to get the head of ${component.id.toString()}`);\n return headComp;\n }\n return component;\n }\n\n /**\n * @deprecated use `isDeleted` instead.\n */\n async isRemoved(component: Component): Promise<boolean> {\n return this.isDeleted(component);\n }\n\n /**\n * whether a component is marked as deleted.\n */\n async isDeleted(component: Component): Promise<boolean> {\n const removeInfo = await this.getRemoveInfo(component);\n return removeInfo.removed;\n }\n\n /**\n * performant version of isRemoved() in case the component object is not available and loading it is expensive.\n */\n async isRemovedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean> {\n if (!componentId.hasVersion()) return false;\n const bitmapEntry = this.workspace.bitMap.getBitmapEntryIfExist(componentId);\n if (bitmapEntry && bitmapEntry.isRemoved()) return true;\n if (bitmapEntry && bitmapEntry.isRecovered()) return false;\n const modelComp = await this.workspace.scope.getBitObjectModelComponent(componentId.changeVersion(undefined));\n if (!modelComp) return false;\n const isRemoved = await modelComp.isRemoved(\n this.workspace.scope.legacyScope.objects,\n componentId.version as string\n );\n return Boolean(isRemoved);\n }\n\n async isEnvByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean> {\n const versionObj = await this.workspace.scope.getBitObjectVersionById(componentId);\n const envData = versionObj?.extensions.findCoreExtension('teambit.envs/envs');\n return envData?.data.type === 'env';\n }\n\n /**\n * get components that were soft-removed and tagged/snapped/merged but not exported yet.\n */\n async getRemovedStaged(): Promise<ComponentID[]> {\n return this.workspace.isOnMain() ? this.getRemovedStagedFromMain() : this.getRemovedStagedFromLane();\n }\n\n async addRemovedDependenciesIssues(components: Component[]) {\n await pMapSeries(components, async (component) => {\n await this.addRemovedDepIssue(component);\n });\n }\n\n private async addRemovedDepIssue(component: Component) {\n const dependencies = this.depResolver.getComponentDependencies(component);\n const removedDependencies: ComponentID[] = [];\n let removedEnv: ComponentID | undefined;\n await Promise.all(\n dependencies.map(async (dep) => {\n const isRemoved = await this.isRemovedByIdWithoutLoadingComponent(dep.componentId);\n if (!isRemoved) return;\n const isEnv = await this.isEnvByIdWithoutLoadingComponent(dep.componentId);\n if (isEnv) {\n removedEnv = dep.componentId;\n } else {\n removedDependencies.push(dep.componentId);\n }\n })\n );\n if (removedDependencies.length) {\n component.state.issues.getOrCreate(IssuesClasses.RemovedDependencies).data = removedDependencies.map((r) =>\n r.toString()\n );\n }\n if (removedEnv) {\n component.state.issues.getOrCreate(IssuesClasses.RemovedEnv).data = removedEnv.toString();\n }\n }\n\n private async getRemovedStagedFromMain(): Promise<ComponentID[]> {\n const stagedConfig = await this.workspace.scope.getStagedConfig();\n return stagedConfig\n .getAll()\n .filter((compConfig) => compConfig.config?.[RemoveAspect.id]?.removed)\n .map((compConfig) => compConfig.id);\n }\n\n private async getRemovedStagedFromLane(): Promise<ComponentID[]> {\n const currentLane = await this.workspace.getCurrentLaneObject();\n if (!currentLane) return [];\n const laneIds = currentLane.toComponentIds();\n const workspaceIds = this.workspace.listIds();\n const laneCompIdsNotInWorkspace = laneIds.filter(\n (id) => !workspaceIds.find((wId) => wId.isEqualWithoutVersion(id))\n );\n if (!laneCompIdsNotInWorkspace.length) return [];\n const comps = await this.workspace.scope.getMany(laneCompIdsNotInWorkspace);\n const removed = comps.filter((c) => this.isDeleted(c));\n const staged = await Promise.all(\n removed.map(async (c) => {\n const snapDistance = await this.workspace.scope.getSnapDistance(c.id, false);\n if (snapDistance.err) {\n this.logger.warn(\n `getRemovedStagedFromLane unable to get snapDistance for ${c.id.toString()} due to ${snapDistance.err.name}`\n );\n // todo: not clear what should be done here. should we consider it as removed-staged or not.\n }\n if (snapDistance.isSourceAhead()) return c.id;\n return undefined;\n })\n );\n return compact(staged);\n }\n\n private async getLocalBitIdsToRemove(componentsPattern: string): Promise<ComponentID[]> {\n if (!this.workspace) throw new ConsumerNotFound();\n const componentIds = await this.workspace.idsByPattern(componentsPattern);\n return componentIds.map((id) => id);\n }\n\n private async getRemoteBitIdsToRemove(componentsPattern: string): Promise<ComponentID[]> {\n if (hasWildcard(componentsPattern)) {\n return this.lister.getRemoteCompIdsByWildcards(componentsPattern);\n }\n return [ComponentID.fromString(componentsPattern)];\n }\n\n static slots = [];\n static dependencies = [\n WorkspaceAspect,\n ScopeAspect,\n CLIAspect,\n LoggerAspect,\n ComponentAspect,\n ImporterAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ListerAspect,\n ];\n static runtime = MainRuntime;\n\n static async provider([\n workspace,\n scope,\n cli,\n loggerMain,\n componentAspect,\n importerMain,\n depResolver,\n issues,\n lister,\n ]: [\n Workspace,\n ScopeMain,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain,\n ListerMain\n ]) {\n const logger = loggerMain.createLogger(RemoveAspect.id);\n const removeMain = new RemoveMain(workspace, scope, logger, importerMain, depResolver, lister);\n issues.registerAddComponentsIssues(removeMain.addRemovedDependenciesIssues.bind(removeMain));\n componentAspect.registerShowFragments([new RemoveFragment(removeMain)]);\n cli.register(\n new RemoveCmd(removeMain, workspace),\n new DeleteCmd(remove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BAA2B,CAACD,UAAU,CAAC7C,4BAA4B,CAAC+C,IAAI,CAACF,UAAU,CAAC,CAAC;IAC5FH,eAAe,CAACM,qBAAqB,CAAC,CAAC,KAAIC,yBAAc,EAACJ,UAAU,CAAC,CAAC,CAAC;IACvEL,GAAG,CAACU,QAAQ,CACV,KAAIC,sBAAS,EAACN,UAAU,EAAElM,SAAS,CAAC,EACpC,KAAIyM,sBAAS,EAACP,UAAU,EAAElM,SAAS,CAAC,EACpC,KAAI0M,wBAAU,EAACR,UAAU,CAC3B,CAAC;IACD,OAAOA,UAAU;EACnB;AACF;AAACS,OAAA,CAAA7M,UAAA,GAAAA,UAAA;AAAAnB,eAAA,CAxaYmB,UAAU,WA0XN,EAAE;AAAAnB,eAAA,CA1XNmB,UAAU,kBA2XC,CACpB8M,4BAAe,EACfC,oBAAW,EACXC,gBAAS,EACTC,sBAAY,EACZC,4BAAe,EACfC,0BAAc,EACdC,8CAAwB,EACxBC,sBAAY,EACZC,sBAAY,CACb;AAAAzO,eAAA,CArYUmB,UAAU,aAsYJuN,kBAAW;AAoC9BpK,sBAAY,CAACqK,UAAU,CAACxN,UAAU,CAAC;AAAC,IAAAyN,QAAA,GAAAZ,OAAA,CAAAjO,OAAA,GAErBoB,UAAU","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/remove",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.330",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/remove",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "remove",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.330"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"@teambit/bit-error": "0.0.404",
|
|
20
20
|
"@teambit/component-id": "1.2.0",
|
|
21
21
|
"@teambit/harmony": "0.4.6",
|
|
22
|
-
"@teambit/cli": "0.0.
|
|
23
|
-
"@teambit/workspace": "1.0.
|
|
24
|
-
"@teambit/component": "1.0.
|
|
25
|
-
"@teambit/component-issues": "0.0.
|
|
26
|
-
"@teambit/dependency-resolver": "1.0.
|
|
27
|
-
"@teambit/importer": "1.0.
|
|
28
|
-
"@teambit/issues": "1.0.
|
|
29
|
-
"@teambit/lister": "1.0.
|
|
30
|
-
"@teambit/logger": "0.0.
|
|
31
|
-
"@teambit/scope": "1.0.
|
|
22
|
+
"@teambit/cli": "0.0.907",
|
|
23
|
+
"@teambit/workspace": "1.0.330",
|
|
24
|
+
"@teambit/component": "1.0.330",
|
|
25
|
+
"@teambit/component-issues": "0.0.150",
|
|
26
|
+
"@teambit/dependency-resolver": "1.0.330",
|
|
27
|
+
"@teambit/importer": "1.0.330",
|
|
28
|
+
"@teambit/issues": "1.0.330",
|
|
29
|
+
"@teambit/lister": "1.0.330",
|
|
30
|
+
"@teambit/logger": "0.0.1000",
|
|
31
|
+
"@teambit/scope": "1.0.330"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/lodash": "4.14.165",
|
|
File without changes
|