@teambit/clear-cache 0.0.405 → 0.0.406
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/preview/teambit_workspace_clear_cache-preview.js +1 -1
- package/artifacts/schema.json +5 -15
- package/dist/clear-cache-cmd.js +1 -1
- package/dist/clear-cache-cmd.js.map +1 -1
- package/dist/clear-cache.main.runtime.js +1 -1
- package/dist/clear-cache.main.runtime.js.map +1 -1
- package/dist/preview-1712719054377.js +7 -0
- package/package.json +3 -3
- package/tsconfig.json +4 -2
- package/dist/clear-cache-cmd.d.ts +0 -18
- package/dist/clear-cache.aspect.d.ts +0 -2
- package/dist/clear-cache.composition.d.ts +0 -1
- package/dist/clear-cache.main.runtime.d.ts +0 -15
- package/dist/index.d.ts +0 -4
- package/dist/preview-1710232535180.js +0 -7
|
@@ -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.workspace/clear-cache@0.0.
|
|
3
|
+
<testsuite name="teambit.workspace/clear-cache@0.0.406" 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={77059:(e,t,o)=>{var r={id:"teambit.workspace/clear-cache@0.0.406",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(77059);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})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -59,8 +59,7 @@
|
|
|
59
59
|
"line": 13,
|
|
60
60
|
"character": 31
|
|
61
61
|
},
|
|
62
|
-
"name": "CacheClearResult"
|
|
63
|
-
"packageName": "@teambit/legacy/dist/api/consumer/lib/clear-cache"
|
|
62
|
+
"name": "CacheClearResult"
|
|
64
63
|
}
|
|
65
64
|
]
|
|
66
65
|
},
|
|
@@ -208,11 +207,7 @@
|
|
|
208
207
|
"line": 35,
|
|
209
208
|
"character": 33
|
|
210
209
|
},
|
|
211
|
-
"name": "CLIMain"
|
|
212
|
-
"componentId": {
|
|
213
|
-
"scope": "teambit.harmony",
|
|
214
|
-
"name": "cli"
|
|
215
|
-
}
|
|
210
|
+
"name": "CLIMain"
|
|
216
211
|
}
|
|
217
212
|
]
|
|
218
213
|
},
|
|
@@ -332,8 +327,7 @@
|
|
|
332
327
|
"line": 13,
|
|
333
328
|
"character": 31
|
|
334
329
|
},
|
|
335
|
-
"name": "CacheClearResult"
|
|
336
|
-
"packageName": "@teambit/legacy/dist/api/consumer/lib/clear-cache"
|
|
330
|
+
"name": "CacheClearResult"
|
|
337
331
|
}
|
|
338
332
|
]
|
|
339
333
|
},
|
|
@@ -481,11 +475,7 @@
|
|
|
481
475
|
"line": 35,
|
|
482
476
|
"character": 33
|
|
483
477
|
},
|
|
484
|
-
"name": "CLIMain"
|
|
485
|
-
"componentId": {
|
|
486
|
-
"scope": "teambit.harmony",
|
|
487
|
-
"name": "cli"
|
|
488
|
-
}
|
|
478
|
+
"name": "CLIMain"
|
|
489
479
|
}
|
|
490
480
|
]
|
|
491
481
|
},
|
|
@@ -566,7 +556,7 @@
|
|
|
566
556
|
"componentId": {
|
|
567
557
|
"scope": "teambit.workspace",
|
|
568
558
|
"name": "clear-cache",
|
|
569
|
-
"version": "0.0.
|
|
559
|
+
"version": "0.0.406"
|
|
570
560
|
},
|
|
571
561
|
"taggedModuleExports": []
|
|
572
562
|
}
|
package/dist/clear-cache-cmd.js
CHANGED
|
@@ -13,7 +13,7 @@ function _chalk() {
|
|
|
13
13
|
}
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
18
|
class ClearCacheCmd {
|
|
19
19
|
constructor(clearCache) {
|
|
@@ -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","
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","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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
|
|
48
48
|
}
|
|
49
49
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
50
50
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
51
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
51
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
52
52
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
53
53
|
/**
|
|
54
54
|
* avoid adding `workspace` / `scope` aspects as dependencies to this aspect.
|
|
@@ -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","
|
|
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","r","e","Symbol","toPrimitive","call","TypeError","String","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,O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,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":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.406/dist/clear-cache.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.406/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.406",
|
|
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.406"
|
|
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.30"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,6 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
38
|
-
]
|
|
39
|
+
],
|
|
40
|
+
"references": []
|
|
39
41
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
|
-
import { ClearCacheMain } from './clear-cache.main.runtime';
|
|
3
|
-
export default class ClearCacheCmd implements Command {
|
|
4
|
-
private clearCache;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
group: string;
|
|
8
|
-
extendedDescription: string;
|
|
9
|
-
alias: string;
|
|
10
|
-
options: CommandOptions;
|
|
11
|
-
loader: boolean;
|
|
12
|
-
skipWorkspace: boolean;
|
|
13
|
-
helpUrl: string;
|
|
14
|
-
constructor(clearCache: ClearCacheMain);
|
|
15
|
-
report(arg: any, { remote }: {
|
|
16
|
-
remote?: string;
|
|
17
|
-
}): Promise<string>;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Logo: () => JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CLIMain } from '@teambit/cli';
|
|
2
|
-
import { CacheClearResult } from '@teambit/legacy/dist/api/consumer/lib/clear-cache';
|
|
3
|
-
/**
|
|
4
|
-
* avoid adding `workspace` / `scope` aspects as dependencies to this aspect.
|
|
5
|
-
* the clear-cache command is often being used when the workspace/scope is not working properly.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ClearCacheMain {
|
|
8
|
-
clearCache(): Promise<CacheClearResult>;
|
|
9
|
-
clearRemoteCache(remote: string): Promise<unknown>;
|
|
10
|
-
private getConsumerGracefully;
|
|
11
|
-
static slots: never[];
|
|
12
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
13
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
14
|
-
static provider([cli]: [CLIMain]): Promise<ClearCacheMain>;
|
|
15
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.workspace_clear-cache@0.0.405/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.405/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"}]};
|