@teambit/clear-cache 0.0.426 → 0.0.428
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.js +2 -3
- package/dist/clear-cache-cmd.js.map +1 -1
- package/dist/clear-cache.js +1 -14
- package/dist/clear-cache.js.map +1 -1
- package/dist/{preview-1734491866611.js → preview-1734878977623.js} +2 -2
- package/package.json +8 -9
|
@@ -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.428" 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={2152:(e,t,o)=>{var r={id:"teambit.workspace/clear-cache@0.0.428",homepage:"https://bit.cloud/teambit/workspace/clear-cache",exported:!0};function n(){const e=c(o(1594));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},1594: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={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var n={};o.r(n),o.d(n,{default:()=>d});var c=o(2152);o(1594);const i=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var s=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(null,arguments)}var l={},u="wrapper";function d(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={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)o=c[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,s);return(0,i.mdx)(u,p({},l,o,{components:t,mdxType:"MDXLayout"}),(0,i.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const f=[c],m=[n],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
"line": 13,
|
|
70
70
|
"character": 31
|
|
71
71
|
},
|
|
72
|
-
"name": "CacheClearResult"
|
|
72
|
+
"name": "CacheClearResult",
|
|
73
|
+
"internalFilePath": "clear-cache.ts"
|
|
73
74
|
}
|
|
74
75
|
]
|
|
75
76
|
},
|
|
@@ -217,7 +218,11 @@
|
|
|
217
218
|
"line": 35,
|
|
218
219
|
"character": 33
|
|
219
220
|
},
|
|
220
|
-
"name": "CLIMain"
|
|
221
|
+
"name": "CLIMain",
|
|
222
|
+
"componentId": {
|
|
223
|
+
"scope": "teambit.harmony",
|
|
224
|
+
"name": "cli"
|
|
225
|
+
}
|
|
221
226
|
}
|
|
222
227
|
]
|
|
223
228
|
},
|
|
@@ -349,7 +354,8 @@
|
|
|
349
354
|
"line": 13,
|
|
350
355
|
"character": 31
|
|
351
356
|
},
|
|
352
|
-
"name": "CacheClearResult"
|
|
357
|
+
"name": "CacheClearResult",
|
|
358
|
+
"internalFilePath": "clear-cache.ts"
|
|
353
359
|
}
|
|
354
360
|
]
|
|
355
361
|
},
|
|
@@ -497,7 +503,11 @@
|
|
|
497
503
|
"line": 35,
|
|
498
504
|
"character": 33
|
|
499
505
|
},
|
|
500
|
-
"name": "CLIMain"
|
|
506
|
+
"name": "CLIMain",
|
|
507
|
+
"componentId": {
|
|
508
|
+
"scope": "teambit.harmony",
|
|
509
|
+
"name": "cli"
|
|
510
|
+
}
|
|
501
511
|
}
|
|
502
512
|
]
|
|
503
513
|
},
|
|
@@ -578,7 +588,7 @@
|
|
|
578
588
|
"componentId": {
|
|
579
589
|
"scope": "teambit.workspace",
|
|
580
590
|
"name": "clear-cache",
|
|
581
|
-
"version": "0.0.
|
|
591
|
+
"version": "0.0.428"
|
|
582
592
|
},
|
|
583
593
|
"taggedModuleExports": []
|
|
584
594
|
}
|
package/dist/clear-cache-cmd.js
CHANGED
|
@@ -28,9 +28,8 @@ class ClearCacheCmd {
|
|
|
28
28
|
_defineProperty(this, "skipWorkspace", true);
|
|
29
29
|
_defineProperty(this, "helpUrl", 'reference/workspace/clearing-cache');
|
|
30
30
|
this.extendedDescription = `The following gets removed by this command:
|
|
31
|
-
1)
|
|
32
|
-
2)
|
|
33
|
-
3) scope's index file, which maps the component-id:object-hash`;
|
|
31
|
+
1) components cache on the filesystem (mainly the dependencies graph and docs)
|
|
32
|
+
2) scope's index file, which maps the component-id:object-hash`;
|
|
34
33
|
}
|
|
35
34
|
async report(arg, {
|
|
36
35
|
remote
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","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)
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","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) components cache on the filesystem (mainly the dependencies graph and docs)\n2) 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,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GA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|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
function _v8CompileCache() {
|
|
15
|
-
const data = require("v8-compile-cache");
|
|
16
|
-
_v8CompileCache = function () {
|
|
17
|
-
return data;
|
|
18
|
-
};
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
14
|
function _legacy() {
|
|
22
15
|
const data = require("@teambit/legacy.consumer");
|
|
23
16
|
_legacy = function () {
|
|
@@ -56,14 +49,13 @@ function _scope() {
|
|
|
56
49
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
57
50
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
58
51
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
59
|
-
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); }
|
|
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); }
|
|
60
53
|
class CacheClearer {
|
|
61
54
|
constructor() {
|
|
62
55
|
_defineProperty(this, "cacheCleared", []);
|
|
63
56
|
_defineProperty(this, "cacheClearedFailures", []);
|
|
64
57
|
}
|
|
65
58
|
async clear() {
|
|
66
|
-
this.clearV8CompiledCode();
|
|
67
59
|
await this.clearFSCache();
|
|
68
60
|
await this.clearScopeIndex();
|
|
69
61
|
return {
|
|
@@ -71,11 +63,6 @@ class CacheClearer {
|
|
|
71
63
|
failed: this.cacheClearedFailures
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
|
-
clearV8CompiledCode() {
|
|
75
|
-
const cacheDir = _v8CompileCache().__TEST__.getCacheDir();
|
|
76
|
-
_fsExtra().default.removeSync(cacheDir);
|
|
77
|
-
this.cacheCleared.push('v8-compile-cache code');
|
|
78
|
-
}
|
|
79
66
|
async clearFSCache() {
|
|
80
67
|
const fsCachePath = await this.getFSCachePath();
|
|
81
68
|
if (fsCachePath) {
|
package/dist/clear-cache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_legacy","_workspaceModules","_workspaceModules2","_scopeModules","_scope","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CacheClearer","constructor","clear","clearFSCache","clearScopeIndex","succeed","cacheCleared","failed","cacheClearedFailures","fsCachePath","getFSCachePath","fs","removeSync","push","getConsumerGracefully","loadConsumerIfExist","undefined","consumer","componentFsCache","basePath","consumerInfo","getWorkspaceInfo","process","cwd","scopePath","findScopePath","path","FsCache","ScopeIndex","reset","err","message","clearCache"],"sources":["clear-cache.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport { Consumer, loadConsumerIfExist } from '@teambit/legacy.consumer';\nimport { getWorkspaceInfo } from '@teambit/workspace.modules.workspace-locator';\nimport { FsCache } from '@teambit/workspace.modules.fs-cache';\nimport { findScopePath } from '@teambit/scope.modules.find-scope-path';\nimport { ScopeIndex } from '@teambit/scope.objects';\n\nexport type CacheClearResult = { succeed: string[]; failed: string[] };\n\nclass CacheClearer {\n private cacheCleared: string[] = [];\n private cacheClearedFailures: string[] = [];\n async clear(): Promise<CacheClearResult> {\n await this.clearFSCache();\n await this.clearScopeIndex();\n\n return { succeed: this.cacheCleared, failed: this.cacheClearedFailures };\n }\n\n private async clearFSCache() {\n const fsCachePath = await this.getFSCachePath();\n if (fsCachePath) {\n fs.removeSync(fsCachePath);\n this.cacheCleared.push('components cache on the filesystem');\n }\n }\n\n private async getConsumerGracefully(): Promise<Consumer | undefined> {\n try {\n return await loadConsumerIfExist();\n } catch {\n return undefined;\n }\n }\n\n private async getFSCachePath(): Promise<string | null> {\n const consumer = await this.getConsumerGracefully();\n if (consumer) {\n return consumer.componentFsCache.basePath;\n }\n const consumerInfo = await getWorkspaceInfo(process.cwd());\n if (!consumerInfo) {\n return null; // no workspace around, nothing to do.\n }\n const scopePath = findScopePath(consumerInfo.path);\n if (!scopePath) return null;\n const componentFsCache = new FsCache(scopePath);\n return componentFsCache.basePath;\n }\n\n private async clearScopeIndex() {\n try {\n const scopePath = findScopePath(process.cwd());\n if (!scopePath) return;\n await ScopeIndex.reset(scopePath);\n this.cacheCleared.push('scope-index file');\n } catch (err: any) {\n this.cacheClearedFailures.push(`scope-index file (err: ${err.message})`);\n }\n }\n}\n\nexport async function clearCache(): Promise<CacheClearResult> {\n return new CacheClearer().clear();\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,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,kBAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,iBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,mBAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,kBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,cAAA;EAAA,MAAAN,IAAA,GAAAE,O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AACL,SAAS,CAAC;MACjC,IAAI,CAAClB,YAAY,CAACO,IAAI,CAAC,kBAAkB,CAAC;IAC5C,CAAC,CAAC,OAAOiB,GAAQ,EAAE;MACjB,IAAI,CAACtB,oBAAoB,CAACK,IAAI,CAAC,0BAA0BiB,GAAG,CAACC,OAAO,GAAG,CAAC;IAC1E;EACF;AACF;AAEO,eAAeC,UAAUA,CAAA,EAA8B;EAC5D,OAAO,IAAIhC,YAAY,CAAC,CAAC,CAACE,KAAK,CAAC,CAAC;AACnC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_clear-cache@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_clear-cache@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_clear-cache@0.0.428/dist/clear-cache.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_clear-cache@0.0.428/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,24 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/clear-cache",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.428",
|
|
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.428"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
13
13
|
"fs-extra": "10.0.0",
|
|
14
|
-
"v8-compile-cache": "2.3.0",
|
|
15
14
|
"@teambit/harmony": "0.4.6",
|
|
16
|
-
"@teambit/legacy.consumer": "0.0.
|
|
17
|
-
"@teambit/scope.remotes": "0.0.
|
|
18
|
-
"@teambit/scope.modules.find-scope-path": "0.0.
|
|
19
|
-
"@teambit/scope.objects": "0.0.
|
|
20
|
-
"@teambit/workspace.modules.fs-cache": "0.0.
|
|
21
|
-
"@teambit/workspace.modules.workspace-locator": "0.0.
|
|
15
|
+
"@teambit/legacy.consumer": "0.0.10",
|
|
16
|
+
"@teambit/scope.remotes": "0.0.10",
|
|
17
|
+
"@teambit/scope.modules.find-scope-path": "0.0.5",
|
|
18
|
+
"@teambit/scope.objects": "0.0.10",
|
|
19
|
+
"@teambit/workspace.modules.fs-cache": "0.0.10",
|
|
20
|
+
"@teambit/workspace.modules.workspace-locator": "0.0.5"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {
|
|
24
23
|
"@types/fs-extra": "9.0.7",
|