@teambit/clear-cache 0.0.402 → 0.0.404
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 +2 -2
- package/artifacts/preview/teambit_workspace_clear_cache-preview.js +1 -1
- package/artifacts/schema.json +572 -0
- package/dist/clear-cache-cmd.js.map +1 -1
- package/dist/clear-cache.aspect.js.map +1 -1
- package/dist/clear-cache.composition.d.ts +0 -1
- package/dist/clear-cache.composition.js.map +1 -1
- package/dist/clear-cache.main.runtime.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/preview-1710224484125.js +7 -0
- package/package.json +3 -3
- package/dist/preview-1706194779559.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites>
|
|
3
|
-
<testsuite name="teambit.workspace/clear-cache@0.0.
|
|
2
|
+
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
+
<testsuite name="teambit.workspace/clear-cache@0.0.404" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.workspace/clear-cache-preview"]=t():e["teambit.workspace/clear-cache-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.workspace/clear-cache-preview"]=t():e["teambit.workspace/clear-cache-preview"]=t()}(self,(()=>(()=>{"use strict";var e={24649:(e,t,o)=>{var r={id:"teambit.workspace/clear-cache@0.0.404",homepage:"https://bit.cloud/teambit/workspace/clear-cache",exported:!0};function n(){const e=c(o(41594));return n=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,c.__bit_component=r;const i=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/clean-cache.svg"}));i.__bit_component=r,t.Logo=i},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var c=t[r]={exports:{}};return e[r](c,c.exports,o),c.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>d,compositions_metadata:()=>f,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>l});var t=o(24649);o(41594);const n=MdxJsReact,c=TeambitMdxUiMdxScopeContext;var i=["components"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},a.apply(this,arguments)}var p={},s="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},c=Object.keys(e);for(r=0;r<c.length;r++)o=c[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)o=c[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,i);return(0,n.mdx)(s,a({},p,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(c.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const d=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
{
|
|
2
|
+
"__schema": "APISchema",
|
|
3
|
+
"location": {
|
|
4
|
+
"filePath": "index.ts",
|
|
5
|
+
"line": 1,
|
|
6
|
+
"character": 1
|
|
7
|
+
},
|
|
8
|
+
"module": {
|
|
9
|
+
"__schema": "ModuleSchema",
|
|
10
|
+
"location": {
|
|
11
|
+
"filePath": "index.ts",
|
|
12
|
+
"line": 1,
|
|
13
|
+
"character": 1
|
|
14
|
+
},
|
|
15
|
+
"exports": [
|
|
16
|
+
{
|
|
17
|
+
"__schema": "ClassSchema",
|
|
18
|
+
"location": {
|
|
19
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
20
|
+
"line": 12,
|
|
21
|
+
"character": 1
|
|
22
|
+
},
|
|
23
|
+
"doc": {
|
|
24
|
+
"__schema": "DocSchema",
|
|
25
|
+
"location": {
|
|
26
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
27
|
+
"line": 8,
|
|
28
|
+
"character": 1
|
|
29
|
+
},
|
|
30
|
+
"raw": "/**\n * avoid adding `workspace` / `scope` aspects as dependencies to this aspect.\n * the clear-cache command is often being used when the workspace/scope is not working properly.\n */",
|
|
31
|
+
"comment": "avoid adding `workspace` / `scope` aspects as dependencies to this aspect.\nthe clear-cache command is often being used when the workspace/scope is not working properly."
|
|
32
|
+
},
|
|
33
|
+
"signature": "class ClearCacheMain",
|
|
34
|
+
"name": "ClearCacheMain",
|
|
35
|
+
"members": [
|
|
36
|
+
{
|
|
37
|
+
"__schema": "FunctionLikeSchema",
|
|
38
|
+
"location": {
|
|
39
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
40
|
+
"line": 13,
|
|
41
|
+
"character": 3
|
|
42
|
+
},
|
|
43
|
+
"signature": "(method) ClearCacheMain.clearCache(): Promise<CacheClearResult>",
|
|
44
|
+
"name": "clearCache",
|
|
45
|
+
"params": [],
|
|
46
|
+
"returnType": {
|
|
47
|
+
"__schema": "TypeRefSchema",
|
|
48
|
+
"location": {
|
|
49
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
50
|
+
"line": 13,
|
|
51
|
+
"character": 23
|
|
52
|
+
},
|
|
53
|
+
"name": "Promise",
|
|
54
|
+
"typeArgs": [
|
|
55
|
+
{
|
|
56
|
+
"__schema": "TypeRefSchema",
|
|
57
|
+
"location": {
|
|
58
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
59
|
+
"line": 13,
|
|
60
|
+
"character": 31
|
|
61
|
+
},
|
|
62
|
+
"name": "CacheClearResult",
|
|
63
|
+
"packageName": "@teambit/legacy/dist/api/consumer/lib/clear-cache"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"modifiers": [
|
|
68
|
+
"async"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"__schema": "FunctionLikeSchema",
|
|
73
|
+
"location": {
|
|
74
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
75
|
+
"line": 17,
|
|
76
|
+
"character": 3
|
|
77
|
+
},
|
|
78
|
+
"signature": "(method) ClearCacheMain.clearRemoteCache(remote: string): Promise<unknown>",
|
|
79
|
+
"name": "clearRemoteCache",
|
|
80
|
+
"params": [
|
|
81
|
+
{
|
|
82
|
+
"__schema": "ParameterSchema",
|
|
83
|
+
"location": {
|
|
84
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
85
|
+
"line": 17,
|
|
86
|
+
"character": 26
|
|
87
|
+
},
|
|
88
|
+
"name": "remote",
|
|
89
|
+
"type": {
|
|
90
|
+
"__schema": "KeywordTypeSchema",
|
|
91
|
+
"location": {
|
|
92
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
93
|
+
"line": 17,
|
|
94
|
+
"character": 34
|
|
95
|
+
},
|
|
96
|
+
"name": "string"
|
|
97
|
+
},
|
|
98
|
+
"isOptional": false,
|
|
99
|
+
"isSpread": false
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"returnType": {
|
|
103
|
+
"__schema": "InferenceTypeSchema",
|
|
104
|
+
"location": {
|
|
105
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
106
|
+
"line": 17,
|
|
107
|
+
"character": 3
|
|
108
|
+
},
|
|
109
|
+
"type": "Promise<unknown>"
|
|
110
|
+
},
|
|
111
|
+
"modifiers": [
|
|
112
|
+
"async"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"__schema": "VariableLikeSchema",
|
|
117
|
+
"location": {
|
|
118
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
119
|
+
"line": 32,
|
|
120
|
+
"character": 3
|
|
121
|
+
},
|
|
122
|
+
"signature": "(property) ClearCacheMain.slots: never[]",
|
|
123
|
+
"name": "slots",
|
|
124
|
+
"type": {
|
|
125
|
+
"__schema": "InferenceTypeSchema",
|
|
126
|
+
"location": {
|
|
127
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
128
|
+
"line": 32,
|
|
129
|
+
"character": 3
|
|
130
|
+
},
|
|
131
|
+
"type": "never[]"
|
|
132
|
+
},
|
|
133
|
+
"isOptional": true,
|
|
134
|
+
"defaultValue": "[]"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"__schema": "VariableLikeSchema",
|
|
138
|
+
"location": {
|
|
139
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
140
|
+
"line": 33,
|
|
141
|
+
"character": 3
|
|
142
|
+
},
|
|
143
|
+
"signature": "(property) ClearCacheMain.dependencies: Aspect[]",
|
|
144
|
+
"name": "dependencies",
|
|
145
|
+
"type": {
|
|
146
|
+
"__schema": "InferenceTypeSchema",
|
|
147
|
+
"location": {
|
|
148
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
149
|
+
"line": 33,
|
|
150
|
+
"character": 3
|
|
151
|
+
},
|
|
152
|
+
"type": "Aspect[]"
|
|
153
|
+
},
|
|
154
|
+
"isOptional": true,
|
|
155
|
+
"defaultValue": "[CLIAspect]"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"__schema": "VariableLikeSchema",
|
|
159
|
+
"location": {
|
|
160
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
161
|
+
"line": 34,
|
|
162
|
+
"character": 3
|
|
163
|
+
},
|
|
164
|
+
"signature": "(property) ClearCacheMain.runtime: RuntimeDefinition",
|
|
165
|
+
"name": "runtime",
|
|
166
|
+
"type": {
|
|
167
|
+
"__schema": "InferenceTypeSchema",
|
|
168
|
+
"location": {
|
|
169
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
170
|
+
"line": 34,
|
|
171
|
+
"character": 3
|
|
172
|
+
},
|
|
173
|
+
"type": "RuntimeDefinition"
|
|
174
|
+
},
|
|
175
|
+
"isOptional": true,
|
|
176
|
+
"defaultValue": "MainRuntime"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"__schema": "FunctionLikeSchema",
|
|
180
|
+
"location": {
|
|
181
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
182
|
+
"line": 35,
|
|
183
|
+
"character": 3
|
|
184
|
+
},
|
|
185
|
+
"signature": "(method) ClearCacheMain.provider([cli]: [CLIMain]): Promise<ClearCacheMain>",
|
|
186
|
+
"name": "provider",
|
|
187
|
+
"params": [
|
|
188
|
+
{
|
|
189
|
+
"__schema": "ParameterSchema",
|
|
190
|
+
"location": {
|
|
191
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
192
|
+
"line": 35,
|
|
193
|
+
"character": 25
|
|
194
|
+
},
|
|
195
|
+
"name": "[ cli ]",
|
|
196
|
+
"type": {
|
|
197
|
+
"__schema": "TupleTypeSchema",
|
|
198
|
+
"location": {
|
|
199
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
200
|
+
"line": 35,
|
|
201
|
+
"character": 32
|
|
202
|
+
},
|
|
203
|
+
"elements": [
|
|
204
|
+
{
|
|
205
|
+
"__schema": "TypeRefSchema",
|
|
206
|
+
"location": {
|
|
207
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
208
|
+
"line": 35,
|
|
209
|
+
"character": 33
|
|
210
|
+
},
|
|
211
|
+
"name": "CLIMain",
|
|
212
|
+
"componentId": {
|
|
213
|
+
"scope": "teambit.harmony",
|
|
214
|
+
"name": "cli"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"isOptional": false,
|
|
220
|
+
"isSpread": false
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"returnType": {
|
|
224
|
+
"__schema": "InferenceTypeSchema",
|
|
225
|
+
"location": {
|
|
226
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
227
|
+
"line": 35,
|
|
228
|
+
"character": 3
|
|
229
|
+
},
|
|
230
|
+
"type": "Promise<ClearCacheMain>"
|
|
231
|
+
},
|
|
232
|
+
"modifiers": [
|
|
233
|
+
"static",
|
|
234
|
+
"async"
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"extendsNodes": [],
|
|
239
|
+
"implementNodes": []
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"__schema": "UnImplementedSchema",
|
|
243
|
+
"location": {
|
|
244
|
+
"filePath": "index.ts",
|
|
245
|
+
"line": 4,
|
|
246
|
+
"character": 16
|
|
247
|
+
},
|
|
248
|
+
"name": "ClearCacheAspect",
|
|
249
|
+
"type": "Identifier"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"__schema": "VariableLikeSchema",
|
|
253
|
+
"location": {
|
|
254
|
+
"filePath": "clear-cache.aspect.ts",
|
|
255
|
+
"line": 3,
|
|
256
|
+
"character": 14
|
|
257
|
+
},
|
|
258
|
+
"signature": "const ClearCacheAspect: Aspect",
|
|
259
|
+
"name": "ClearCacheAspect",
|
|
260
|
+
"type": {
|
|
261
|
+
"__schema": "TypeRefSchema",
|
|
262
|
+
"location": {
|
|
263
|
+
"filePath": "clear-cache.aspect.ts",
|
|
264
|
+
"line": 3,
|
|
265
|
+
"character": 14
|
|
266
|
+
},
|
|
267
|
+
"name": "Aspect",
|
|
268
|
+
"componentId": {
|
|
269
|
+
"scope": "teambit.harmony",
|
|
270
|
+
"name": "harmony",
|
|
271
|
+
"version": "0.4.6"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"isOptional": false,
|
|
275
|
+
"defaultValue": "Aspect.create({\n id: 'teambit.bit/clear-cache',\n})"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"internals": []
|
|
279
|
+
},
|
|
280
|
+
"internals": [
|
|
281
|
+
{
|
|
282
|
+
"__schema": "ModuleSchema",
|
|
283
|
+
"location": {
|
|
284
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
285
|
+
"line": 1,
|
|
286
|
+
"character": 1
|
|
287
|
+
},
|
|
288
|
+
"exports": [
|
|
289
|
+
{
|
|
290
|
+
"__schema": "ClassSchema",
|
|
291
|
+
"location": {
|
|
292
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
293
|
+
"line": 12,
|
|
294
|
+
"character": 1
|
|
295
|
+
},
|
|
296
|
+
"doc": {
|
|
297
|
+
"__schema": "DocSchema",
|
|
298
|
+
"location": {
|
|
299
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
300
|
+
"line": 8,
|
|
301
|
+
"character": 1
|
|
302
|
+
},
|
|
303
|
+
"raw": "/**\n * avoid adding `workspace` / `scope` aspects as dependencies to this aspect.\n * the clear-cache command is often being used when the workspace/scope is not working properly.\n */",
|
|
304
|
+
"comment": "avoid adding `workspace` / `scope` aspects as dependencies to this aspect.\nthe clear-cache command is often being used when the workspace/scope is not working properly."
|
|
305
|
+
},
|
|
306
|
+
"signature": "class ClearCacheMain",
|
|
307
|
+
"name": "ClearCacheMain",
|
|
308
|
+
"members": [
|
|
309
|
+
{
|
|
310
|
+
"__schema": "FunctionLikeSchema",
|
|
311
|
+
"location": {
|
|
312
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
313
|
+
"line": 13,
|
|
314
|
+
"character": 3
|
|
315
|
+
},
|
|
316
|
+
"signature": "(method) ClearCacheMain.clearCache(): Promise<CacheClearResult>",
|
|
317
|
+
"name": "clearCache",
|
|
318
|
+
"params": [],
|
|
319
|
+
"returnType": {
|
|
320
|
+
"__schema": "TypeRefSchema",
|
|
321
|
+
"location": {
|
|
322
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
323
|
+
"line": 13,
|
|
324
|
+
"character": 23
|
|
325
|
+
},
|
|
326
|
+
"name": "Promise",
|
|
327
|
+
"typeArgs": [
|
|
328
|
+
{
|
|
329
|
+
"__schema": "TypeRefSchema",
|
|
330
|
+
"location": {
|
|
331
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
332
|
+
"line": 13,
|
|
333
|
+
"character": 31
|
|
334
|
+
},
|
|
335
|
+
"name": "CacheClearResult",
|
|
336
|
+
"packageName": "@teambit/legacy/dist/api/consumer/lib/clear-cache"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
"modifiers": [
|
|
341
|
+
"async"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"__schema": "FunctionLikeSchema",
|
|
346
|
+
"location": {
|
|
347
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
348
|
+
"line": 17,
|
|
349
|
+
"character": 3
|
|
350
|
+
},
|
|
351
|
+
"signature": "(method) ClearCacheMain.clearRemoteCache(remote: string): Promise<unknown>",
|
|
352
|
+
"name": "clearRemoteCache",
|
|
353
|
+
"params": [
|
|
354
|
+
{
|
|
355
|
+
"__schema": "ParameterSchema",
|
|
356
|
+
"location": {
|
|
357
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
358
|
+
"line": 17,
|
|
359
|
+
"character": 26
|
|
360
|
+
},
|
|
361
|
+
"name": "remote",
|
|
362
|
+
"type": {
|
|
363
|
+
"__schema": "KeywordTypeSchema",
|
|
364
|
+
"location": {
|
|
365
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
366
|
+
"line": 17,
|
|
367
|
+
"character": 34
|
|
368
|
+
},
|
|
369
|
+
"name": "string"
|
|
370
|
+
},
|
|
371
|
+
"isOptional": false,
|
|
372
|
+
"isSpread": false
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"returnType": {
|
|
376
|
+
"__schema": "InferenceTypeSchema",
|
|
377
|
+
"location": {
|
|
378
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
379
|
+
"line": 17,
|
|
380
|
+
"character": 3
|
|
381
|
+
},
|
|
382
|
+
"type": "Promise<unknown>"
|
|
383
|
+
},
|
|
384
|
+
"modifiers": [
|
|
385
|
+
"async"
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"__schema": "VariableLikeSchema",
|
|
390
|
+
"location": {
|
|
391
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
392
|
+
"line": 32,
|
|
393
|
+
"character": 3
|
|
394
|
+
},
|
|
395
|
+
"signature": "(property) ClearCacheMain.slots: never[]",
|
|
396
|
+
"name": "slots",
|
|
397
|
+
"type": {
|
|
398
|
+
"__schema": "InferenceTypeSchema",
|
|
399
|
+
"location": {
|
|
400
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
401
|
+
"line": 32,
|
|
402
|
+
"character": 3
|
|
403
|
+
},
|
|
404
|
+
"type": "never[]"
|
|
405
|
+
},
|
|
406
|
+
"isOptional": true,
|
|
407
|
+
"defaultValue": "[]"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"__schema": "VariableLikeSchema",
|
|
411
|
+
"location": {
|
|
412
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
413
|
+
"line": 33,
|
|
414
|
+
"character": 3
|
|
415
|
+
},
|
|
416
|
+
"signature": "(property) ClearCacheMain.dependencies: Aspect[]",
|
|
417
|
+
"name": "dependencies",
|
|
418
|
+
"type": {
|
|
419
|
+
"__schema": "InferenceTypeSchema",
|
|
420
|
+
"location": {
|
|
421
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
422
|
+
"line": 33,
|
|
423
|
+
"character": 3
|
|
424
|
+
},
|
|
425
|
+
"type": "Aspect[]"
|
|
426
|
+
},
|
|
427
|
+
"isOptional": true,
|
|
428
|
+
"defaultValue": "[CLIAspect]"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"__schema": "VariableLikeSchema",
|
|
432
|
+
"location": {
|
|
433
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
434
|
+
"line": 34,
|
|
435
|
+
"character": 3
|
|
436
|
+
},
|
|
437
|
+
"signature": "(property) ClearCacheMain.runtime: RuntimeDefinition",
|
|
438
|
+
"name": "runtime",
|
|
439
|
+
"type": {
|
|
440
|
+
"__schema": "InferenceTypeSchema",
|
|
441
|
+
"location": {
|
|
442
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
443
|
+
"line": 34,
|
|
444
|
+
"character": 3
|
|
445
|
+
},
|
|
446
|
+
"type": "RuntimeDefinition"
|
|
447
|
+
},
|
|
448
|
+
"isOptional": true,
|
|
449
|
+
"defaultValue": "MainRuntime"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"__schema": "FunctionLikeSchema",
|
|
453
|
+
"location": {
|
|
454
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
455
|
+
"line": 35,
|
|
456
|
+
"character": 3
|
|
457
|
+
},
|
|
458
|
+
"signature": "(method) ClearCacheMain.provider([cli]: [CLIMain]): Promise<ClearCacheMain>",
|
|
459
|
+
"name": "provider",
|
|
460
|
+
"params": [
|
|
461
|
+
{
|
|
462
|
+
"__schema": "ParameterSchema",
|
|
463
|
+
"location": {
|
|
464
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
465
|
+
"line": 35,
|
|
466
|
+
"character": 25
|
|
467
|
+
},
|
|
468
|
+
"name": "[ cli ]",
|
|
469
|
+
"type": {
|
|
470
|
+
"__schema": "TupleTypeSchema",
|
|
471
|
+
"location": {
|
|
472
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
473
|
+
"line": 35,
|
|
474
|
+
"character": 32
|
|
475
|
+
},
|
|
476
|
+
"elements": [
|
|
477
|
+
{
|
|
478
|
+
"__schema": "TypeRefSchema",
|
|
479
|
+
"location": {
|
|
480
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
481
|
+
"line": 35,
|
|
482
|
+
"character": 33
|
|
483
|
+
},
|
|
484
|
+
"name": "CLIMain",
|
|
485
|
+
"componentId": {
|
|
486
|
+
"scope": "teambit.harmony",
|
|
487
|
+
"name": "cli"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"isOptional": false,
|
|
493
|
+
"isSpread": false
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"returnType": {
|
|
497
|
+
"__schema": "InferenceTypeSchema",
|
|
498
|
+
"location": {
|
|
499
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
500
|
+
"line": 35,
|
|
501
|
+
"character": 3
|
|
502
|
+
},
|
|
503
|
+
"type": "Promise<ClearCacheMain>"
|
|
504
|
+
},
|
|
505
|
+
"modifiers": [
|
|
506
|
+
"static",
|
|
507
|
+
"async"
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"extendsNodes": [],
|
|
512
|
+
"implementNodes": []
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"internals": [
|
|
516
|
+
{
|
|
517
|
+
"__schema": "UnImplementedSchema",
|
|
518
|
+
"location": {
|
|
519
|
+
"filePath": "clear-cache.main.runtime.ts",
|
|
520
|
+
"line": 42,
|
|
521
|
+
"character": 1
|
|
522
|
+
},
|
|
523
|
+
"name": "ClearCacheAspect.addRuntime(ClearCacheMain);",
|
|
524
|
+
"type": "ExpressionStatement"
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"__schema": "ModuleSchema",
|
|
530
|
+
"location": {
|
|
531
|
+
"filePath": "clear-cache.aspect.ts",
|
|
532
|
+
"line": 1,
|
|
533
|
+
"character": 1
|
|
534
|
+
},
|
|
535
|
+
"exports": [
|
|
536
|
+
{
|
|
537
|
+
"__schema": "VariableLikeSchema",
|
|
538
|
+
"location": {
|
|
539
|
+
"filePath": "clear-cache.aspect.ts",
|
|
540
|
+
"line": 3,
|
|
541
|
+
"character": 14
|
|
542
|
+
},
|
|
543
|
+
"signature": "const ClearCacheAspect: Aspect",
|
|
544
|
+
"name": "ClearCacheAspect",
|
|
545
|
+
"type": {
|
|
546
|
+
"__schema": "TypeRefSchema",
|
|
547
|
+
"location": {
|
|
548
|
+
"filePath": "clear-cache.aspect.ts",
|
|
549
|
+
"line": 3,
|
|
550
|
+
"character": 14
|
|
551
|
+
},
|
|
552
|
+
"name": "Aspect",
|
|
553
|
+
"componentId": {
|
|
554
|
+
"scope": "teambit.harmony",
|
|
555
|
+
"name": "harmony",
|
|
556
|
+
"version": "0.4.6"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"isOptional": false,
|
|
560
|
+
"defaultValue": "Aspect.create({\n id: 'teambit.bit/clear-cache',\n})"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"internals": []
|
|
564
|
+
}
|
|
565
|
+
],
|
|
566
|
+
"componentId": {
|
|
567
|
+
"scope": "teambit.workspace",
|
|
568
|
+
"name": "clear-cache",
|
|
569
|
+
"version": "0.0.404"
|
|
570
|
+
},
|
|
571
|
+
"taggedModuleExports": []
|
|
572
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ClearCacheCmd","constructor","clearCache","extendedDescription","report","arg","remote","success","clearRemoteCache","chalk","green","red","succeed","failed","getSuccessOutput","length","title","output","map","str","join","bold","getFailedOutput","exports"],"sources":["clear-cache-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { ClearCacheMain } from './clear-cache.main.runtime';\n\nexport default class ClearCacheCmd implements Command {\n name = 'clear-cache';\n description = \"clears Bit's cache from current working machine\";\n group = 'general';\n extendedDescription: string;\n alias = 'cc';\n options = [['r', 'remote <remote-name>', 'clear memory cache from a remote scope']] as CommandOptions;\n loader = false;\n skipWorkspace = true;\n helpUrl = 'reference/workspace/clearing-cache';\n\n constructor(private clearCache: ClearCacheMain) {\n this.extendedDescription = `The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash`;\n }\n\n async report(arg, { remote }: { remote?: string }): Promise<string> {\n if (remote) {\n const success = await this.clearCache.clearRemoteCache(remote);\n if (success) {\n return chalk.green(`successfully cleaned the cache of \"${remote}\"`);\n }\n return chalk.red(`failed cleaning the cache of \"${remote}\"`);\n }\n const { succeed, failed } = await this.clearCache.clearCache();\n const getSuccessOutput = () => {\n if (!succeed.length) return '';\n const title = 'the following cache(s) have been cleared:';\n const output = succeed.map((str) => ` ✔ ${str}`).join('\\n');\n return chalk.green(`${chalk.bold(title)}\\n${output}`);\n };\n const getFailedOutput = () => {\n if (!failed.length) return '';\n const title = 'the following cache(s) failed to clear:';\n const output = failed.map((str) => ` X ${str}`).join('\\n');\n return chalk.red(`${chalk.bold(title)}\\n${output}`);\n };\n return `${getSuccessOutput()}\\n${getFailedOutput()}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AA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;IACD,OAAQ,GAAEH,gBAAgB,CAAC,CAAE,KAAIQ,eAAe,CAAC,CAAE,EAAC;EACtD;AACF;AAACC,OAAA,CAAA5C,OAAA,GAAAqB,aAAA"}
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ClearCacheCmd","constructor","clearCache","extendedDescription","report","arg","remote","success","clearRemoteCache","chalk","green","red","succeed","failed","getSuccessOutput","length","title","output","map","str","join","bold","getFailedOutput","exports"],"sources":["clear-cache-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { ClearCacheMain } from './clear-cache.main.runtime';\n\nexport default class ClearCacheCmd implements Command {\n name = 'clear-cache';\n description = \"clears Bit's cache from current working machine\";\n group = 'general';\n extendedDescription: string;\n alias = 'cc';\n options = [['r', 'remote <remote-name>', 'clear memory cache from a remote scope']] as CommandOptions;\n loader = false;\n skipWorkspace = true;\n helpUrl = 'reference/workspace/clearing-cache';\n\n constructor(private clearCache: ClearCacheMain) {\n this.extendedDescription = `The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash`;\n }\n\n async report(arg, { remote }: { remote?: string }): Promise<string> {\n if (remote) {\n const success = await this.clearCache.clearRemoteCache(remote);\n if (success) {\n return chalk.green(`successfully cleaned the cache of \"${remote}\"`);\n }\n return chalk.red(`failed cleaning the cache of \"${remote}\"`);\n }\n const { succeed, failed } = await this.clearCache.clearCache();\n const getSuccessOutput = () => {\n if (!succeed.length) return '';\n const title = 'the following cache(s) have been cleared:';\n const output = succeed.map((str) => ` ✔ ${str}`).join('\\n');\n return chalk.green(`${chalk.bold(title)}\\n${output}`);\n };\n const getFailedOutput = () => {\n if (!failed.length) return '';\n const title = 'the following cache(s) failed to clear:';\n const output = failed.map((str) => ` X ${str}`).join('\\n');\n return chalk.red(`${chalk.bold(title)}\\n${output}`);\n };\n return `${getSuccessOutput()}\\n${getFailedOutput()}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAGX,MAAMW,aAAa,CAAoB;EAWpDC,WAAWA,CAASC,UAA0B,EAAE;IAAA,KAA5BA,UAA0B,G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M,CAACE,MAAM,EAAE,OAAO,EAAE;MAC7B,MAAMC,KAAK,GAAG,yCAAyC;MACvD,MAAMC,MAAM,GAAGJ,MAAM,CAACK,GAAG,CAAEC,GAAG,IAAM,OAAMA,GAAI,EAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;MAC3D,OAAOX,gBAAK,CAACE,GAAG,CAAE,GAAEF,gBAAK,CAACY,IAAI,CAACL,KAAK,CAAE,KAAIC,MAAO,EAAC,CAAC;IACrD,CAAC;IACD,OAAQ,GAAEH,gBAAgB,CAAC,CAAE,KAAIQ,eAAe,CAAC,CAAE,EAAC;EACtD;AACF;AAACC,OAAA,CAAA5C,OAAA,GAAAqB,aAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_harmony","data","require","ClearCacheAspect","exports","Aspect","create","id"],"sources":["clear-cache.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ClearCacheAspect = Aspect.create({\n id: 'teambit.bit/clear-cache',\n});\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAC5CC,EAAE,EAAE;AACN,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_harmony","data","require","ClearCacheAspect","exports","Aspect","create","id"],"sources":["clear-cache.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ClearCacheAspect = Aspect.create({\n id: 'teambit.bit/clear-cache',\n});\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAC5CC,EAAE,EAAE;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["clear-cache.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/clean-cache.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAAyD,CAAE,CACvF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA"}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["clear-cache.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/clean-cache.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAAyD,CAAE,CACvF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_clearCache","_getRemoteByName","_interopRequireDefault","_consumer","_clearCacheCmd","_clearCache2","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ClearCacheMain","clearCache","clearRemoteCache","remote","maybeConsumer","getConsumerGracefully","remoteObj","getRemoteByName","result","action","loadConsumerIfExist","err","undefined","provider","cli","clearCacheMain","register","ClearCacheCmd","exports","CLIAspect","MainRuntime","ClearCacheAspect","addRuntime"],"sources":["clear-cache.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { clearCache, CacheClearResult } from '@teambit/legacy/dist/api/consumer/lib/clear-cache';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport { loadConsumerIfExist, Consumer } from '@teambit/legacy/dist/consumer';\nimport ClearCacheCmd from './clear-cache-cmd';\nimport { ClearCacheAspect } from './clear-cache.aspect';\n\n/**\n * avoid adding `workspace` / `scope` aspects as dependencies to this aspect.\n * the clear-cache command is often being used when the workspace/scope is not working properly.\n */\nexport class ClearCacheMain {\n async clearCache(): Promise<CacheClearResult> {\n return clearCache();\n }\n\n async clearRemoteCache(remote: string) {\n const maybeConsumer = await this.getConsumerGracefully();\n const remoteObj = await getRemoteByName(remote, maybeConsumer);\n const result = await remoteObj.action('ClearCacheAction', {});\n return result;\n }\n\n private async getConsumerGracefully(): Promise<Consumer | undefined> {\n try {\n return await loadConsumerIfExist();\n } catch (err: any) {\n return undefined;\n }\n }\n\n static slots = [];\n static dependencies = [CLIAspect];\n static runtime = MainRuntime;\n static async provider([cli]: [CLIMain]) {\n const clearCacheMain = new ClearCacheMain();\n cli.register(new ClearCacheCmd(clearCacheMain));\n return clearCacheMain;\n }\n}\n\nClearCacheAspect.addRuntime(ClearCacheMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,iBAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,gBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,eAAA;EAAA,M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C,MAAc,EAAE;IACrC,MAAMC,aAAa,GAAG,MAAM,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,SAAS,GAAG,MAAM,IAAAC,0BAAe,EAACJ,MAAM,EAAEC,aAAa,CAAC;IAC9D,MAAMI,MAAM,GAAG,MAAMF,SAAS,CAACG,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;IAC7D,OAAOD,MAAM;EACf;EAEA,MAAcH,qBAAqBA,CAAA,EAAkC;IACnE,IAAI;MACF,OAAO,MAAM,IAAAK,+BAAmB,EAAC,CAAC;IACpC,CAAC,CAAC,OAAOC,GAAQ,EAAE;MACjB,OAAOC,SAAS;IAClB;EACF;EAKA,aAAaC,QAAQA,CAAC,CAACC,GAAG,CAAY,EAAE;IACtC,MAAMC,cAAc,GAAG,IAAIf,cAAc,CAAC,CAAC;IAC3Cc,GAAG,CAACE,QAAQ,CAAC,KAAIC,wBAAa,EAACF,cAAc,CAAC,CAAC;IAC/C,OAAOA,cAAc;EACvB;AACF;AAACG,OAAA,CAAAlB,cAAA,GAAAA,cAAA;AAAApB,eAAA,CA5BYoB,cAAc,WAoBV,EAAE;AAAApB,eAAA,CApBNoB,cAAc,kBAqBH,CAACmB,gBAAS,CAAC;AAAAvC,eAAA,CArBtBoB,cAAc,aAsBRoB,kBAAW;AAQ9BC,+BAAgB,CAACC,UAAU,CAACtB,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_clearCache","_getRemoteByName","_interopRequireDefault","_consumer","_clearCacheCmd","_clearCache2","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ClearCacheMain","clearCache","clearRemoteCache","remote","maybeConsumer","getConsumerGracefully","remoteObj","getRemoteByName","result","action","loadConsumerIfExist","err","undefined","provider","cli","clearCacheMain","register","ClearCacheCmd","exports","CLIAspect","MainRuntime","ClearCacheAspect","addRuntime"],"sources":["clear-cache.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { clearCache, CacheClearResult } from '@teambit/legacy/dist/api/consumer/lib/clear-cache';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport { loadConsumerIfExist, Consumer } from '@teambit/legacy/dist/consumer';\nimport ClearCacheCmd from './clear-cache-cmd';\nimport { ClearCacheAspect } from './clear-cache.aspect';\n\n/**\n * avoid adding `workspace` / `scope` aspects as dependencies to this aspect.\n * the clear-cache command is often being used when the workspace/scope is not working properly.\n */\nexport class ClearCacheMain {\n async clearCache(): Promise<CacheClearResult> {\n return clearCache();\n }\n\n async clearRemoteCache(remote: string) {\n const maybeConsumer = await this.getConsumerGracefully();\n const remoteObj = await getRemoteByName(remote, maybeConsumer);\n const result = await remoteObj.action('ClearCacheAction', {});\n return result;\n }\n\n private async getConsumerGracefully(): Promise<Consumer | undefined> {\n try {\n return await loadConsumerIfExist();\n } catch (err: any) {\n return undefined;\n }\n }\n\n static slots = [];\n static dependencies = [CLIAspect];\n static runtime = MainRuntime;\n static async provider([cli]: [CLIMain]) {\n const clearCacheMain = new ClearCacheMain();\n cli.register(new ClearCacheCmd(clearCacheMain));\n return clearCacheMain;\n }\n}\n\nClearCacheAspect.addRuntime(ClearCacheMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,iBAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,gBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EA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AAO,MAAA,EAAAV,CAAA;AAExD;AACA;AACA;AACA;AACO,MAAMW,cAAc,CAAC;EAC1B,MAAMC,UAAUA,CAAA,EAA8B;IAC5C,OAAO,IAAAA,wBAAU,EAAC,CAAC;EACrB;EAEA,MAAMC,gBAAgBA,CAACC,MAAc,EAAE;IACrC,MAAMC,aAAa,GAAG,MAAM,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,SAAS,GAAG,MAAM,IAAAC,0BAAe,EAACJ,MAAM,EAAEC,aAAa,CAAC;IAC9D,MAAMI,MAAM,GAAG,MAAMF,SAAS,CAACG,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;IAC7D,OAAOD,MAAM;EACf;EAEA,MAAcH,qBAAqBA,CAAA,EAAkC;IACnE,IAAI;MACF,OAAO,MAAM,IAAAK,+BAAmB,EAAC,CAAC;IACpC,CAAC,CAAC,OAAOC,GAAQ,EAAE;MACjB,OAAOC,SAAS;IAClB;EACF;EAKA,aAAaC,QAAQA,CAAC,CAACC,GAAG,CAAY,EAAE;IACtC,MAAMC,cAAc,GAAG,IAAIf,cAAc,CAAC,CAAC;IAC3Cc,GAAG,CAACE,QAAQ,CAAC,KAAIC,wBAAa,EAACF,cAAc,CAAC,CAAC;IAC/C,OAAOA,cAAc;EACvB;AACF;AAACG,OAAA,CAAAlB,cAAA,GAAAA,cAAA;AAAApB,eAAA,CA5BYoB,cAAc,WAoBV,EAAE;AAAApB,eAAA,CApBNoB,cAAc,kBAqBH,CAACmB,gBAAS,CAAC;AAAAvC,eAAA,CArBtBoB,cAAc,aAsBRoB,kBAAW;AAQ9BC,+BAAgB,CAACC,UAAU,CAACtB,cAAc,CAAC","ignoreList":[]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clearCache","data","require","_default","exports","default","ClearCacheAspect"],"sources":["index.ts"],"sourcesContent":["import { ClearCacheAspect } from './clear-cache.aspect';\n\nexport type { ClearCacheMain } from './clear-cache.main.runtime';\nexport default ClearCacheAspect;\nexport { ClearCacheAspect };\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAwD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGzCC,8BAAgB"}
|
|
1
|
+
{"version":3,"names":["_clearCache","data","require","_default","exports","default","ClearCacheAspect"],"sources":["index.ts"],"sourcesContent":["import { ClearCacheAspect } from './clear-cache.aspect';\n\nexport type { ClearCacheMain } from './clear-cache.main.runtime';\nexport default ClearCacheAspect;\nexport { ClearCacheAspect };\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAwD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGzCC,8BAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.workspace_clear-cache@0.0.404/dist/clear-cache.composition.js';
|
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.workspace_clear-cache@0.0.404/dist/clear-cache.docs.mdx';
|
|
3
|
+
|
|
4
|
+
export const compositions = [compositions_0];
|
|
5
|
+
export const overview = [overview_0];
|
|
6
|
+
|
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/clear-cache",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.404",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/clear-cache",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "clear-cache",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.404"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/mocha": "9.1.0",
|
|
17
17
|
"chai": "4.3.0",
|
|
18
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
18
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.27"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.402/dist/clear-cache.composition.js';
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.402/dist/clear-cache.docs.mdx';
|
|
3
|
-
|
|
4
|
-
export const compositions = [compositions_0];
|
|
5
|
-
export const overview = [overview_0];
|
|
6
|
-
|
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|