@teambit/remove 1.0.160 → 1.0.162
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/remove@1.0.
|
|
3
|
+
<testsuite name="teambit.component/remove@1.0.162" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -1069,7 +1069,7 @@
|
|
|
1069
1069
|
"__schema": "VariableLikeSchema",
|
|
1070
1070
|
"location": {
|
|
1071
1071
|
"filePath": "remove.main.runtime.ts",
|
|
1072
|
-
"line":
|
|
1072
|
+
"line": 335,
|
|
1073
1073
|
"character": 3
|
|
1074
1074
|
},
|
|
1075
1075
|
"signature": "(property) RemoveMain.slots: never[]",
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
"__schema": "InferenceTypeSchema",
|
|
1079
1079
|
"location": {
|
|
1080
1080
|
"filePath": "remove.main.runtime.ts",
|
|
1081
|
-
"line":
|
|
1081
|
+
"line": 335,
|
|
1082
1082
|
"character": 3
|
|
1083
1083
|
},
|
|
1084
1084
|
"type": "never[]"
|
|
@@ -1090,7 +1090,7 @@
|
|
|
1090
1090
|
"__schema": "VariableLikeSchema",
|
|
1091
1091
|
"location": {
|
|
1092
1092
|
"filePath": "remove.main.runtime.ts",
|
|
1093
|
-
"line":
|
|
1093
|
+
"line": 336,
|
|
1094
1094
|
"character": 3
|
|
1095
1095
|
},
|
|
1096
1096
|
"signature": "(property) RemoveMain.dependencies: Aspect[]",
|
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
"__schema": "InferenceTypeSchema",
|
|
1100
1100
|
"location": {
|
|
1101
1101
|
"filePath": "remove.main.runtime.ts",
|
|
1102
|
-
"line":
|
|
1102
|
+
"line": 336,
|
|
1103
1103
|
"character": 3
|
|
1104
1104
|
},
|
|
1105
1105
|
"type": "Aspect[]"
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
"__schema": "VariableLikeSchema",
|
|
1112
1112
|
"location": {
|
|
1113
1113
|
"filePath": "remove.main.runtime.ts",
|
|
1114
|
-
"line":
|
|
1114
|
+
"line": 345,
|
|
1115
1115
|
"character": 3
|
|
1116
1116
|
},
|
|
1117
1117
|
"signature": "(property) RemoveMain.runtime: RuntimeDefinition",
|
|
@@ -1120,7 +1120,7 @@
|
|
|
1120
1120
|
"__schema": "InferenceTypeSchema",
|
|
1121
1121
|
"location": {
|
|
1122
1122
|
"filePath": "remove.main.runtime.ts",
|
|
1123
|
-
"line":
|
|
1123
|
+
"line": 345,
|
|
1124
1124
|
"character": 3
|
|
1125
1125
|
},
|
|
1126
1126
|
"type": "RuntimeDefinition"
|
|
@@ -1132,7 +1132,7 @@
|
|
|
1132
1132
|
"__schema": "FunctionLikeSchema",
|
|
1133
1133
|
"location": {
|
|
1134
1134
|
"filePath": "remove.main.runtime.ts",
|
|
1135
|
-
"line":
|
|
1135
|
+
"line": 347,
|
|
1136
1136
|
"character": 3
|
|
1137
1137
|
},
|
|
1138
1138
|
"signature": "(method) RemoveMain.provider([workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues]: [\n Workspace,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain\n]): Promise<RemoveMain>",
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
"__schema": "ParameterSchema",
|
|
1143
1143
|
"location": {
|
|
1144
1144
|
"filePath": "remove.main.runtime.ts",
|
|
1145
|
-
"line":
|
|
1145
|
+
"line": 347,
|
|
1146
1146
|
"character": 25
|
|
1147
1147
|
},
|
|
1148
1148
|
"name": "[ workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues ]",
|
|
@@ -1150,7 +1150,7 @@
|
|
|
1150
1150
|
"__schema": "TupleTypeSchema",
|
|
1151
1151
|
"location": {
|
|
1152
1152
|
"filePath": "remove.main.runtime.ts",
|
|
1153
|
-
"line":
|
|
1153
|
+
"line": 347,
|
|
1154
1154
|
"character": 107
|
|
1155
1155
|
},
|
|
1156
1156
|
"elements": [
|
|
@@ -1158,7 +1158,7 @@
|
|
|
1158
1158
|
"__schema": "TypeRefSchema",
|
|
1159
1159
|
"location": {
|
|
1160
1160
|
"filePath": "remove.main.runtime.ts",
|
|
1161
|
-
"line":
|
|
1161
|
+
"line": 348,
|
|
1162
1162
|
"character": 5
|
|
1163
1163
|
},
|
|
1164
1164
|
"name": "Workspace"
|
|
@@ -1167,7 +1167,7 @@
|
|
|
1167
1167
|
"__schema": "TypeRefSchema",
|
|
1168
1168
|
"location": {
|
|
1169
1169
|
"filePath": "remove.main.runtime.ts",
|
|
1170
|
-
"line":
|
|
1170
|
+
"line": 349,
|
|
1171
1171
|
"character": 5
|
|
1172
1172
|
},
|
|
1173
1173
|
"name": "CLIMain"
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
"__schema": "TypeRefSchema",
|
|
1177
1177
|
"location": {
|
|
1178
1178
|
"filePath": "remove.main.runtime.ts",
|
|
1179
|
-
"line":
|
|
1179
|
+
"line": 350,
|
|
1180
1180
|
"character": 5
|
|
1181
1181
|
},
|
|
1182
1182
|
"name": "LoggerMain"
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
"__schema": "TypeRefSchema",
|
|
1186
1186
|
"location": {
|
|
1187
1187
|
"filePath": "remove.main.runtime.ts",
|
|
1188
|
-
"line":
|
|
1188
|
+
"line": 351,
|
|
1189
1189
|
"character": 5
|
|
1190
1190
|
},
|
|
1191
1191
|
"name": "ComponentMain"
|
|
@@ -1194,7 +1194,7 @@
|
|
|
1194
1194
|
"__schema": "TypeRefSchema",
|
|
1195
1195
|
"location": {
|
|
1196
1196
|
"filePath": "remove.main.runtime.ts",
|
|
1197
|
-
"line":
|
|
1197
|
+
"line": 352,
|
|
1198
1198
|
"character": 5
|
|
1199
1199
|
},
|
|
1200
1200
|
"name": "ImporterMain"
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
"__schema": "TypeRefSchema",
|
|
1204
1204
|
"location": {
|
|
1205
1205
|
"filePath": "remove.main.runtime.ts",
|
|
1206
|
-
"line":
|
|
1206
|
+
"line": 353,
|
|
1207
1207
|
"character": 5
|
|
1208
1208
|
},
|
|
1209
1209
|
"name": "DependencyResolverMain"
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
"__schema": "TypeRefSchema",
|
|
1213
1213
|
"location": {
|
|
1214
1214
|
"filePath": "remove.main.runtime.ts",
|
|
1215
|
-
"line":
|
|
1215
|
+
"line": 354,
|
|
1216
1216
|
"character": 5
|
|
1217
1217
|
},
|
|
1218
1218
|
"name": "IssuesMain"
|
|
@@ -1227,7 +1227,7 @@
|
|
|
1227
1227
|
"__schema": "InferenceTypeSchema",
|
|
1228
1228
|
"location": {
|
|
1229
1229
|
"filePath": "remove.main.runtime.ts",
|
|
1230
|
-
"line":
|
|
1230
|
+
"line": 347,
|
|
1231
1231
|
"character": 3
|
|
1232
1232
|
},
|
|
1233
1233
|
"type": "Promise<RemoveMain>"
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
"_legacy": {
|
|
1512
1512
|
"scope": "teambit.component",
|
|
1513
1513
|
"name": "remove",
|
|
1514
|
-
"version": "1.0.
|
|
1514
|
+
"version": "1.0.162"
|
|
1515
1515
|
},
|
|
1516
1516
|
"_scope": "teambit.component"
|
|
1517
1517
|
}
|
|
@@ -2867,7 +2867,7 @@
|
|
|
2867
2867
|
"__schema": "VariableLikeSchema",
|
|
2868
2868
|
"location": {
|
|
2869
2869
|
"filePath": "remove.main.runtime.ts",
|
|
2870
|
-
"line":
|
|
2870
|
+
"line": 335,
|
|
2871
2871
|
"character": 3
|
|
2872
2872
|
},
|
|
2873
2873
|
"signature": "(property) RemoveMain.slots: never[]",
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
"__schema": "InferenceTypeSchema",
|
|
2877
2877
|
"location": {
|
|
2878
2878
|
"filePath": "remove.main.runtime.ts",
|
|
2879
|
-
"line":
|
|
2879
|
+
"line": 335,
|
|
2880
2880
|
"character": 3
|
|
2881
2881
|
},
|
|
2882
2882
|
"type": "never[]"
|
|
@@ -2888,7 +2888,7 @@
|
|
|
2888
2888
|
"__schema": "VariableLikeSchema",
|
|
2889
2889
|
"location": {
|
|
2890
2890
|
"filePath": "remove.main.runtime.ts",
|
|
2891
|
-
"line":
|
|
2891
|
+
"line": 336,
|
|
2892
2892
|
"character": 3
|
|
2893
2893
|
},
|
|
2894
2894
|
"signature": "(property) RemoveMain.dependencies: Aspect[]",
|
|
@@ -2897,7 +2897,7 @@
|
|
|
2897
2897
|
"__schema": "InferenceTypeSchema",
|
|
2898
2898
|
"location": {
|
|
2899
2899
|
"filePath": "remove.main.runtime.ts",
|
|
2900
|
-
"line":
|
|
2900
|
+
"line": 336,
|
|
2901
2901
|
"character": 3
|
|
2902
2902
|
},
|
|
2903
2903
|
"type": "Aspect[]"
|
|
@@ -2909,7 +2909,7 @@
|
|
|
2909
2909
|
"__schema": "VariableLikeSchema",
|
|
2910
2910
|
"location": {
|
|
2911
2911
|
"filePath": "remove.main.runtime.ts",
|
|
2912
|
-
"line":
|
|
2912
|
+
"line": 345,
|
|
2913
2913
|
"character": 3
|
|
2914
2914
|
},
|
|
2915
2915
|
"signature": "(property) RemoveMain.runtime: RuntimeDefinition",
|
|
@@ -2918,7 +2918,7 @@
|
|
|
2918
2918
|
"__schema": "InferenceTypeSchema",
|
|
2919
2919
|
"location": {
|
|
2920
2920
|
"filePath": "remove.main.runtime.ts",
|
|
2921
|
-
"line":
|
|
2921
|
+
"line": 345,
|
|
2922
2922
|
"character": 3
|
|
2923
2923
|
},
|
|
2924
2924
|
"type": "RuntimeDefinition"
|
|
@@ -2930,7 +2930,7 @@
|
|
|
2930
2930
|
"__schema": "FunctionLikeSchema",
|
|
2931
2931
|
"location": {
|
|
2932
2932
|
"filePath": "remove.main.runtime.ts",
|
|
2933
|
-
"line":
|
|
2933
|
+
"line": 347,
|
|
2934
2934
|
"character": 3
|
|
2935
2935
|
},
|
|
2936
2936
|
"signature": "(method) RemoveMain.provider([workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues]: [\n Workspace,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain\n]): Promise<RemoveMain>",
|
|
@@ -2940,7 +2940,7 @@
|
|
|
2940
2940
|
"__schema": "ParameterSchema",
|
|
2941
2941
|
"location": {
|
|
2942
2942
|
"filePath": "remove.main.runtime.ts",
|
|
2943
|
-
"line":
|
|
2943
|
+
"line": 347,
|
|
2944
2944
|
"character": 25
|
|
2945
2945
|
},
|
|
2946
2946
|
"name": "[ workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues ]",
|
|
@@ -2948,7 +2948,7 @@
|
|
|
2948
2948
|
"__schema": "TupleTypeSchema",
|
|
2949
2949
|
"location": {
|
|
2950
2950
|
"filePath": "remove.main.runtime.ts",
|
|
2951
|
-
"line":
|
|
2951
|
+
"line": 347,
|
|
2952
2952
|
"character": 107
|
|
2953
2953
|
},
|
|
2954
2954
|
"elements": [
|
|
@@ -2956,7 +2956,7 @@
|
|
|
2956
2956
|
"__schema": "TypeRefSchema",
|
|
2957
2957
|
"location": {
|
|
2958
2958
|
"filePath": "remove.main.runtime.ts",
|
|
2959
|
-
"line":
|
|
2959
|
+
"line": 348,
|
|
2960
2960
|
"character": 5
|
|
2961
2961
|
},
|
|
2962
2962
|
"name": "Workspace"
|
|
@@ -2965,7 +2965,7 @@
|
|
|
2965
2965
|
"__schema": "TypeRefSchema",
|
|
2966
2966
|
"location": {
|
|
2967
2967
|
"filePath": "remove.main.runtime.ts",
|
|
2968
|
-
"line":
|
|
2968
|
+
"line": 349,
|
|
2969
2969
|
"character": 5
|
|
2970
2970
|
},
|
|
2971
2971
|
"name": "CLIMain"
|
|
@@ -2974,7 +2974,7 @@
|
|
|
2974
2974
|
"__schema": "TypeRefSchema",
|
|
2975
2975
|
"location": {
|
|
2976
2976
|
"filePath": "remove.main.runtime.ts",
|
|
2977
|
-
"line":
|
|
2977
|
+
"line": 350,
|
|
2978
2978
|
"character": 5
|
|
2979
2979
|
},
|
|
2980
2980
|
"name": "LoggerMain"
|
|
@@ -2983,7 +2983,7 @@
|
|
|
2983
2983
|
"__schema": "TypeRefSchema",
|
|
2984
2984
|
"location": {
|
|
2985
2985
|
"filePath": "remove.main.runtime.ts",
|
|
2986
|
-
"line":
|
|
2986
|
+
"line": 351,
|
|
2987
2987
|
"character": 5
|
|
2988
2988
|
},
|
|
2989
2989
|
"name": "ComponentMain"
|
|
@@ -2992,7 +2992,7 @@
|
|
|
2992
2992
|
"__schema": "TypeRefSchema",
|
|
2993
2993
|
"location": {
|
|
2994
2994
|
"filePath": "remove.main.runtime.ts",
|
|
2995
|
-
"line":
|
|
2995
|
+
"line": 352,
|
|
2996
2996
|
"character": 5
|
|
2997
2997
|
},
|
|
2998
2998
|
"name": "ImporterMain"
|
|
@@ -3001,7 +3001,7 @@
|
|
|
3001
3001
|
"__schema": "TypeRefSchema",
|
|
3002
3002
|
"location": {
|
|
3003
3003
|
"filePath": "remove.main.runtime.ts",
|
|
3004
|
-
"line":
|
|
3004
|
+
"line": 353,
|
|
3005
3005
|
"character": 5
|
|
3006
3006
|
},
|
|
3007
3007
|
"name": "DependencyResolverMain"
|
|
@@ -3010,7 +3010,7 @@
|
|
|
3010
3010
|
"__schema": "TypeRefSchema",
|
|
3011
3011
|
"location": {
|
|
3012
3012
|
"filePath": "remove.main.runtime.ts",
|
|
3013
|
-
"line":
|
|
3013
|
+
"line": 354,
|
|
3014
3014
|
"character": 5
|
|
3015
3015
|
},
|
|
3016
3016
|
"name": "IssuesMain"
|
|
@@ -3025,7 +3025,7 @@
|
|
|
3025
3025
|
"__schema": "InferenceTypeSchema",
|
|
3026
3026
|
"location": {
|
|
3027
3027
|
"filePath": "remove.main.runtime.ts",
|
|
3028
|
-
"line":
|
|
3028
|
+
"line": 347,
|
|
3029
3029
|
"character": 3
|
|
3030
3030
|
},
|
|
3031
3031
|
"type": "Promise<RemoveMain>"
|
|
@@ -3043,7 +3043,7 @@
|
|
|
3043
3043
|
"__schema": "UnImplementedSchema",
|
|
3044
3044
|
"location": {
|
|
3045
3045
|
"filePath": "remove.main.runtime.ts",
|
|
3046
|
-
"line":
|
|
3046
|
+
"line": 371,
|
|
3047
3047
|
"character": 16
|
|
3048
3048
|
},
|
|
3049
3049
|
"name": "RemoveMain",
|
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
"__schema": "UnImplementedSchema",
|
|
3088
3088
|
"location": {
|
|
3089
3089
|
"filePath": "remove.main.runtime.ts",
|
|
3090
|
-
"line":
|
|
3090
|
+
"line": 369,
|
|
3091
3091
|
"character": 1
|
|
3092
3092
|
},
|
|
3093
3093
|
"name": "RemoveAspect.addRuntime(RemoveMain);",
|
|
@@ -3303,7 +3303,7 @@
|
|
|
3303
3303
|
"_legacy": {
|
|
3304
3304
|
"scope": "teambit.component",
|
|
3305
3305
|
"name": "remove",
|
|
3306
|
-
"version": "1.0.
|
|
3306
|
+
"version": "1.0.162"
|
|
3307
3307
|
},
|
|
3308
3308
|
"_scope": "teambit.component"
|
|
3309
3309
|
}
|
|
@@ -3356,7 +3356,7 @@
|
|
|
3356
3356
|
"componentId": {
|
|
3357
3357
|
"scope": "teambit.component",
|
|
3358
3358
|
"name": "remove",
|
|
3359
|
-
"version": "1.0.
|
|
3359
|
+
"version": "1.0.162"
|
|
3360
3360
|
},
|
|
3361
3361
|
"taggedModuleExports": []
|
|
3362
3362
|
}
|
|
@@ -409,11 +409,10 @@ ${mainComps.map(c => c.id.toString()).join('\n')}`);
|
|
|
409
409
|
async getRemovedStagedFromLane() {
|
|
410
410
|
const currentLane = await this.workspace.getCurrentLaneObject();
|
|
411
411
|
if (!currentLane) return [];
|
|
412
|
-
const laneIds = currentLane.
|
|
412
|
+
const laneIds = currentLane.toComponentIds();
|
|
413
413
|
const workspaceIds = await this.workspace.listIds();
|
|
414
|
-
const
|
|
415
|
-
if (!
|
|
416
|
-
const laneCompIdsNotInWorkspace = await this.workspace.scope.resolveMultipleComponentIds(laneIdsNotInWorkspace);
|
|
414
|
+
const laneCompIdsNotInWorkspace = laneIds.filter(id => !workspaceIds.find(wId => wId.isEqualWithoutVersion(id)));
|
|
415
|
+
if (!laneCompIdsNotInWorkspace.length) return [];
|
|
417
416
|
const comps = await this.workspace.scope.getMany(laneCompIdsNotInWorkspace);
|
|
418
417
|
const removed = comps.filter(c => this.isRemoved(c));
|
|
419
418
|
const staged = await Promise.all(removed.map(async c => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_logger","_workspace","_interopRequireWildcard","_componentId","_exceptions","_importer","_interopRequireDefault","_lodash","_hasWildcard","_listScope","_bitError","_deleteComponentFiles","_dependencyResolver","_componentIssues","_issues","_pMapSeries","_noHeadNoVersion","_component","_packageJsonUtils","_removeCmd","_removeComponents","_remove","_remove2","_recoverCmd","_deleteCmd","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_defineProperty","key","value","_toPropertyKey","enumerable","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","BEFORE_REMOVE","RemoveMain","constructor","workspace","logger","importer","depResolver","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","shouldUpdateMain","components","getMany","removeComponentsFromNodeModules","map","c","state","_consumer","config","removed","removeOnMain","compId","addComponentConfig","RemoveAspect","id","deleteComponentsFiles","deleteComps","opts","ConsumerNotFound","idsByPattern","newComps","filter","hasVersion","length","BitError","toString","join","currentLane","getCurrentLaneObject","updateMain","isNew","Error","recover","compIdStr","options","bitMapEntry","find","compMap","fullName","toStringWithoutVersion","importComp","idStr","import","installNpmPackages","skipDependencyInstallation","writeConfigFiles","skipWriteConfigFiles","override","setAsRemovedFalse","addSpecificComponentConfig","compFromScope","scope","rootDir","removeComponentConfig","comp","isRemoved","resolveComponentId","idOnLane","getComponent","compIdWithPossibleVer","changeVersion","head","_legacy","getRemoteComponent","err","NoHeadNoVersion","throwForMainComponentWhenOnLane","laneComps","toBitIds","mainComps","hasWithoutVersion","getRemoveInfo","component","extensions","findExtension","isRemovedByIdWithoutLoadingComponent","componentId","bitmapEntry","getBitmapEntryIfExist","isRecovered","modelComp","getBitObjectModelComponent","versionObj","getBitObjectVersion","version","getRemovedStaged","isOnMain","getRemovedStagedFromMain","getRemovedStagedFromLane","addRemovedDependenciesIssues","pMapSeries","addRemovedDepIssue","dependencies","getComponentDependencies","removedWithUndefined","Promise","all","dep","undefined","compact","issues","getOrCreate","IssuesClasses","RemovedDependencies","stagedConfig","getStagedConfig","getAll","compConfig","laneIds","workspaceIds","listIds","laneIdsNotInWorkspace","wId","isEqualWithoutVersion","laneCompIdsNotInWorkspace","resolveMultipleComponentIds","comps","staged","snapDistance","getSnapDistance","warn","name","isSourceAhead","hasWildcard","getRemoteBitIdsByWildcards","ComponentID","fromString","provider","cli","loggerMain","componentAspect","importerMain","createLogger","removeMain","registerAddComponentsIssues","bind","registerShowFragments","RemoveFragment","register","RemoveCmd","DeleteCmd","RecoverCmd","exports","WorkspaceAspect","CLIAspect","LoggerAspect","ComponentAspect","ImporterAspect","DependencyResolverAspect","IssuesAspect","MainRuntime","addRuntime","_default"],"sources":["remove.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\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 { getRemoteBitIdsByWildcards } from '@teambit/legacy/dist/api/consumer/lib/list-scope';\nimport { BitError } from '@teambit/bit-error';\nimport deleteComponentsFiles from '@teambit/legacy/dist/consumer/component-ops/delete-component-files';\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 { 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';\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\nexport class RemoveMain {\n constructor(\n private workspace: Workspace,\n public logger: Logger,\n private importer: ImporterMain,\n private depResolver: DependencyResolverMain\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 async markRemoveComps(componentIds: ComponentID[], shouldUpdateMain = false) {\n const components = await this.workspace.getMany(componentIds);\n await removeComponentsFromNodeModules(\n this.workspace.consumer,\n components.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 const config: RemoveInfo = { removed: true };\n if (shouldUpdateMain) config.removeOnMain = true;\n componentIds.map((compId) => this.workspace.bitMap.addComponentConfig(compId, RemoveAspect.id, config));\n await this.workspace.bitMap.write('delete');\n const bitIds = ComponentIdList.fromArray(componentIds.map((id) => id));\n await deleteComponentsFiles(this.workspace.consumer, bitIds);\n\n return componentIds;\n }\n\n async deleteComps(componentsPattern: string, opts: { updateMain?: boolean } = {}): Promise<ComponentID[]> {\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\n return this.markRemoveComps(componentIds, updateMain);\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 if (!this.isRemoved(comp)) {\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 && this.isRemoved(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 (!this.isRemoved(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 getRemoveInfo(component: Component): RemoveInfo {\n const data = component.config.extensions.findExtension(RemoveAspect.id)?.config as RemoveInfo | undefined;\n return {\n removed: data?.removed || false,\n };\n }\n\n isRemoved(component: Component): boolean {\n return this.getRemoveInfo(component).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);\n if (!modelComp) return false;\n const versionObj = await this.workspace.scope.getBitObjectVersion(modelComp, componentId.version as string);\n if (!versionObj) return false;\n return versionObj.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 = await 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.toBitIds();\n const workspaceIds = await this.workspace.listIds();\n const laneIdsNotInWorkspace = laneIds.filter((id) => !workspaceIds.find((wId) => wId.isEqualWithoutVersion(id)));\n if (!laneIdsNotInWorkspace.length) return [];\n const laneCompIdsNotInWorkspace = await this.workspace.scope.resolveMultipleComponentIds(laneIdsNotInWorkspace);\n const comps = await this.workspace.scope.getMany(laneCompIdsNotInWorkspace);\n const removed = comps.filter((c) => this.isRemoved(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 getRemoteBitIdsByWildcards(componentsPattern);\n }\n return [ComponentID.fromString(componentsPattern)];\n }\n\n static slots = [];\n static dependencies = [\n WorkspaceAspect,\n CLIAspect,\n LoggerAspect,\n ComponentAspect,\n ImporterAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ];\n static runtime = MainRuntime;\n\n static async provider([workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues]: [\n Workspace,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain\n ]) {\n const logger = loggerMain.createLogger(RemoveAspect.id);\n const removeMain = new RemoveMain(workspace, logger, importerMain, depResolver);\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(RemoveM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CAACC,EAAE,CAAC;IACvD,MAAMuH,UAAU,GAAG,IAAIpK,UAAU,CAACE,SAAS,EAAEC,MAAM,EAAE+J,YAAY,EAAE7J,WAAW,CAAC;IAC/E8H,MAAM,CAACkC,2BAA2B,CAACD,UAAU,CAAC5C,4BAA4B,CAAC8C,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,EAAElK,SAAS,CAAC,EACpC,KAAIyK,sBAAS,EAACP,UAAU,EAAElK,SAAS,CAAC,EACpC,KAAI0K,wBAAU,EAACR,UAAU,CAC3B,CAAC;IACD,OAAOA,UAAU;EACnB;AACF;AAACS,OAAA,CAAA7K,UAAA,GAAAA,UAAA;AAAAd,eAAA,CA1UYc,UAAU,WA0SN,EAAE;AAAAd,eAAA,CA1SNc,UAAU,kBA2SC,CACpB8K,oBAAe,EACfC,gBAAS,EACTC,sBAAY,EACZC,oBAAe,EACfC,mBAAc,EACdC,8CAAwB,EACxBC,iBAAY,CACb;AAAAlM,eAAA,CAnTUc,UAAU,aAoTJqL,kBAAW;AAwB9BzI,sBAAY,CAAC0I,UAAU,CAACtL,UAAU,CAAC;AAAC,IAAAuL,QAAA,GAAAV,OAAA,CAAA/M,OAAA,GAErBkC,UAAU"}
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_logger","_workspace","_interopRequireWildcard","_componentId","_exceptions","_importer","_interopRequireDefault","_lodash","_hasWildcard","_listScope","_bitError","_deleteComponentFiles","_dependencyResolver","_componentIssues","_issues","_pMapSeries","_noHeadNoVersion","_component","_packageJsonUtils","_removeCmd","_removeComponents","_remove","_remove2","_recoverCmd","_deleteCmd","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_defineProperty","key","value","_toPropertyKey","enumerable","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","BEFORE_REMOVE","RemoveMain","constructor","workspace","logger","importer","depResolver","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","shouldUpdateMain","components","getMany","removeComponentsFromNodeModules","map","c","state","_consumer","config","removed","removeOnMain","compId","addComponentConfig","RemoveAspect","id","deleteComponentsFiles","deleteComps","opts","ConsumerNotFound","idsByPattern","newComps","filter","hasVersion","length","BitError","toString","join","currentLane","getCurrentLaneObject","updateMain","isNew","Error","recover","compIdStr","options","bitMapEntry","find","compMap","fullName","toStringWithoutVersion","importComp","idStr","import","installNpmPackages","skipDependencyInstallation","writeConfigFiles","skipWriteConfigFiles","override","setAsRemovedFalse","addSpecificComponentConfig","compFromScope","scope","rootDir","removeComponentConfig","comp","isRemoved","resolveComponentId","idOnLane","getComponent","compIdWithPossibleVer","changeVersion","head","_legacy","getRemoteComponent","err","NoHeadNoVersion","throwForMainComponentWhenOnLane","laneComps","toBitIds","mainComps","hasWithoutVersion","getRemoveInfo","component","extensions","findExtension","isRemovedByIdWithoutLoadingComponent","componentId","bitmapEntry","getBitmapEntryIfExist","isRecovered","modelComp","getBitObjectModelComponent","versionObj","getBitObjectVersion","version","getRemovedStaged","isOnMain","getRemovedStagedFromMain","getRemovedStagedFromLane","addRemovedDependenciesIssues","pMapSeries","addRemovedDepIssue","dependencies","getComponentDependencies","removedWithUndefined","Promise","all","dep","undefined","compact","issues","getOrCreate","IssuesClasses","RemovedDependencies","stagedConfig","getStagedConfig","getAll","compConfig","laneIds","toComponentIds","workspaceIds","listIds","laneCompIdsNotInWorkspace","wId","isEqualWithoutVersion","comps","staged","snapDistance","getSnapDistance","warn","name","isSourceAhead","hasWildcard","getRemoteBitIdsByWildcards","ComponentID","fromString","provider","cli","loggerMain","componentAspect","importerMain","createLogger","removeMain","registerAddComponentsIssues","bind","registerShowFragments","RemoveFragment","register","RemoveCmd","DeleteCmd","RecoverCmd","exports","WorkspaceAspect","CLIAspect","LoggerAspect","ComponentAspect","ImporterAspect","DependencyResolverAspect","IssuesAspect","MainRuntime","addRuntime","_default"],"sources":["remove.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\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 { getRemoteBitIdsByWildcards } from '@teambit/legacy/dist/api/consumer/lib/list-scope';\nimport { BitError } from '@teambit/bit-error';\nimport deleteComponentsFiles from '@teambit/legacy/dist/consumer/component-ops/delete-component-files';\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 { 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';\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\nexport class RemoveMain {\n constructor(\n private workspace: Workspace,\n public logger: Logger,\n private importer: ImporterMain,\n private depResolver: DependencyResolverMain\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 async markRemoveComps(componentIds: ComponentID[], shouldUpdateMain = false) {\n const components = await this.workspace.getMany(componentIds);\n await removeComponentsFromNodeModules(\n this.workspace.consumer,\n components.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 const config: RemoveInfo = { removed: true };\n if (shouldUpdateMain) config.removeOnMain = true;\n componentIds.map((compId) => this.workspace.bitMap.addComponentConfig(compId, RemoveAspect.id, config));\n await this.workspace.bitMap.write('delete');\n const bitIds = ComponentIdList.fromArray(componentIds.map((id) => id));\n await deleteComponentsFiles(this.workspace.consumer, bitIds);\n\n return componentIds;\n }\n\n async deleteComps(componentsPattern: string, opts: { updateMain?: boolean } = {}): Promise<ComponentID[]> {\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\n return this.markRemoveComps(componentIds, updateMain);\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 if (!this.isRemoved(comp)) {\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 && this.isRemoved(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 (!this.isRemoved(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 getRemoveInfo(component: Component): RemoveInfo {\n const data = component.config.extensions.findExtension(RemoveAspect.id)?.config as RemoveInfo | undefined;\n return {\n removed: data?.removed || false,\n };\n }\n\n isRemoved(component: Component): boolean {\n return this.getRemoveInfo(component).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);\n if (!modelComp) return false;\n const versionObj = await this.workspace.scope.getBitObjectVersion(modelComp, componentId.version as string);\n if (!versionObj) return false;\n return versionObj.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 = await 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 = await 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.isRemoved(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 getRemoteBitIdsByWildcards(componentsPattern);\n }\n return [ComponentID.fromString(componentsPattern)];\n }\n\n static slots = [];\n static dependencies = [\n WorkspaceAspect,\n CLIAspect,\n LoggerAspect,\n ComponentAspect,\n ImporterAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ];\n static runtime = MainRuntime;\n\n static async provider([workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues]: [\n Workspace,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain\n ]) {\n const logger = loggerMain.createLogger(RemoveAspect.id);\n const removeMain = new RemoveMain(workspace, logger, importerMain, depResolver);\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,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAI,uBAAA,CAAAH,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,YAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,WAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAQ,sBAAA,CAAAP,OAAA;EAAAM,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,QAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,OAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;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age": "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.162"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"@teambit/component-id": "1.2.0",
|
|
20
20
|
"@teambit/harmony": "0.4.6",
|
|
21
21
|
"@teambit/cli": "0.0.851",
|
|
22
|
-
"@teambit/workspace": "1.0.
|
|
23
|
-
"@teambit/component": "1.0.
|
|
22
|
+
"@teambit/workspace": "1.0.162",
|
|
23
|
+
"@teambit/component": "1.0.162",
|
|
24
24
|
"@teambit/component-issues": "0.0.141",
|
|
25
|
-
"@teambit/dependency-resolver": "1.0.
|
|
26
|
-
"@teambit/importer": "1.0.
|
|
27
|
-
"@teambit/issues": "1.0.
|
|
25
|
+
"@teambit/dependency-resolver": "1.0.162",
|
|
26
|
+
"@teambit/importer": "1.0.162",
|
|
27
|
+
"@teambit/issues": "1.0.162",
|
|
28
28
|
"@teambit/logger": "0.0.944"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
File without changes
|