@teambit/clear-cache 0.0.406 → 0.0.407
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 +15 -5
- package/dist/clear-cache-cmd.d.ts +18 -0
- package/dist/clear-cache.aspect.d.ts +2 -0
- package/dist/clear-cache.composition.d.ts +1 -0
- package/dist/clear-cache.main.runtime.d.ts +15 -0
- package/dist/index.d.ts +4 -0
- package/dist/{preview-1712719054377.js → preview-1712822929999.js} +2 -2
- package/package.json +3 -3
- package/tsconfig.json +2 -4
|
@@ -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.407" 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={17659:(e,t,o)=>{var r={id:"teambit.workspace/clear-cache@0.0.407",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(17659);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,7 +59,8 @@
|
|
|
59
59
|
"line": 13,
|
|
60
60
|
"character": 31
|
|
61
61
|
},
|
|
62
|
-
"name": "CacheClearResult"
|
|
62
|
+
"name": "CacheClearResult",
|
|
63
|
+
"packageName": "@teambit/legacy/dist/api/consumer/lib/clear-cache"
|
|
63
64
|
}
|
|
64
65
|
]
|
|
65
66
|
},
|
|
@@ -207,7 +208,11 @@
|
|
|
207
208
|
"line": 35,
|
|
208
209
|
"character": 33
|
|
209
210
|
},
|
|
210
|
-
"name": "CLIMain"
|
|
211
|
+
"name": "CLIMain",
|
|
212
|
+
"componentId": {
|
|
213
|
+
"scope": "teambit.harmony",
|
|
214
|
+
"name": "cli"
|
|
215
|
+
}
|
|
211
216
|
}
|
|
212
217
|
]
|
|
213
218
|
},
|
|
@@ -327,7 +332,8 @@
|
|
|
327
332
|
"line": 13,
|
|
328
333
|
"character": 31
|
|
329
334
|
},
|
|
330
|
-
"name": "CacheClearResult"
|
|
335
|
+
"name": "CacheClearResult",
|
|
336
|
+
"packageName": "@teambit/legacy/dist/api/consumer/lib/clear-cache"
|
|
331
337
|
}
|
|
332
338
|
]
|
|
333
339
|
},
|
|
@@ -475,7 +481,11 @@
|
|
|
475
481
|
"line": 35,
|
|
476
482
|
"character": 33
|
|
477
483
|
},
|
|
478
|
-
"name": "CLIMain"
|
|
484
|
+
"name": "CLIMain",
|
|
485
|
+
"componentId": {
|
|
486
|
+
"scope": "teambit.harmony",
|
|
487
|
+
"name": "cli"
|
|
488
|
+
}
|
|
479
489
|
}
|
|
480
490
|
]
|
|
481
491
|
},
|
|
@@ -556,7 +566,7 @@
|
|
|
556
566
|
"componentId": {
|
|
557
567
|
"scope": "teambit.workspace",
|
|
558
568
|
"name": "clear-cache",
|
|
559
|
-
"version": "0.0.
|
|
569
|
+
"version": "0.0.407"
|
|
560
570
|
},
|
|
561
571
|
"taggedModuleExports": []
|
|
562
572
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
ADDED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.407/dist/clear-cache.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.407/dist/clear-cache.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/clear-cache",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.407",
|
|
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.407"
|
|
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.33"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
24
|
-
"composite": true
|
|
23
|
+
"noImplicitAny": false
|
|
25
24
|
},
|
|
26
25
|
"exclude": [
|
|
27
26
|
"artifacts",
|
|
@@ -36,6 +35,5 @@
|
|
|
36
35
|
"include": [
|
|
37
36
|
"**/*",
|
|
38
37
|
"**/*.json"
|
|
39
|
-
]
|
|
40
|
-
"references": []
|
|
38
|
+
]
|
|
41
39
|
}
|