@teambit/remove 1.0.331 → 1.0.333
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 +114 -114
- package/dist/delete-component-files.js +5 -12
- package/dist/delete-component-files.js.map +1 -1
- package/dist/remove-components.js +4 -12
- package/dist/remove-components.js.map +1 -1
- package/package.json +13 -11
- /package/dist/{preview-1720667996237.js → preview-1720754434554.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.333" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
"_legacy": {
|
|
1707
1707
|
"scope": "teambit.component",
|
|
1708
1708
|
"name": "remove",
|
|
1709
|
-
"version": "1.0.
|
|
1709
|
+
"version": "1.0.333"
|
|
1710
1710
|
},
|
|
1711
1711
|
"_scope": "teambit.component"
|
|
1712
1712
|
}
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
"__schema": "FunctionLikeSchema",
|
|
1729
1729
|
"location": {
|
|
1730
1730
|
"filePath": "delete-component-files.ts",
|
|
1731
|
-
"line":
|
|
1731
|
+
"line": 6,
|
|
1732
1732
|
"character": 1
|
|
1733
1733
|
},
|
|
1734
1734
|
"signature": "function deleteComponentsFiles(consumer: Consumer, bitIds: ComponentIdList): Promise<void>",
|
|
@@ -1738,7 +1738,7 @@
|
|
|
1738
1738
|
"__schema": "ParameterSchema",
|
|
1739
1739
|
"location": {
|
|
1740
1740
|
"filePath": "delete-component-files.ts",
|
|
1741
|
-
"line":
|
|
1741
|
+
"line": 6,
|
|
1742
1742
|
"character": 45
|
|
1743
1743
|
},
|
|
1744
1744
|
"name": "consumer",
|
|
@@ -1746,7 +1746,7 @@
|
|
|
1746
1746
|
"__schema": "TypeRefSchema",
|
|
1747
1747
|
"location": {
|
|
1748
1748
|
"filePath": "delete-component-files.ts",
|
|
1749
|
-
"line":
|
|
1749
|
+
"line": 6,
|
|
1750
1750
|
"character": 55
|
|
1751
1751
|
},
|
|
1752
1752
|
"name": "Consumer"
|
|
@@ -1758,7 +1758,7 @@
|
|
|
1758
1758
|
"__schema": "ParameterSchema",
|
|
1759
1759
|
"location": {
|
|
1760
1760
|
"filePath": "delete-component-files.ts",
|
|
1761
|
-
"line":
|
|
1761
|
+
"line": 6,
|
|
1762
1762
|
"character": 65
|
|
1763
1763
|
},
|
|
1764
1764
|
"name": "bitIds",
|
|
@@ -1766,7 +1766,7 @@
|
|
|
1766
1766
|
"__schema": "TypeRefSchema",
|
|
1767
1767
|
"location": {
|
|
1768
1768
|
"filePath": "delete-component-files.ts",
|
|
1769
|
-
"line":
|
|
1769
|
+
"line": 6,
|
|
1770
1770
|
"character": 73
|
|
1771
1771
|
},
|
|
1772
1772
|
"name": "ComponentIdList"
|
|
@@ -1779,7 +1779,7 @@
|
|
|
1779
1779
|
"__schema": "InferenceTypeSchema",
|
|
1780
1780
|
"location": {
|
|
1781
1781
|
"filePath": "delete-component-files.ts",
|
|
1782
|
-
"line":
|
|
1782
|
+
"line": 6,
|
|
1783
1783
|
"character": 1
|
|
1784
1784
|
},
|
|
1785
1785
|
"type": "Promise<void>"
|
|
@@ -1984,7 +1984,7 @@
|
|
|
1984
1984
|
"__schema": "FunctionLikeSchema",
|
|
1985
1985
|
"location": {
|
|
1986
1986
|
"filePath": "remove-components.ts",
|
|
1987
|
-
"line":
|
|
1987
|
+
"line": 187,
|
|
1988
1988
|
"character": 1
|
|
1989
1989
|
},
|
|
1990
1990
|
"signature": "function removeComponentsFromNodeModules(consumer: Consumer, components: ConsumerComponent[]): Promise<void[]>",
|
|
@@ -1994,7 +1994,7 @@
|
|
|
1994
1994
|
"__schema": "ParameterSchema",
|
|
1995
1995
|
"location": {
|
|
1996
1996
|
"filePath": "remove-components.ts",
|
|
1997
|
-
"line":
|
|
1997
|
+
"line": 187,
|
|
1998
1998
|
"character": 55
|
|
1999
1999
|
},
|
|
2000
2000
|
"name": "consumer",
|
|
@@ -2002,7 +2002,7 @@
|
|
|
2002
2002
|
"__schema": "TypeRefSchema",
|
|
2003
2003
|
"location": {
|
|
2004
2004
|
"filePath": "remove-components.ts",
|
|
2005
|
-
"line":
|
|
2005
|
+
"line": 187,
|
|
2006
2006
|
"character": 65
|
|
2007
2007
|
},
|
|
2008
2008
|
"name": "Consumer"
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
"__schema": "ParameterSchema",
|
|
2015
2015
|
"location": {
|
|
2016
2016
|
"filePath": "remove-components.ts",
|
|
2017
|
-
"line":
|
|
2017
|
+
"line": 187,
|
|
2018
2018
|
"character": 75
|
|
2019
2019
|
},
|
|
2020
2020
|
"name": "components",
|
|
@@ -2022,14 +2022,14 @@
|
|
|
2022
2022
|
"__schema": "TypeArraySchema",
|
|
2023
2023
|
"location": {
|
|
2024
2024
|
"filePath": "remove-components.ts",
|
|
2025
|
-
"line":
|
|
2025
|
+
"line": 187,
|
|
2026
2026
|
"character": 87
|
|
2027
2027
|
},
|
|
2028
2028
|
"type": {
|
|
2029
2029
|
"__schema": "TypeRefSchema",
|
|
2030
2030
|
"location": {
|
|
2031
2031
|
"filePath": "remove-components.ts",
|
|
2032
|
-
"line":
|
|
2032
|
+
"line": 187,
|
|
2033
2033
|
"character": 87
|
|
2034
2034
|
},
|
|
2035
2035
|
"name": "ConsumerComponent"
|
|
@@ -2043,7 +2043,7 @@
|
|
|
2043
2043
|
"__schema": "InferenceTypeSchema",
|
|
2044
2044
|
"location": {
|
|
2045
2045
|
"filePath": "remove-components.ts",
|
|
2046
|
-
"line":
|
|
2046
|
+
"line": 187,
|
|
2047
2047
|
"character": 1
|
|
2048
2048
|
},
|
|
2049
2049
|
"type": "Promise<void[]>"
|
|
@@ -3902,7 +3902,7 @@
|
|
|
3902
3902
|
"_legacy": {
|
|
3903
3903
|
"scope": "teambit.component",
|
|
3904
3904
|
"name": "remove",
|
|
3905
|
-
"version": "1.0.
|
|
3905
|
+
"version": "1.0.333"
|
|
3906
3906
|
},
|
|
3907
3907
|
"_scope": "teambit.component"
|
|
3908
3908
|
}
|
|
@@ -3926,7 +3926,7 @@
|
|
|
3926
3926
|
"__schema": "FunctionLikeSchema",
|
|
3927
3927
|
"location": {
|
|
3928
3928
|
"filePath": "delete-component-files.ts",
|
|
3929
|
-
"line":
|
|
3929
|
+
"line": 6,
|
|
3930
3930
|
"character": 1
|
|
3931
3931
|
},
|
|
3932
3932
|
"signature": "function deleteComponentsFiles(consumer: Consumer, bitIds: ComponentIdList): Promise<void>",
|
|
@@ -3936,7 +3936,7 @@
|
|
|
3936
3936
|
"__schema": "ParameterSchema",
|
|
3937
3937
|
"location": {
|
|
3938
3938
|
"filePath": "delete-component-files.ts",
|
|
3939
|
-
"line":
|
|
3939
|
+
"line": 6,
|
|
3940
3940
|
"character": 45
|
|
3941
3941
|
},
|
|
3942
3942
|
"name": "consumer",
|
|
@@ -3944,7 +3944,7 @@
|
|
|
3944
3944
|
"__schema": "TypeRefSchema",
|
|
3945
3945
|
"location": {
|
|
3946
3946
|
"filePath": "delete-component-files.ts",
|
|
3947
|
-
"line":
|
|
3947
|
+
"line": 6,
|
|
3948
3948
|
"character": 55
|
|
3949
3949
|
},
|
|
3950
3950
|
"name": "Consumer"
|
|
@@ -3956,7 +3956,7 @@
|
|
|
3956
3956
|
"__schema": "ParameterSchema",
|
|
3957
3957
|
"location": {
|
|
3958
3958
|
"filePath": "delete-component-files.ts",
|
|
3959
|
-
"line":
|
|
3959
|
+
"line": 6,
|
|
3960
3960
|
"character": 65
|
|
3961
3961
|
},
|
|
3962
3962
|
"name": "bitIds",
|
|
@@ -3964,7 +3964,7 @@
|
|
|
3964
3964
|
"__schema": "TypeRefSchema",
|
|
3965
3965
|
"location": {
|
|
3966
3966
|
"filePath": "delete-component-files.ts",
|
|
3967
|
-
"line":
|
|
3967
|
+
"line": 6,
|
|
3968
3968
|
"character": 73
|
|
3969
3969
|
},
|
|
3970
3970
|
"name": "ComponentIdList"
|
|
@@ -3977,7 +3977,7 @@
|
|
|
3977
3977
|
"__schema": "InferenceTypeSchema",
|
|
3978
3978
|
"location": {
|
|
3979
3979
|
"filePath": "delete-component-files.ts",
|
|
3980
|
-
"line":
|
|
3980
|
+
"line": 6,
|
|
3981
3981
|
"character": 1
|
|
3982
3982
|
},
|
|
3983
3983
|
"type": "Promise<void>"
|
|
@@ -4002,7 +4002,7 @@
|
|
|
4002
4002
|
"__schema": "TypeSchema",
|
|
4003
4003
|
"location": {
|
|
4004
4004
|
"filePath": "remove-components.ts",
|
|
4005
|
-
"line":
|
|
4005
|
+
"line": 23,
|
|
4006
4006
|
"character": 1
|
|
4007
4007
|
},
|
|
4008
4008
|
"signature": "type RemoveComponentsResult = {\n localResult: RemovedLocalObjects;\n remoteResult: RemovedObjects[];\n}",
|
|
@@ -4011,7 +4011,7 @@
|
|
|
4011
4011
|
"__schema": "TypeLiteralSchema",
|
|
4012
4012
|
"location": {
|
|
4013
4013
|
"filePath": "remove-components.ts",
|
|
4014
|
-
"line":
|
|
4014
|
+
"line": 23,
|
|
4015
4015
|
"character": 38
|
|
4016
4016
|
},
|
|
4017
4017
|
"members": [
|
|
@@ -4019,7 +4019,7 @@
|
|
|
4019
4019
|
"__schema": "VariableLikeSchema",
|
|
4020
4020
|
"location": {
|
|
4021
4021
|
"filePath": "remove-components.ts",
|
|
4022
|
-
"line":
|
|
4022
|
+
"line": 23,
|
|
4023
4023
|
"character": 40
|
|
4024
4024
|
},
|
|
4025
4025
|
"signature": "(property) localResult: RemovedLocalObjects",
|
|
@@ -4028,7 +4028,7 @@
|
|
|
4028
4028
|
"__schema": "TypeRefSchema",
|
|
4029
4029
|
"location": {
|
|
4030
4030
|
"filePath": "remove-components.ts",
|
|
4031
|
-
"line":
|
|
4031
|
+
"line": 23,
|
|
4032
4032
|
"character": 40
|
|
4033
4033
|
},
|
|
4034
4034
|
"name": "RemovedLocalObjects"
|
|
@@ -4039,7 +4039,7 @@
|
|
|
4039
4039
|
"__schema": "VariableLikeSchema",
|
|
4040
4040
|
"location": {
|
|
4041
4041
|
"filePath": "remove-components.ts",
|
|
4042
|
-
"line":
|
|
4042
|
+
"line": 23,
|
|
4043
4043
|
"character": 74
|
|
4044
4044
|
},
|
|
4045
4045
|
"signature": "(property) remoteResult: RemovedObjects[]",
|
|
@@ -4048,14 +4048,14 @@
|
|
|
4048
4048
|
"__schema": "TypeArraySchema",
|
|
4049
4049
|
"location": {
|
|
4050
4050
|
"filePath": "remove-components.ts",
|
|
4051
|
-
"line":
|
|
4051
|
+
"line": 23,
|
|
4052
4052
|
"character": 88
|
|
4053
4053
|
},
|
|
4054
4054
|
"type": {
|
|
4055
4055
|
"__schema": "TypeRefSchema",
|
|
4056
4056
|
"location": {
|
|
4057
4057
|
"filePath": "remove-components.ts",
|
|
4058
|
-
"line":
|
|
4058
|
+
"line": 23,
|
|
4059
4059
|
"character": 88
|
|
4060
4060
|
},
|
|
4061
4061
|
"name": "RemovedObjects"
|
|
@@ -4070,14 +4070,14 @@
|
|
|
4070
4070
|
"__schema": "FunctionLikeSchema",
|
|
4071
4071
|
"location": {
|
|
4072
4072
|
"filePath": "remove-components.ts",
|
|
4073
|
-
"line":
|
|
4073
|
+
"line": 34,
|
|
4074
4074
|
"character": 1
|
|
4075
4075
|
},
|
|
4076
4076
|
"doc": {
|
|
4077
4077
|
"__schema": "DocSchema",
|
|
4078
4078
|
"location": {
|
|
4079
4079
|
"filePath": "remove-components.ts",
|
|
4080
|
-
"line":
|
|
4080
|
+
"line": 25,
|
|
4081
4081
|
"character": 1
|
|
4082
4082
|
},
|
|
4083
4083
|
"raw": "/**\n * Remove components local and remote\n * splits array of ids into local and remote and removes according to flags\n * @param {string[]} ids - list of remote component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n * @param {boolean} remote - delete component from a remote scope\n * @param {boolean} track - keep tracking local staged components in bitmap.\n * @param {boolean} deleteFiles - delete local added files from fs.\n */",
|
|
@@ -4087,7 +4087,7 @@
|
|
|
4087
4087
|
"__schema": "PropertyLikeTagSchema",
|
|
4088
4088
|
"location": {
|
|
4089
4089
|
"filePath": "remove-components.ts",
|
|
4090
|
-
"line":
|
|
4090
|
+
"line": 28,
|
|
4091
4091
|
"character": 4
|
|
4092
4092
|
},
|
|
4093
4093
|
"name": "ids",
|
|
@@ -4097,14 +4097,14 @@
|
|
|
4097
4097
|
"__schema": "TypeArraySchema",
|
|
4098
4098
|
"location": {
|
|
4099
4099
|
"filePath": "remove-components.ts",
|
|
4100
|
-
"line":
|
|
4100
|
+
"line": 28,
|
|
4101
4101
|
"character": 12
|
|
4102
4102
|
},
|
|
4103
4103
|
"type": {
|
|
4104
4104
|
"__schema": "KeywordTypeSchema",
|
|
4105
4105
|
"location": {
|
|
4106
4106
|
"filePath": "remove-components.ts",
|
|
4107
|
-
"line":
|
|
4107
|
+
"line": 28,
|
|
4108
4108
|
"character": 12
|
|
4109
4109
|
},
|
|
4110
4110
|
"name": "string"
|
|
@@ -4115,7 +4115,7 @@
|
|
|
4115
4115
|
"__schema": "PropertyLikeTagSchema",
|
|
4116
4116
|
"location": {
|
|
4117
4117
|
"filePath": "remove-components.ts",
|
|
4118
|
-
"line":
|
|
4118
|
+
"line": 29,
|
|
4119
4119
|
"character": 4
|
|
4120
4120
|
},
|
|
4121
4121
|
"name": "force",
|
|
@@ -4125,7 +4125,7 @@
|
|
|
4125
4125
|
"__schema": "KeywordTypeSchema",
|
|
4126
4126
|
"location": {
|
|
4127
4127
|
"filePath": "remove-components.ts",
|
|
4128
|
-
"line":
|
|
4128
|
+
"line": 29,
|
|
4129
4129
|
"character": 12
|
|
4130
4130
|
},
|
|
4131
4131
|
"name": "boolean"
|
|
@@ -4135,7 +4135,7 @@
|
|
|
4135
4135
|
"__schema": "PropertyLikeTagSchema",
|
|
4136
4136
|
"location": {
|
|
4137
4137
|
"filePath": "remove-components.ts",
|
|
4138
|
-
"line":
|
|
4138
|
+
"line": 30,
|
|
4139
4139
|
"character": 4
|
|
4140
4140
|
},
|
|
4141
4141
|
"name": "remote",
|
|
@@ -4145,7 +4145,7 @@
|
|
|
4145
4145
|
"__schema": "KeywordTypeSchema",
|
|
4146
4146
|
"location": {
|
|
4147
4147
|
"filePath": "remove-components.ts",
|
|
4148
|
-
"line":
|
|
4148
|
+
"line": 30,
|
|
4149
4149
|
"character": 12
|
|
4150
4150
|
},
|
|
4151
4151
|
"name": "boolean"
|
|
@@ -4155,7 +4155,7 @@
|
|
|
4155
4155
|
"__schema": "PropertyLikeTagSchema",
|
|
4156
4156
|
"location": {
|
|
4157
4157
|
"filePath": "remove-components.ts",
|
|
4158
|
-
"line":
|
|
4158
|
+
"line": 31,
|
|
4159
4159
|
"character": 4
|
|
4160
4160
|
},
|
|
4161
4161
|
"name": "track",
|
|
@@ -4165,7 +4165,7 @@
|
|
|
4165
4165
|
"__schema": "KeywordTypeSchema",
|
|
4166
4166
|
"location": {
|
|
4167
4167
|
"filePath": "remove-components.ts",
|
|
4168
|
-
"line":
|
|
4168
|
+
"line": 31,
|
|
4169
4169
|
"character": 12
|
|
4170
4170
|
},
|
|
4171
4171
|
"name": "boolean"
|
|
@@ -4175,7 +4175,7 @@
|
|
|
4175
4175
|
"__schema": "PropertyLikeTagSchema",
|
|
4176
4176
|
"location": {
|
|
4177
4177
|
"filePath": "remove-components.ts",
|
|
4178
|
-
"line":
|
|
4178
|
+
"line": 32,
|
|
4179
4179
|
"character": 4
|
|
4180
4180
|
},
|
|
4181
4181
|
"name": "deleteFiles",
|
|
@@ -4185,7 +4185,7 @@
|
|
|
4185
4185
|
"__schema": "KeywordTypeSchema",
|
|
4186
4186
|
"location": {
|
|
4187
4187
|
"filePath": "remove-components.ts",
|
|
4188
|
-
"line":
|
|
4188
|
+
"line": 32,
|
|
4189
4189
|
"character": 12
|
|
4190
4190
|
},
|
|
4191
4191
|
"name": "boolean"
|
|
@@ -4200,7 +4200,7 @@
|
|
|
4200
4200
|
"__schema": "ParameterSchema",
|
|
4201
4201
|
"location": {
|
|
4202
4202
|
"filePath": "remove-components.ts",
|
|
4203
|
-
"line":
|
|
4203
|
+
"line": 34,
|
|
4204
4204
|
"character": 40
|
|
4205
4205
|
},
|
|
4206
4206
|
"name": "{ workspace, ids, force, remote, track, deleteFiles }",
|
|
@@ -4208,7 +4208,7 @@
|
|
|
4208
4208
|
"__schema": "TypeLiteralSchema",
|
|
4209
4209
|
"location": {
|
|
4210
4210
|
"filePath": "remove-components.ts",
|
|
4211
|
-
"line":
|
|
4211
|
+
"line": 41,
|
|
4212
4212
|
"character": 4
|
|
4213
4213
|
},
|
|
4214
4214
|
"members": [
|
|
@@ -4216,7 +4216,7 @@
|
|
|
4216
4216
|
"__schema": "VariableLikeSchema",
|
|
4217
4217
|
"location": {
|
|
4218
4218
|
"filePath": "remove-components.ts",
|
|
4219
|
-
"line":
|
|
4219
|
+
"line": 42,
|
|
4220
4220
|
"character": 3
|
|
4221
4221
|
},
|
|
4222
4222
|
"signature": "(property) workspace?: Workspace | undefined",
|
|
@@ -4225,7 +4225,7 @@
|
|
|
4225
4225
|
"__schema": "TypeRefSchema",
|
|
4226
4226
|
"location": {
|
|
4227
4227
|
"filePath": "remove-components.ts",
|
|
4228
|
-
"line":
|
|
4228
|
+
"line": 42,
|
|
4229
4229
|
"character": 15
|
|
4230
4230
|
},
|
|
4231
4231
|
"name": "Workspace"
|
|
@@ -4236,7 +4236,7 @@
|
|
|
4236
4236
|
"__schema": "VariableLikeSchema",
|
|
4237
4237
|
"location": {
|
|
4238
4238
|
"filePath": "remove-components.ts",
|
|
4239
|
-
"line":
|
|
4239
|
+
"line": 43,
|
|
4240
4240
|
"character": 3
|
|
4241
4241
|
},
|
|
4242
4242
|
"signature": "(property) ids: ComponentIdList",
|
|
@@ -4245,7 +4245,7 @@
|
|
|
4245
4245
|
"__schema": "TypeRefSchema",
|
|
4246
4246
|
"location": {
|
|
4247
4247
|
"filePath": "remove-components.ts",
|
|
4248
|
-
"line":
|
|
4248
|
+
"line": 43,
|
|
4249
4249
|
"character": 3
|
|
4250
4250
|
},
|
|
4251
4251
|
"name": "ComponentIdList",
|
|
@@ -4261,7 +4261,7 @@
|
|
|
4261
4261
|
"__schema": "VariableLikeSchema",
|
|
4262
4262
|
"location": {
|
|
4263
4263
|
"filePath": "remove-components.ts",
|
|
4264
|
-
"line":
|
|
4264
|
+
"line": 44,
|
|
4265
4265
|
"character": 3
|
|
4266
4266
|
},
|
|
4267
4267
|
"signature": "(property) force: boolean",
|
|
@@ -4270,7 +4270,7 @@
|
|
|
4270
4270
|
"__schema": "KeywordTypeSchema",
|
|
4271
4271
|
"location": {
|
|
4272
4272
|
"filePath": "remove-components.ts",
|
|
4273
|
-
"line":
|
|
4273
|
+
"line": 44,
|
|
4274
4274
|
"character": 10
|
|
4275
4275
|
},
|
|
4276
4276
|
"name": "boolean"
|
|
@@ -4281,7 +4281,7 @@
|
|
|
4281
4281
|
"__schema": "VariableLikeSchema",
|
|
4282
4282
|
"location": {
|
|
4283
4283
|
"filePath": "remove-components.ts",
|
|
4284
|
-
"line":
|
|
4284
|
+
"line": 45,
|
|
4285
4285
|
"character": 3
|
|
4286
4286
|
},
|
|
4287
4287
|
"signature": "(property) remote: boolean",
|
|
@@ -4290,7 +4290,7 @@
|
|
|
4290
4290
|
"__schema": "KeywordTypeSchema",
|
|
4291
4291
|
"location": {
|
|
4292
4292
|
"filePath": "remove-components.ts",
|
|
4293
|
-
"line":
|
|
4293
|
+
"line": 45,
|
|
4294
4294
|
"character": 11
|
|
4295
4295
|
},
|
|
4296
4296
|
"name": "boolean"
|
|
@@ -4301,7 +4301,7 @@
|
|
|
4301
4301
|
"__schema": "VariableLikeSchema",
|
|
4302
4302
|
"location": {
|
|
4303
4303
|
"filePath": "remove-components.ts",
|
|
4304
|
-
"line":
|
|
4304
|
+
"line": 46,
|
|
4305
4305
|
"character": 3
|
|
4306
4306
|
},
|
|
4307
4307
|
"signature": "(property) track: boolean",
|
|
@@ -4310,7 +4310,7 @@
|
|
|
4310
4310
|
"__schema": "KeywordTypeSchema",
|
|
4311
4311
|
"location": {
|
|
4312
4312
|
"filePath": "remove-components.ts",
|
|
4313
|
-
"line":
|
|
4313
|
+
"line": 46,
|
|
4314
4314
|
"character": 10
|
|
4315
4315
|
},
|
|
4316
4316
|
"name": "boolean"
|
|
@@ -4321,7 +4321,7 @@
|
|
|
4321
4321
|
"__schema": "VariableLikeSchema",
|
|
4322
4322
|
"location": {
|
|
4323
4323
|
"filePath": "remove-components.ts",
|
|
4324
|
-
"line":
|
|
4324
|
+
"line": 47,
|
|
4325
4325
|
"character": 3
|
|
4326
4326
|
},
|
|
4327
4327
|
"signature": "(property) deleteFiles: boolean",
|
|
@@ -4330,7 +4330,7 @@
|
|
|
4330
4330
|
"__schema": "KeywordTypeSchema",
|
|
4331
4331
|
"location": {
|
|
4332
4332
|
"filePath": "remove-components.ts",
|
|
4333
|
-
"line":
|
|
4333
|
+
"line": 47,
|
|
4334
4334
|
"character": 16
|
|
4335
4335
|
},
|
|
4336
4336
|
"name": "boolean"
|
|
@@ -4345,7 +4345,7 @@
|
|
|
4345
4345
|
"__schema": "VariableLikeSchema",
|
|
4346
4346
|
"location": {
|
|
4347
4347
|
"filePath": "remove-components.ts",
|
|
4348
|
-
"line":
|
|
4348
|
+
"line": 42,
|
|
4349
4349
|
"character": 3
|
|
4350
4350
|
},
|
|
4351
4351
|
"signature": "(property) workspace?: Workspace | undefined",
|
|
@@ -4354,7 +4354,7 @@
|
|
|
4354
4354
|
"__schema": "TypeRefSchema",
|
|
4355
4355
|
"location": {
|
|
4356
4356
|
"filePath": "remove-components.ts",
|
|
4357
|
-
"line":
|
|
4357
|
+
"line": 42,
|
|
4358
4358
|
"character": 15
|
|
4359
4359
|
},
|
|
4360
4360
|
"name": "Workspace"
|
|
@@ -4365,7 +4365,7 @@
|
|
|
4365
4365
|
"__schema": "VariableLikeSchema",
|
|
4366
4366
|
"location": {
|
|
4367
4367
|
"filePath": "remove-components.ts",
|
|
4368
|
-
"line":
|
|
4368
|
+
"line": 43,
|
|
4369
4369
|
"character": 3
|
|
4370
4370
|
},
|
|
4371
4371
|
"signature": "(property) ids: ComponentIdList",
|
|
@@ -4374,7 +4374,7 @@
|
|
|
4374
4374
|
"__schema": "TypeRefSchema",
|
|
4375
4375
|
"location": {
|
|
4376
4376
|
"filePath": "remove-components.ts",
|
|
4377
|
-
"line":
|
|
4377
|
+
"line": 43,
|
|
4378
4378
|
"character": 3
|
|
4379
4379
|
},
|
|
4380
4380
|
"name": "ComponentIdList",
|
|
@@ -4390,7 +4390,7 @@
|
|
|
4390
4390
|
"__schema": "VariableLikeSchema",
|
|
4391
4391
|
"location": {
|
|
4392
4392
|
"filePath": "remove-components.ts",
|
|
4393
|
-
"line":
|
|
4393
|
+
"line": 44,
|
|
4394
4394
|
"character": 3
|
|
4395
4395
|
},
|
|
4396
4396
|
"signature": "(property) force: boolean",
|
|
@@ -4399,7 +4399,7 @@
|
|
|
4399
4399
|
"__schema": "KeywordTypeSchema",
|
|
4400
4400
|
"location": {
|
|
4401
4401
|
"filePath": "remove-components.ts",
|
|
4402
|
-
"line":
|
|
4402
|
+
"line": 44,
|
|
4403
4403
|
"character": 10
|
|
4404
4404
|
},
|
|
4405
4405
|
"name": "boolean"
|
|
@@ -4410,7 +4410,7 @@
|
|
|
4410
4410
|
"__schema": "VariableLikeSchema",
|
|
4411
4411
|
"location": {
|
|
4412
4412
|
"filePath": "remove-components.ts",
|
|
4413
|
-
"line":
|
|
4413
|
+
"line": 45,
|
|
4414
4414
|
"character": 3
|
|
4415
4415
|
},
|
|
4416
4416
|
"signature": "(property) remote: boolean",
|
|
@@ -4419,7 +4419,7 @@
|
|
|
4419
4419
|
"__schema": "KeywordTypeSchema",
|
|
4420
4420
|
"location": {
|
|
4421
4421
|
"filePath": "remove-components.ts",
|
|
4422
|
-
"line":
|
|
4422
|
+
"line": 45,
|
|
4423
4423
|
"character": 11
|
|
4424
4424
|
},
|
|
4425
4425
|
"name": "boolean"
|
|
@@ -4430,7 +4430,7 @@
|
|
|
4430
4430
|
"__schema": "VariableLikeSchema",
|
|
4431
4431
|
"location": {
|
|
4432
4432
|
"filePath": "remove-components.ts",
|
|
4433
|
-
"line":
|
|
4433
|
+
"line": 46,
|
|
4434
4434
|
"character": 3
|
|
4435
4435
|
},
|
|
4436
4436
|
"signature": "(property) track: boolean",
|
|
@@ -4439,7 +4439,7 @@
|
|
|
4439
4439
|
"__schema": "KeywordTypeSchema",
|
|
4440
4440
|
"location": {
|
|
4441
4441
|
"filePath": "remove-components.ts",
|
|
4442
|
-
"line":
|
|
4442
|
+
"line": 46,
|
|
4443
4443
|
"character": 10
|
|
4444
4444
|
},
|
|
4445
4445
|
"name": "boolean"
|
|
@@ -4450,7 +4450,7 @@
|
|
|
4450
4450
|
"__schema": "VariableLikeSchema",
|
|
4451
4451
|
"location": {
|
|
4452
4452
|
"filePath": "remove-components.ts",
|
|
4453
|
-
"line":
|
|
4453
|
+
"line": 47,
|
|
4454
4454
|
"character": 3
|
|
4455
4455
|
},
|
|
4456
4456
|
"signature": "(property) deleteFiles: boolean",
|
|
@@ -4459,7 +4459,7 @@
|
|
|
4459
4459
|
"__schema": "KeywordTypeSchema",
|
|
4460
4460
|
"location": {
|
|
4461
4461
|
"filePath": "remove-components.ts",
|
|
4462
|
-
"line":
|
|
4462
|
+
"line": 47,
|
|
4463
4463
|
"character": 16
|
|
4464
4464
|
},
|
|
4465
4465
|
"name": "boolean"
|
|
@@ -4474,7 +4474,7 @@
|
|
|
4474
4474
|
"__schema": "TypeRefSchema",
|
|
4475
4475
|
"location": {
|
|
4476
4476
|
"filePath": "remove-components.ts",
|
|
4477
|
-
"line":
|
|
4477
|
+
"line": 48,
|
|
4478
4478
|
"character": 5
|
|
4479
4479
|
},
|
|
4480
4480
|
"name": "Promise",
|
|
@@ -4483,7 +4483,7 @@
|
|
|
4483
4483
|
"__schema": "TypeRefSchema",
|
|
4484
4484
|
"location": {
|
|
4485
4485
|
"filePath": "remove-components.ts",
|
|
4486
|
-
"line":
|
|
4486
|
+
"line": 48,
|
|
4487
4487
|
"character": 13
|
|
4488
4488
|
},
|
|
4489
4489
|
"name": "RemoveComponentsResult"
|
|
@@ -4499,7 +4499,7 @@
|
|
|
4499
4499
|
"__schema": "FunctionLikeSchema",
|
|
4500
4500
|
"location": {
|
|
4501
4501
|
"filePath": "remove-components.ts",
|
|
4502
|
-
"line":
|
|
4502
|
+
"line": 187,
|
|
4503
4503
|
"character": 1
|
|
4504
4504
|
},
|
|
4505
4505
|
"signature": "function removeComponentsFromNodeModules(consumer: Consumer, components: ConsumerComponent[]): Promise<void[]>",
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
"__schema": "ParameterSchema",
|
|
4510
4510
|
"location": {
|
|
4511
4511
|
"filePath": "remove-components.ts",
|
|
4512
|
-
"line":
|
|
4512
|
+
"line": 187,
|
|
4513
4513
|
"character": 55
|
|
4514
4514
|
},
|
|
4515
4515
|
"name": "consumer",
|
|
@@ -4517,7 +4517,7 @@
|
|
|
4517
4517
|
"__schema": "TypeRefSchema",
|
|
4518
4518
|
"location": {
|
|
4519
4519
|
"filePath": "remove-components.ts",
|
|
4520
|
-
"line":
|
|
4520
|
+
"line": 187,
|
|
4521
4521
|
"character": 65
|
|
4522
4522
|
},
|
|
4523
4523
|
"name": "Consumer"
|
|
@@ -4529,7 +4529,7 @@
|
|
|
4529
4529
|
"__schema": "ParameterSchema",
|
|
4530
4530
|
"location": {
|
|
4531
4531
|
"filePath": "remove-components.ts",
|
|
4532
|
-
"line":
|
|
4532
|
+
"line": 187,
|
|
4533
4533
|
"character": 75
|
|
4534
4534
|
},
|
|
4535
4535
|
"name": "components",
|
|
@@ -4537,14 +4537,14 @@
|
|
|
4537
4537
|
"__schema": "TypeArraySchema",
|
|
4538
4538
|
"location": {
|
|
4539
4539
|
"filePath": "remove-components.ts",
|
|
4540
|
-
"line":
|
|
4540
|
+
"line": 187,
|
|
4541
4541
|
"character": 87
|
|
4542
4542
|
},
|
|
4543
4543
|
"type": {
|
|
4544
4544
|
"__schema": "TypeRefSchema",
|
|
4545
4545
|
"location": {
|
|
4546
4546
|
"filePath": "remove-components.ts",
|
|
4547
|
-
"line":
|
|
4547
|
+
"line": 187,
|
|
4548
4548
|
"character": 87
|
|
4549
4549
|
},
|
|
4550
4550
|
"name": "ConsumerComponent"
|
|
@@ -4558,7 +4558,7 @@
|
|
|
4558
4558
|
"__schema": "InferenceTypeSchema",
|
|
4559
4559
|
"location": {
|
|
4560
4560
|
"filePath": "remove-components.ts",
|
|
4561
|
-
"line":
|
|
4561
|
+
"line": 187,
|
|
4562
4562
|
"character": 1
|
|
4563
4563
|
},
|
|
4564
4564
|
"type": "Promise<void[]>"
|
|
@@ -4574,14 +4574,14 @@
|
|
|
4574
4574
|
"__schema": "FunctionLikeSchema",
|
|
4575
4575
|
"location": {
|
|
4576
4576
|
"filePath": "remove-components.ts",
|
|
4577
|
-
"line":
|
|
4577
|
+
"line": 76,
|
|
4578
4578
|
"character": 1
|
|
4579
4579
|
},
|
|
4580
4580
|
"doc": {
|
|
4581
4581
|
"__schema": "DocSchema",
|
|
4582
4582
|
"location": {
|
|
4583
4583
|
"filePath": "remove-components.ts",
|
|
4584
|
-
"line":
|
|
4584
|
+
"line": 70,
|
|
4585
4585
|
"character": 1
|
|
4586
4586
|
},
|
|
4587
4587
|
"raw": "/**\n * Remove remote component from the remote\n * this method groups remote components by remote name and deletes remote components together\n * @param {ComponentIdList} bitIds - list of remote component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n */",
|
|
@@ -4591,7 +4591,7 @@
|
|
|
4591
4591
|
"__schema": "PropertyLikeTagSchema",
|
|
4592
4592
|
"location": {
|
|
4593
4593
|
"filePath": "remove-components.ts",
|
|
4594
|
-
"line":
|
|
4594
|
+
"line": 73,
|
|
4595
4595
|
"character": 4
|
|
4596
4596
|
},
|
|
4597
4597
|
"name": "bitIds",
|
|
@@ -4601,7 +4601,7 @@
|
|
|
4601
4601
|
"__schema": "TypeRefSchema",
|
|
4602
4602
|
"location": {
|
|
4603
4603
|
"filePath": "remove-components.ts",
|
|
4604
|
-
"line":
|
|
4604
|
+
"line": 73,
|
|
4605
4605
|
"character": 12
|
|
4606
4606
|
},
|
|
4607
4607
|
"name": "ComponentIdList"
|
|
@@ -4611,7 +4611,7 @@
|
|
|
4611
4611
|
"__schema": "PropertyLikeTagSchema",
|
|
4612
4612
|
"location": {
|
|
4613
4613
|
"filePath": "remove-components.ts",
|
|
4614
|
-
"line":
|
|
4614
|
+
"line": 74,
|
|
4615
4615
|
"character": 4
|
|
4616
4616
|
},
|
|
4617
4617
|
"name": "force",
|
|
@@ -4621,7 +4621,7 @@
|
|
|
4621
4621
|
"__schema": "KeywordTypeSchema",
|
|
4622
4622
|
"location": {
|
|
4623
4623
|
"filePath": "remove-components.ts",
|
|
4624
|
-
"line":
|
|
4624
|
+
"line": 74,
|
|
4625
4625
|
"character": 12
|
|
4626
4626
|
},
|
|
4627
4627
|
"name": "boolean"
|
|
@@ -4636,7 +4636,7 @@
|
|
|
4636
4636
|
"__schema": "ParameterSchema",
|
|
4637
4637
|
"location": {
|
|
4638
4638
|
"filePath": "remove-components.ts",
|
|
4639
|
-
"line":
|
|
4639
|
+
"line": 77,
|
|
4640
4640
|
"character": 3
|
|
4641
4641
|
},
|
|
4642
4642
|
"name": "workspace",
|
|
@@ -4644,7 +4644,7 @@
|
|
|
4644
4644
|
"__schema": "TypeUnionSchema",
|
|
4645
4645
|
"location": {
|
|
4646
4646
|
"filePath": "remove-components.ts",
|
|
4647
|
-
"line":
|
|
4647
|
+
"line": 77,
|
|
4648
4648
|
"character": 14
|
|
4649
4649
|
},
|
|
4650
4650
|
"types": [
|
|
@@ -4652,7 +4652,7 @@
|
|
|
4652
4652
|
"__schema": "TypeRefSchema",
|
|
4653
4653
|
"location": {
|
|
4654
4654
|
"filePath": "remove-components.ts",
|
|
4655
|
-
"line":
|
|
4655
|
+
"line": 77,
|
|
4656
4656
|
"character": 14
|
|
4657
4657
|
},
|
|
4658
4658
|
"name": "Workspace"
|
|
@@ -4661,7 +4661,7 @@
|
|
|
4661
4661
|
"__schema": "KeywordTypeSchema",
|
|
4662
4662
|
"location": {
|
|
4663
4663
|
"filePath": "remove-components.ts",
|
|
4664
|
-
"line":
|
|
4664
|
+
"line": 77,
|
|
4665
4665
|
"character": 26
|
|
4666
4666
|
},
|
|
4667
4667
|
"name": "undefined"
|
|
@@ -4675,7 +4675,7 @@
|
|
|
4675
4675
|
"__schema": "ParameterSchema",
|
|
4676
4676
|
"location": {
|
|
4677
4677
|
"filePath": "remove-components.ts",
|
|
4678
|
-
"line":
|
|
4678
|
+
"line": 78,
|
|
4679
4679
|
"character": 3
|
|
4680
4680
|
},
|
|
4681
4681
|
"name": "bitIds",
|
|
@@ -4683,7 +4683,7 @@
|
|
|
4683
4683
|
"__schema": "TypeRefSchema",
|
|
4684
4684
|
"location": {
|
|
4685
4685
|
"filePath": "remove-components.ts",
|
|
4686
|
-
"line":
|
|
4686
|
+
"line": 78,
|
|
4687
4687
|
"character": 11
|
|
4688
4688
|
},
|
|
4689
4689
|
"name": "ComponentIdList"
|
|
@@ -4695,7 +4695,7 @@
|
|
|
4695
4695
|
"__schema": "ParameterSchema",
|
|
4696
4696
|
"location": {
|
|
4697
4697
|
"filePath": "remove-components.ts",
|
|
4698
|
-
"line":
|
|
4698
|
+
"line": 79,
|
|
4699
4699
|
"character": 3
|
|
4700
4700
|
},
|
|
4701
4701
|
"name": "force",
|
|
@@ -4703,7 +4703,7 @@
|
|
|
4703
4703
|
"__schema": "KeywordTypeSchema",
|
|
4704
4704
|
"location": {
|
|
4705
4705
|
"filePath": "remove-components.ts",
|
|
4706
|
-
"line":
|
|
4706
|
+
"line": 79,
|
|
4707
4707
|
"character": 10
|
|
4708
4708
|
},
|
|
4709
4709
|
"name": "boolean"
|
|
@@ -4716,7 +4716,7 @@
|
|
|
4716
4716
|
"__schema": "TypeRefSchema",
|
|
4717
4717
|
"location": {
|
|
4718
4718
|
"filePath": "remove-components.ts",
|
|
4719
|
-
"line":
|
|
4719
|
+
"line": 80,
|
|
4720
4720
|
"character": 4
|
|
4721
4721
|
},
|
|
4722
4722
|
"name": "Promise",
|
|
@@ -4725,14 +4725,14 @@
|
|
|
4725
4725
|
"__schema": "TypeArraySchema",
|
|
4726
4726
|
"location": {
|
|
4727
4727
|
"filePath": "remove-components.ts",
|
|
4728
|
-
"line":
|
|
4728
|
+
"line": 80,
|
|
4729
4729
|
"character": 12
|
|
4730
4730
|
},
|
|
4731
4731
|
"type": {
|
|
4732
4732
|
"__schema": "TypeRefSchema",
|
|
4733
4733
|
"location": {
|
|
4734
4734
|
"filePath": "remove-components.ts",
|
|
4735
|
-
"line":
|
|
4735
|
+
"line": 80,
|
|
4736
4736
|
"character": 12
|
|
4737
4737
|
},
|
|
4738
4738
|
"name": "RemovedObjects"
|
|
@@ -4748,14 +4748,14 @@
|
|
|
4748
4748
|
"__schema": "FunctionLikeSchema",
|
|
4749
4749
|
"location": {
|
|
4750
4750
|
"filePath": "remove-components.ts",
|
|
4751
|
-
"line":
|
|
4751
|
+
"line": 107,
|
|
4752
4752
|
"character": 1
|
|
4753
4753
|
},
|
|
4754
4754
|
"doc": {
|
|
4755
4755
|
"__schema": "DocSchema",
|
|
4756
4756
|
"location": {
|
|
4757
4757
|
"filePath": "remove-components.ts",
|
|
4758
|
-
"line":
|
|
4758
|
+
"line": 101,
|
|
4759
4759
|
"character": 1
|
|
4760
4760
|
},
|
|
4761
4761
|
"raw": "/**\n * removeLocal - remove local (imported, new staged components) from modules and bitmap according to flags\n * @param {ComponentIdList} bitIds - list of component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n * @param {boolean} deleteFiles - delete component that are used by other components.\n */",
|
|
@@ -4765,7 +4765,7 @@
|
|
|
4765
4765
|
"__schema": "PropertyLikeTagSchema",
|
|
4766
4766
|
"location": {
|
|
4767
4767
|
"filePath": "remove-components.ts",
|
|
4768
|
-
"line":
|
|
4768
|
+
"line": 103,
|
|
4769
4769
|
"character": 4
|
|
4770
4770
|
},
|
|
4771
4771
|
"name": "bitIds",
|
|
@@ -4775,7 +4775,7 @@
|
|
|
4775
4775
|
"__schema": "TypeRefSchema",
|
|
4776
4776
|
"location": {
|
|
4777
4777
|
"filePath": "remove-components.ts",
|
|
4778
|
-
"line":
|
|
4778
|
+
"line": 103,
|
|
4779
4779
|
"character": 12
|
|
4780
4780
|
},
|
|
4781
4781
|
"name": "ComponentIdList"
|
|
@@ -4785,7 +4785,7 @@
|
|
|
4785
4785
|
"__schema": "PropertyLikeTagSchema",
|
|
4786
4786
|
"location": {
|
|
4787
4787
|
"filePath": "remove-components.ts",
|
|
4788
|
-
"line":
|
|
4788
|
+
"line": 104,
|
|
4789
4789
|
"character": 4
|
|
4790
4790
|
},
|
|
4791
4791
|
"name": "force",
|
|
@@ -4795,7 +4795,7 @@
|
|
|
4795
4795
|
"__schema": "KeywordTypeSchema",
|
|
4796
4796
|
"location": {
|
|
4797
4797
|
"filePath": "remove-components.ts",
|
|
4798
|
-
"line":
|
|
4798
|
+
"line": 104,
|
|
4799
4799
|
"character": 12
|
|
4800
4800
|
},
|
|
4801
4801
|
"name": "boolean"
|
|
@@ -4805,7 +4805,7 @@
|
|
|
4805
4805
|
"__schema": "PropertyLikeTagSchema",
|
|
4806
4806
|
"location": {
|
|
4807
4807
|
"filePath": "remove-components.ts",
|
|
4808
|
-
"line":
|
|
4808
|
+
"line": 105,
|
|
4809
4809
|
"character": 4
|
|
4810
4810
|
},
|
|
4811
4811
|
"name": "deleteFiles",
|
|
@@ -4815,7 +4815,7 @@
|
|
|
4815
4815
|
"__schema": "KeywordTypeSchema",
|
|
4816
4816
|
"location": {
|
|
4817
4817
|
"filePath": "remove-components.ts",
|
|
4818
|
-
"line":
|
|
4818
|
+
"line": 105,
|
|
4819
4819
|
"character": 12
|
|
4820
4820
|
},
|
|
4821
4821
|
"name": "boolean"
|
|
@@ -4830,7 +4830,7 @@
|
|
|
4830
4830
|
"__schema": "ParameterSchema",
|
|
4831
4831
|
"location": {
|
|
4832
4832
|
"filePath": "remove-components.ts",
|
|
4833
|
-
"line":
|
|
4833
|
+
"line": 108,
|
|
4834
4834
|
"character": 3
|
|
4835
4835
|
},
|
|
4836
4836
|
"name": "workspace",
|
|
@@ -4838,7 +4838,7 @@
|
|
|
4838
4838
|
"__schema": "TypeRefSchema",
|
|
4839
4839
|
"location": {
|
|
4840
4840
|
"filePath": "remove-components.ts",
|
|
4841
|
-
"line":
|
|
4841
|
+
"line": 108,
|
|
4842
4842
|
"character": 14
|
|
4843
4843
|
},
|
|
4844
4844
|
"name": "Workspace"
|
|
@@ -4850,7 +4850,7 @@
|
|
|
4850
4850
|
"__schema": "ParameterSchema",
|
|
4851
4851
|
"location": {
|
|
4852
4852
|
"filePath": "remove-components.ts",
|
|
4853
|
-
"line":
|
|
4853
|
+
"line": 109,
|
|
4854
4854
|
"character": 3
|
|
4855
4855
|
},
|
|
4856
4856
|
"name": "bitIds",
|
|
@@ -4858,7 +4858,7 @@
|
|
|
4858
4858
|
"__schema": "TypeRefSchema",
|
|
4859
4859
|
"location": {
|
|
4860
4860
|
"filePath": "remove-components.ts",
|
|
4861
|
-
"line":
|
|
4861
|
+
"line": 109,
|
|
4862
4862
|
"character": 11
|
|
4863
4863
|
},
|
|
4864
4864
|
"name": "ComponentIdList"
|
|
@@ -4870,7 +4870,7 @@
|
|
|
4870
4870
|
"__schema": "ParameterSchema",
|
|
4871
4871
|
"location": {
|
|
4872
4872
|
"filePath": "remove-components.ts",
|
|
4873
|
-
"line":
|
|
4873
|
+
"line": 110,
|
|
4874
4874
|
"character": 3
|
|
4875
4875
|
},
|
|
4876
4876
|
"name": "force",
|
|
@@ -4878,7 +4878,7 @@
|
|
|
4878
4878
|
"__schema": "KeywordTypeSchema",
|
|
4879
4879
|
"location": {
|
|
4880
4880
|
"filePath": "remove-components.ts",
|
|
4881
|
-
"line":
|
|
4881
|
+
"line": 110,
|
|
4882
4882
|
"character": 10
|
|
4883
4883
|
},
|
|
4884
4884
|
"name": "boolean"
|
|
@@ -4890,7 +4890,7 @@
|
|
|
4890
4890
|
"__schema": "ParameterSchema",
|
|
4891
4891
|
"location": {
|
|
4892
4892
|
"filePath": "remove-components.ts",
|
|
4893
|
-
"line":
|
|
4893
|
+
"line": 111,
|
|
4894
4894
|
"character": 3
|
|
4895
4895
|
},
|
|
4896
4896
|
"name": "track",
|
|
@@ -4898,7 +4898,7 @@
|
|
|
4898
4898
|
"__schema": "KeywordTypeSchema",
|
|
4899
4899
|
"location": {
|
|
4900
4900
|
"filePath": "remove-components.ts",
|
|
4901
|
-
"line":
|
|
4901
|
+
"line": 111,
|
|
4902
4902
|
"character": 10
|
|
4903
4903
|
},
|
|
4904
4904
|
"name": "boolean"
|
|
@@ -4910,7 +4910,7 @@
|
|
|
4910
4910
|
"__schema": "ParameterSchema",
|
|
4911
4911
|
"location": {
|
|
4912
4912
|
"filePath": "remove-components.ts",
|
|
4913
|
-
"line":
|
|
4913
|
+
"line": 112,
|
|
4914
4914
|
"character": 3
|
|
4915
4915
|
},
|
|
4916
4916
|
"name": "deleteFiles",
|
|
@@ -4918,7 +4918,7 @@
|
|
|
4918
4918
|
"__schema": "KeywordTypeSchema",
|
|
4919
4919
|
"location": {
|
|
4920
4920
|
"filePath": "remove-components.ts",
|
|
4921
|
-
"line":
|
|
4921
|
+
"line": 112,
|
|
4922
4922
|
"character": 16
|
|
4923
4923
|
},
|
|
4924
4924
|
"name": "boolean"
|
|
@@ -4931,7 +4931,7 @@
|
|
|
4931
4931
|
"__schema": "TypeRefSchema",
|
|
4932
4932
|
"location": {
|
|
4933
4933
|
"filePath": "remove-components.ts",
|
|
4934
|
-
"line":
|
|
4934
|
+
"line": 113,
|
|
4935
4935
|
"character": 4
|
|
4936
4936
|
},
|
|
4937
4937
|
"name": "Promise",
|
|
@@ -4940,7 +4940,7 @@
|
|
|
4940
4940
|
"__schema": "TypeRefSchema",
|
|
4941
4941
|
"location": {
|
|
4942
4942
|
"filePath": "remove-components.ts",
|
|
4943
|
-
"line":
|
|
4943
|
+
"line": 113,
|
|
4944
4944
|
"character": 12
|
|
4945
4945
|
},
|
|
4946
4946
|
"name": "RemovedLocalObjects"
|
|
@@ -4994,7 +4994,7 @@
|
|
|
4994
4994
|
"componentId": {
|
|
4995
4995
|
"scope": "teambit.component",
|
|
4996
4996
|
"name": "remove",
|
|
4997
|
-
"version": "1.0.
|
|
4997
|
+
"version": "1.0.333"
|
|
4998
4998
|
},
|
|
4999
4999
|
"taggedModuleExports": []
|
|
5000
5000
|
}
|
|
@@ -11,16 +11,9 @@ function _logger() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const data =
|
|
16
|
-
|
|
17
|
-
return data;
|
|
18
|
-
};
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
function _removePath() {
|
|
22
|
-
const data = _interopRequireDefault(require("@teambit/legacy/dist/consumer/component/sources/remove-path"));
|
|
23
|
-
_removePath = function () {
|
|
14
|
+
function _component() {
|
|
15
|
+
const data = require("@teambit/component.sources");
|
|
16
|
+
_component = function () {
|
|
24
17
|
return data;
|
|
25
18
|
};
|
|
26
19
|
return data;
|
|
@@ -32,7 +25,7 @@ async function deleteComponentsFiles(consumer, bitIds) {
|
|
|
32
25
|
filesToDelete.addBasePath(consumer.getPath());
|
|
33
26
|
return filesToDelete.persistAllToFS();
|
|
34
27
|
function getFilesToDelete() {
|
|
35
|
-
const dataToPersist = new (
|
|
28
|
+
const dataToPersist = new (_component().DataToPersist)();
|
|
36
29
|
bitIds.forEach(id => {
|
|
37
30
|
const ignoreVersion = consumer.scope.isLocal(id) || !id.hasVersion();
|
|
38
31
|
const componentMap = consumer.bitMap.getComponentIfExist(id, {
|
|
@@ -44,7 +37,7 @@ async function deleteComponentsFiles(consumer, bitIds) {
|
|
|
44
37
|
}
|
|
45
38
|
const rootDir = componentMap.rootDir;
|
|
46
39
|
if (!rootDir) throw new Error(`rootDir is missing from ${id.toString()}`);
|
|
47
|
-
dataToPersist.removePath(new (
|
|
40
|
+
dataToPersist.removePath(new (_component().RemovePath)(rootDir, true));
|
|
48
41
|
});
|
|
49
42
|
return dataToPersist;
|
|
50
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_logger","data","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_logger","data","_interopRequireDefault","require","_component","e","__esModule","default","deleteComponentsFiles","consumer","bitIds","logger","debug","toString","filesToDelete","getFilesToDelete","addBasePath","getPath","persistAllToFS","dataToPersist","DataToPersist","forEach","id","ignoreVersion","scope","isLocal","hasVersion","componentMap","bitMap","getComponentIfExist","warn","rootDir","Error","removePath","RemovePath"],"sources":["delete-component-files.ts"],"sourcesContent":["import { ComponentIdList } from '@teambit/component-id';\nimport logger from '@teambit/legacy/dist/logger/logger';\nimport { DataToPersist, RemovePath } from '@teambit/component.sources';\nimport Consumer from '@teambit/legacy/dist/consumer/consumer';\n\nexport async function deleteComponentsFiles(consumer: Consumer, bitIds: ComponentIdList) {\n logger.debug(`deleteComponentsFiles, ids: ${bitIds.toString()}`);\n const filesToDelete = getFilesToDelete();\n filesToDelete.addBasePath(consumer.getPath());\n return filesToDelete.persistAllToFS();\n\n function getFilesToDelete(): DataToPersist {\n const dataToPersist = new DataToPersist();\n bitIds.forEach((id) => {\n const ignoreVersion = consumer.scope.isLocal(id) || !id.hasVersion();\n const componentMap = consumer.bitMap.getComponentIfExist(id, { ignoreVersion });\n if (!componentMap) {\n logger.warn(\n `deleteComponentsFiles was unable to delete ${id.toString()} because the id is missing from bitmap`\n );\n return;\n }\n const rootDir = componentMap.rootDir;\n if (!rootDir) throw new Error(`rootDir is missing from ${id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,CAAC;QACD;MACF;MACA,MAAMkB,OAAO,GAAGJ,YAAY,CAACI,OAAO;MACpC,IAAI,CAACA,OAAO,EAAE,MAAM,IAAIC,KAAK,CAAC,2BAA2BV,EAAE,CAACT,QAAQ,CAAC,CAAC,EAAE,CAAC;MACzEM,aAAa,CAACc,UAAU,CAAC,KAAIC,uBAAU,EAACH,OAAO,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC,CAAC;IACF,OAAOZ,aAAa;EACtB;AACF","ignoreList":[]}
|
|
@@ -54,13 +54,6 @@ function _bitError() {
|
|
|
54
54
|
};
|
|
55
55
|
return data;
|
|
56
56
|
}
|
|
57
|
-
function _enrichContextFromGlobal() {
|
|
58
|
-
const data = _interopRequireDefault(require("@teambit/legacy/dist/hooks/utils/enrich-context-from-global"));
|
|
59
|
-
_enrichContextFromGlobal = function () {
|
|
60
|
-
return data;
|
|
61
|
-
};
|
|
62
|
-
return data;
|
|
63
|
-
}
|
|
64
57
|
function _logger() {
|
|
65
58
|
const data = _interopRequireDefault(require("@teambit/legacy/dist/logger/logger"));
|
|
66
59
|
_logger = function () {
|
|
@@ -96,9 +89,9 @@ function _deleteComponentFiles() {
|
|
|
96
89
|
};
|
|
97
90
|
return data;
|
|
98
91
|
}
|
|
99
|
-
function
|
|
100
|
-
const data =
|
|
101
|
-
|
|
92
|
+
function _legacy() {
|
|
93
|
+
const data = require("@teambit/legacy.component-list");
|
|
94
|
+
_legacy = function () {
|
|
102
95
|
return data;
|
|
103
96
|
};
|
|
104
97
|
return data;
|
|
@@ -191,7 +184,6 @@ async function removeRemote(workspace, bitIds, force) {
|
|
|
191
184
|
});
|
|
192
185
|
}
|
|
193
186
|
const context = {};
|
|
194
|
-
(0, _enrichContextFromGlobal().default)(context);
|
|
195
187
|
const removeP = Object.keys(groupedBitsByScope).map(async key => {
|
|
196
188
|
const resolvedRemote = await remotes.resolve(key, workspace?.scope.legacyScope);
|
|
197
189
|
const idsStr = groupedBitsByScope[key].map(id => id.toStringWithoutVersion());
|
|
@@ -243,7 +235,7 @@ If you understand the risks and wish to proceed with the removal, please use the
|
|
|
243
235
|
}
|
|
244
236
|
}
|
|
245
237
|
const idsToRemove = force ? bitIds : nonModifiedComponents;
|
|
246
|
-
const componentsList = new (
|
|
238
|
+
const componentsList = new (_legacy().ComponentsList)(consumer);
|
|
247
239
|
const newComponents = await componentsList.listNewComponents(false);
|
|
248
240
|
const idsToRemoveFromScope = _componentId().ComponentIdList.fromArray(idsToRemove.filter(id => !newComponents.hasWithoutVersion(id)));
|
|
249
241
|
const idsToCleanFromWorkspace = _componentId().ComponentIdList.fromArray(idsToRemove.filter(id => newComponents.hasWithoutVersion(id)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_groupArray","_lodash","_componentId","_lodash2","_constants","_bitError","_enrichContextFromGlobal","_logger","_http","_remotes","_scopeRemotes","_deleteComponentFiles","_componentsList","_consumerComponent","_pMapSeries","_pkgModules","_removedLocalObjects","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","removeComponents","workspace","ids","force","remote","track","deleteFiles","logger","debugAndAddBreadCrumb","toString","bitIdsLatest","ComponentIdList","fromArray","map","id","changeVersion","LATEST_BIT_VERSION","localIds","remoteIds","partition","isLocal","BitError","join","remoteResult","isEmpty","removeRemote","localResult","removeLocal","RemovedLocalObjects","bitIds","groupedBitsByScope","groupArray","remotes","getScopeRemotes","scope","legacyScope","Remotes","getGlobalRemotes","shouldGoToCentralHub","http","Http","connect","CENTRAL_BIT_HUB_URL","CENTRAL_BIT_HUB_NAME","deleteViaCentralHub","idsAreLanes","context","enrichContextFromGlobal","removeP","key","resolvedRemote","resolve","idsStr","toStringWithoutVersion","deleteMany","Promise","all","consumer","modifiedComponents","nonModifiedComponents","newIds","pMapSeries","componentStatus","getComponentStatusById","newlyCreated","modified","err","Component","isComponentInvalidByErrorType","list","listWithInvalid","components","c","hasWithoutVersion","aspectIds","state","aspects","used","find","newId","includes","idsToRemove","componentsList","ComponentsList","newComponents","listNewComponents","idsToRemoveFromScope","idsToCleanFromWorkspace","componentsToRemove","loadComponents","removedComponentIds","missingComponents","dependentBits","removedFromLane","removeMany","deleteComponentsFiles","removedComponents","packageJson","removeComponentsFromDependencies","removeComponentsFromNodeModules","cleanFromBitMap","cleanFromConfig","uniqFromArray","debug","pathsToRemoveWithNulls","getNodeModulesPathOfComponent","pathsToRemove","compact","componentPath","fs","remove","toAbsolutePath"],"sources":["remove-components.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport groupArray from 'group-array';\nimport partition from 'lodash.partition';\nimport { Workspace } from '@teambit/workspace';\nimport { ComponentIdList } from '@teambit/component-id';\nimport { compact, isEmpty } from 'lodash';\nimport { CENTRAL_BIT_HUB_NAME, CENTRAL_BIT_HUB_URL, LATEST_BIT_VERSION } from '@teambit/legacy/dist/constants';\nimport { BitError } from '@teambit/bit-error';\nimport enrichContextFromGlobal from '@teambit/legacy/dist/hooks/utils/enrich-context-from-global';\nimport logger from '@teambit/legacy/dist/logger/logger';\nimport { Http } from '@teambit/legacy/dist/scope/network/http';\nimport { Remotes } from '@teambit/legacy/dist/remotes';\nimport { getScopeRemotes } from '@teambit/legacy/dist/scope/scope-remotes';\nimport { deleteComponentsFiles } from './delete-component-files';\nimport ComponentsList from '@teambit/legacy/dist/consumer/component/components-list';\nimport Component from '@teambit/legacy/dist/consumer/component/consumer-component';\nimport RemovedObjects from '@teambit/legacy/dist/scope/removed-components';\nimport pMapSeries from 'p-map-series';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport { getNodeModulesPathOfComponent } from '@teambit/pkg.modules.component-package-name';\nimport { RemovedLocalObjects } from './removed-local-objects';\n\nexport type RemoveComponentsResult = { localResult: RemovedLocalObjects; remoteResult: RemovedObjects[] };\n\n/**\n * Remove components local and remote\n * splits array of ids into local and remote and removes according to flags\n * @param {string[]} ids - list of remote component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n * @param {boolean} remote - delete component from a remote scope\n * @param {boolean} track - keep tracking local staged components in bitmap.\n * @param {boolean} deleteFiles - delete local added files from fs.\n */\nexport async function removeComponents({\n workspace,\n ids,\n force,\n remote,\n track,\n deleteFiles,\n}: {\n workspace?: Workspace; // when remote is false, it's always set\n ids: ComponentIdList;\n force: boolean;\n remote: boolean;\n track: boolean;\n deleteFiles: boolean;\n}): Promise<RemoveComponentsResult> {\n logger.debugAndAddBreadCrumb('removeComponents', `{ids}. force: ${force.toString()}`, { ids: ids.toString() });\n // added this to remove support for remove only one version from a component\n const bitIdsLatest = ComponentIdList.fromArray(\n ids.map((id) => {\n return id.changeVersion(LATEST_BIT_VERSION);\n })\n );\n const [localIds, remoteIds] = partition(bitIdsLatest, (id) => id.isLocal());\n if (remote && localIds.length) {\n throw new BitError(\n `unable to remove the remote components: ${localIds.join(',')} as they don't contain a scope-name`\n );\n }\n const remoteResult = remote && !isEmpty(remoteIds) ? await removeRemote(workspace, remoteIds, force) : [];\n const localResult = !remote\n ? await removeLocal(workspace as Workspace, bitIdsLatest, force, track, deleteFiles)\n : new RemovedLocalObjects();\n\n return { localResult, remoteResult };\n}\n\n/**\n * Remove remote component from the remote\n * this method groups remote components by remote name and deletes remote components together\n * @param {ComponentIdList} bitIds - list of remote component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n */\nasync function removeRemote(\n workspace: Workspace | undefined,\n bitIds: ComponentIdList,\n force: boolean\n): Promise<RemovedObjects[]> {\n const groupedBitsByScope = groupArray(bitIds, 'scope');\n const remotes = workspace ? await getScopeRemotes(workspace.scope.legacyScope) : await Remotes.getGlobalRemotes();\n const shouldGoToCentralHub = remotes.shouldGoToCentralHub(Object.keys(groupedBitsByScope));\n if (shouldGoToCentralHub) {\n const http = await Http.connect(CENTRAL_BIT_HUB_URL, CENTRAL_BIT_HUB_NAME);\n return http.deleteViaCentralHub(\n bitIds.map((id) => id.toString()),\n { force, idsAreLanes: false }\n );\n }\n const context = {};\n enrichContextFromGlobal(context);\n const removeP = Object.keys(groupedBitsByScope).map(async (key) => {\n const resolvedRemote = await remotes.resolve(key, workspace?.scope.legacyScope);\n const idsStr = groupedBitsByScope[key].map((id) => id.toStringWithoutVersion());\n return resolvedRemote.deleteMany(idsStr, force, context);\n });\n\n return Promise.all(removeP);\n}\n\n/**\n * removeLocal - remove local (imported, new staged components) from modules and bitmap according to flags\n * @param {ComponentIdList} bitIds - list of component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n * @param {boolean} deleteFiles - delete component that are used by other components.\n */\nasync function removeLocal(\n workspace: Workspace,\n bitIds: ComponentIdList,\n force: boolean,\n track: boolean,\n deleteFiles: boolean\n): Promise<RemovedLocalObjects> {\n const consumer = workspace.consumer;\n // local remove in case user wants to delete tagged components\n const modifiedComponents = new ComponentIdList();\n const nonModifiedComponents = new ComponentIdList();\n if (!bitIds.length) return new RemovedLocalObjects();\n if (!force) {\n const newIds: string[] = [];\n await pMapSeries(bitIds, async (id) => {\n try {\n const componentStatus = await workspace.getComponentStatusById(id);\n if (componentStatus.newlyCreated) newIds.push(id.toStringWithoutVersion());\n if (componentStatus.modified) modifiedComponents.push(id);\n else nonModifiedComponents.push(id);\n } catch (err: any) {\n // if a component has an error, such as, missing main file, we do want to allow removing that component\n if (Component.isComponentInvalidByErrorType(err)) {\n nonModifiedComponents.push(id);\n } else {\n throw err;\n }\n }\n });\n if (newIds.length) {\n const list = await workspace.listWithInvalid();\n list.components.forEach((c) => {\n if (bitIds.hasWithoutVersion(c.id)) return; // it gets deleted anyway\n const aspectIds = c.state.aspects.ids;\n const used = newIds.find((newId) => aspectIds.includes(newId));\n if (used)\n throw new BitError(`Unable to remove ${c.id.toStringWithoutVersion()}.\nThis component is 1) an aspect 2) is used by other components, such as \"${c.id.toStringWithoutVersion()}\" 3) it's a new component so it can't be installed as a package.\nRemoving this component from the workspace will disrupt the functionality of other components that depend on it, and resolving these issues may not be straightforward.\nIf you understand the risks and wish to proceed with the removal, please use the --force flag.\n`);\n });\n }\n }\n const idsToRemove = force ? bitIds : nonModifiedComponents;\n const componentsList = new ComponentsList(consumer);\n const newComponents = (await componentsList.listNewComponents(false)) as ComponentIdList;\n const idsToRemoveFromScope = ComponentIdList.fromArray(\n idsToRemove.filter((id) => !newComponents.hasWithoutVersion(id))\n );\n const idsToCleanFromWorkspace = ComponentIdList.fromArray(\n idsToRemove.filter((id) => newComponents.hasWithoutVersion(id))\n );\n const { components: componentsToRemove } = await consumer.loadComponents(idsToRemove, false);\n const { removedComponentIds, missingComponents, dependentBits, removedFromLane } = await consumer.scope.removeMany(\n idsToRemoveFromScope,\n force,\n consumer\n );\n // otherwise, components should still be in .bitmap file\n idsToCleanFromWorkspace.push(...removedComponentIds);\n if (idsToCleanFromWorkspace.length) {\n if (deleteFiles) await deleteComponentsFiles(consumer, idsToCleanFromWorkspace);\n if (!track) {\n const removedComponents = componentsToRemove.filter((c) => idsToCleanFromWorkspace.hasWithoutVersion(c.id));\n await consumer.packageJson.removeComponentsFromDependencies(removedComponents);\n await removeComponentsFromNodeModules(consumer, removedComponents);\n await consumer.cleanFromBitMap(idsToCleanFromWorkspace);\n await workspace.cleanFromConfig(idsToCleanFromWorkspace);\n }\n }\n return new RemovedLocalObjects(\n ComponentIdList.uniqFromArray([...idsToCleanFromWorkspace, ...removedComponentIds]),\n missingComponents,\n modifiedComponents,\n dependentBits,\n removedFromLane\n );\n}\n\nexport async function removeComponentsFromNodeModules(consumer: Consumer, components: ConsumerComponent[]) {\n logger.debug(`removeComponentsFromNodeModules: ${components.map((c) => c.id.toString()).join(', ')}`);\n const pathsToRemoveWithNulls = components.map((c) => {\n return getNodeModulesPathOfComponent({ ...c, id: c.id });\n });\n const pathsToRemove = compact(pathsToRemoveWithNulls);\n logger.debug(`deleting the following paths: ${pathsToRemove.join('\\n')}`);\n return Promise.all(pathsToRemove.map((componentPath) => fs.remove(consumer.toAbsolutePath(componentPath))));\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,SAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,SAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,yBAAA;EAAA,MAAAT,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAO,wBAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;A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_groupArray","_lodash","_componentId","_lodash2","_constants","_bitError","_logger","_http","_remotes","_scopeRemotes","_deleteComponentFiles","_legacy","_consumerComponent","_pMapSeries","_pkgModules","_removedLocalObjects","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","removeComponents","workspace","ids","force","remote","track","deleteFiles","logger","debugAndAddBreadCrumb","toString","bitIdsLatest","ComponentIdList","fromArray","map","id","changeVersion","LATEST_BIT_VERSION","localIds","remoteIds","partition","isLocal","BitError","join","remoteResult","isEmpty","removeRemote","localResult","removeLocal","RemovedLocalObjects","bitIds","groupedBitsByScope","groupArray","remotes","getScopeRemotes","scope","legacyScope","Remotes","getGlobalRemotes","shouldGoToCentralHub","http","Http","connect","CENTRAL_BIT_HUB_URL","CENTRAL_BIT_HUB_NAME","deleteViaCentralHub","idsAreLanes","context","removeP","key","resolvedRemote","resolve","idsStr","toStringWithoutVersion","deleteMany","Promise","all","consumer","modifiedComponents","nonModifiedComponents","newIds","pMapSeries","componentStatus","getComponentStatusById","newlyCreated","modified","err","Component","isComponentInvalidByErrorType","list","listWithInvalid","components","c","hasWithoutVersion","aspectIds","state","aspects","used","find","newId","includes","idsToRemove","componentsList","ComponentsList","newComponents","listNewComponents","idsToRemoveFromScope","idsToCleanFromWorkspace","componentsToRemove","loadComponents","removedComponentIds","missingComponents","dependentBits","removedFromLane","removeMany","deleteComponentsFiles","removedComponents","packageJson","removeComponentsFromDependencies","removeComponentsFromNodeModules","cleanFromBitMap","cleanFromConfig","uniqFromArray","debug","pathsToRemoveWithNulls","getNodeModulesPathOfComponent","pathsToRemove","compact","componentPath","fs","remove","toAbsolutePath"],"sources":["remove-components.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport groupArray from 'group-array';\nimport partition from 'lodash.partition';\nimport { Workspace } from '@teambit/workspace';\nimport { ComponentIdList } from '@teambit/component-id';\nimport { compact, isEmpty } from 'lodash';\nimport { CENTRAL_BIT_HUB_NAME, CENTRAL_BIT_HUB_URL, LATEST_BIT_VERSION } from '@teambit/legacy/dist/constants';\nimport { BitError } from '@teambit/bit-error';\nimport logger from '@teambit/legacy/dist/logger/logger';\nimport { Http } from '@teambit/legacy/dist/scope/network/http';\nimport { Remotes } from '@teambit/legacy/dist/remotes';\nimport { getScopeRemotes } from '@teambit/legacy/dist/scope/scope-remotes';\nimport { deleteComponentsFiles } from './delete-component-files';\nimport { ComponentsList } from '@teambit/legacy.component-list';\nimport Component from '@teambit/legacy/dist/consumer/component/consumer-component';\nimport RemovedObjects from '@teambit/legacy/dist/scope/removed-components';\nimport pMapSeries from 'p-map-series';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport { getNodeModulesPathOfComponent } from '@teambit/pkg.modules.component-package-name';\nimport { RemovedLocalObjects } from './removed-local-objects';\n\nexport type RemoveComponentsResult = { localResult: RemovedLocalObjects; remoteResult: RemovedObjects[] };\n\n/**\n * Remove components local and remote\n * splits array of ids into local and remote and removes according to flags\n * @param {string[]} ids - list of remote component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n * @param {boolean} remote - delete component from a remote scope\n * @param {boolean} track - keep tracking local staged components in bitmap.\n * @param {boolean} deleteFiles - delete local added files from fs.\n */\nexport async function removeComponents({\n workspace,\n ids,\n force,\n remote,\n track,\n deleteFiles,\n}: {\n workspace?: Workspace; // when remote is false, it's always set\n ids: ComponentIdList;\n force: boolean;\n remote: boolean;\n track: boolean;\n deleteFiles: boolean;\n}): Promise<RemoveComponentsResult> {\n logger.debugAndAddBreadCrumb('removeComponents', `{ids}. force: ${force.toString()}`, { ids: ids.toString() });\n // added this to remove support for remove only one version from a component\n const bitIdsLatest = ComponentIdList.fromArray(\n ids.map((id) => {\n return id.changeVersion(LATEST_BIT_VERSION);\n })\n );\n const [localIds, remoteIds] = partition(bitIdsLatest, (id) => id.isLocal());\n if (remote && localIds.length) {\n throw new BitError(\n `unable to remove the remote components: ${localIds.join(',')} as they don't contain a scope-name`\n );\n }\n const remoteResult = remote && !isEmpty(remoteIds) ? await removeRemote(workspace, remoteIds, force) : [];\n const localResult = !remote\n ? await removeLocal(workspace as Workspace, bitIdsLatest, force, track, deleteFiles)\n : new RemovedLocalObjects();\n\n return { localResult, remoteResult };\n}\n\n/**\n * Remove remote component from the remote\n * this method groups remote components by remote name and deletes remote components together\n * @param {ComponentIdList} bitIds - list of remote component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n */\nasync function removeRemote(\n workspace: Workspace | undefined,\n bitIds: ComponentIdList,\n force: boolean\n): Promise<RemovedObjects[]> {\n const groupedBitsByScope = groupArray(bitIds, 'scope');\n const remotes = workspace ? await getScopeRemotes(workspace.scope.legacyScope) : await Remotes.getGlobalRemotes();\n const shouldGoToCentralHub = remotes.shouldGoToCentralHub(Object.keys(groupedBitsByScope));\n if (shouldGoToCentralHub) {\n const http = await Http.connect(CENTRAL_BIT_HUB_URL, CENTRAL_BIT_HUB_NAME);\n return http.deleteViaCentralHub(\n bitIds.map((id) => id.toString()),\n { force, idsAreLanes: false }\n );\n }\n const context = {};\n const removeP = Object.keys(groupedBitsByScope).map(async (key) => {\n const resolvedRemote = await remotes.resolve(key, workspace?.scope.legacyScope);\n const idsStr = groupedBitsByScope[key].map((id) => id.toStringWithoutVersion());\n return resolvedRemote.deleteMany(idsStr, force, context);\n });\n\n return Promise.all(removeP);\n}\n\n/**\n * removeLocal - remove local (imported, new staged components) from modules and bitmap according to flags\n * @param {ComponentIdList} bitIds - list of component ids to delete\n * @param {boolean} force - delete component that are used by other components.\n * @param {boolean} deleteFiles - delete component that are used by other components.\n */\nasync function removeLocal(\n workspace: Workspace,\n bitIds: ComponentIdList,\n force: boolean,\n track: boolean,\n deleteFiles: boolean\n): Promise<RemovedLocalObjects> {\n const consumer = workspace.consumer;\n // local remove in case user wants to delete tagged components\n const modifiedComponents = new ComponentIdList();\n const nonModifiedComponents = new ComponentIdList();\n if (!bitIds.length) return new RemovedLocalObjects();\n if (!force) {\n const newIds: string[] = [];\n await pMapSeries(bitIds, async (id) => {\n try {\n const componentStatus = await workspace.getComponentStatusById(id);\n if (componentStatus.newlyCreated) newIds.push(id.toStringWithoutVersion());\n if (componentStatus.modified) modifiedComponents.push(id);\n else nonModifiedComponents.push(id);\n } catch (err: any) {\n // if a component has an error, such as, missing main file, we do want to allow removing that component\n if (Component.isComponentInvalidByErrorType(err)) {\n nonModifiedComponents.push(id);\n } else {\n throw err;\n }\n }\n });\n if (newIds.length) {\n const list = await workspace.listWithInvalid();\n list.components.forEach((c) => {\n if (bitIds.hasWithoutVersion(c.id)) return; // it gets deleted anyway\n const aspectIds = c.state.aspects.ids;\n const used = newIds.find((newId) => aspectIds.includes(newId));\n if (used)\n throw new BitError(`Unable to remove ${c.id.toStringWithoutVersion()}.\nThis component is 1) an aspect 2) is used by other components, such as \"${c.id.toStringWithoutVersion()}\" 3) it's a new component so it can't be installed as a package.\nRemoving this component from the workspace will disrupt the functionality of other components that depend on it, and resolving these issues may not be straightforward.\nIf you understand the risks and wish to proceed with the removal, please use the --force flag.\n`);\n });\n }\n }\n const idsToRemove = force ? bitIds : nonModifiedComponents;\n const componentsList = new ComponentsList(consumer);\n const newComponents = (await componentsList.listNewComponents(false)) as ComponentIdList;\n const idsToRemoveFromScope = ComponentIdList.fromArray(\n idsToRemove.filter((id) => !newComponents.hasWithoutVersion(id))\n );\n const idsToCleanFromWorkspace = ComponentIdList.fromArray(\n idsToRemove.filter((id) => newComponents.hasWithoutVersion(id))\n );\n const { components: componentsToRemove } = await consumer.loadComponents(idsToRemove, false);\n const { removedComponentIds, missingComponents, dependentBits, removedFromLane } = await consumer.scope.removeMany(\n idsToRemoveFromScope,\n force,\n consumer\n );\n // otherwise, components should still be in .bitmap file\n idsToCleanFromWorkspace.push(...removedComponentIds);\n if (idsToCleanFromWorkspace.length) {\n if (deleteFiles) await deleteComponentsFiles(consumer, idsToCleanFromWorkspace);\n if (!track) {\n const removedComponents = componentsToRemove.filter((c) => idsToCleanFromWorkspace.hasWithoutVersion(c.id));\n await consumer.packageJson.removeComponentsFromDependencies(removedComponents);\n await removeComponentsFromNodeModules(consumer, removedComponents);\n await consumer.cleanFromBitMap(idsToCleanFromWorkspace);\n await workspace.cleanFromConfig(idsToCleanFromWorkspace);\n }\n }\n return new RemovedLocalObjects(\n ComponentIdList.uniqFromArray([...idsToCleanFromWorkspace, ...removedComponentIds]),\n missingComponents,\n modifiedComponents,\n dependentBits,\n removedFromLane\n );\n}\n\nexport async function removeComponentsFromNodeModules(consumer: Consumer, components: ConsumerComponent[]) {\n logger.debug(`removeComponentsFromNodeModules: ${components.map((c) => c.id.toString()).join(', ')}`);\n const pathsToRemoveWithNulls = components.map((c) => {\n return getNodeModulesPathOfComponent({ ...c, id: c.id });\n });\n const pathsToRemove = compact(pathsToRemoveWithNulls);\n logger.debug(`deleting the following paths: ${pathsToRemove.join('\\n')}`);\n return Promise.all(pathsToRemove.map((componentPath) => fs.remove(consumer.toAbsolutePath(componentPath))));\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,aAAA;EAAA,M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,EAAE,CAAC;EAC1D,CAAC,CAAC;EACF,MAAM2F,aAAa,GAAG,IAAAC,kBAAO,EAACH,sBAAsB,CAAC;EACrDhG,iBAAM,CAAC+F,KAAK,CAAC,iCAAiCG,aAAa,CAACnF,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;EACzE,OAAOgC,OAAO,CAACC,GAAG,CAACkD,aAAa,CAAC5F,GAAG,CAAE8F,aAAa,IAAKC,kBAAE,CAACC,MAAM,CAACrD,QAAQ,CAACsD,cAAc,CAACH,aAAa,CAAC,CAAC,CAAC,CAAC;AAC7G","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/remove",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.333",
|
|
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.333"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -20,18 +20,20 @@
|
|
|
20
20
|
"@teambit/bit-error": "0.0.404",
|
|
21
21
|
"@teambit/component-id": "1.2.0",
|
|
22
22
|
"@teambit/harmony": "0.4.6",
|
|
23
|
-
"@teambit/cli": "0.0.
|
|
24
|
-
"@teambit/workspace": "1.0.
|
|
23
|
+
"@teambit/cli": "0.0.910",
|
|
24
|
+
"@teambit/workspace": "1.0.333",
|
|
25
|
+
"@teambit/component.sources": "0.0.2",
|
|
26
|
+
"@teambit/legacy.component-list": "0.0.3",
|
|
25
27
|
"@teambit/pkg.modules.component-package-name": "0.0.2",
|
|
26
|
-
"@teambit/component": "1.0.
|
|
28
|
+
"@teambit/component": "1.0.333",
|
|
27
29
|
"@teambit/component-issues": "0.0.150",
|
|
28
|
-
"@teambit/dependency-resolver": "1.0.
|
|
29
|
-
"@teambit/importer": "1.0.
|
|
30
|
-
"@teambit/issues": "1.0.
|
|
30
|
+
"@teambit/dependency-resolver": "1.0.333",
|
|
31
|
+
"@teambit/importer": "1.0.333",
|
|
32
|
+
"@teambit/issues": "1.0.333",
|
|
31
33
|
"@teambit/legacy.utils": "0.0.3",
|
|
32
|
-
"@teambit/lister": "1.0.
|
|
33
|
-
"@teambit/logger": "0.0.
|
|
34
|
-
"@teambit/scope": "1.0.
|
|
34
|
+
"@teambit/lister": "1.0.333",
|
|
35
|
+
"@teambit/logger": "0.0.1003",
|
|
36
|
+
"@teambit/scope": "1.0.333"
|
|
35
37
|
},
|
|
36
38
|
"devDependencies": {
|
|
37
39
|
"@types/fs-extra": "9.0.7",
|
|
File without changes
|