@teambit/global-config 0.0.900 → 0.0.902
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_harmony_global_config-preview.js +1 -1
- package/artifacts/schema.json +140 -140
- package/dist/config-cmd.d.ts +4 -0
- package/dist/config-cmd.js +4 -0
- package/dist/config-cmd.js.map +1 -1
- package/dist/global-config.main.runtime.js +8 -1
- package/dist/global-config.main.runtime.js.map +1 -1
- package/dist/{preview-1719717687832.js → preview-1719890668338.js} +2 -2
- package/dist/remote-cmd.d.ts +36 -0
- package/dist/remote-cmd.js +105 -0
- package/dist/remote-cmd.js.map +1 -0
- package/dist/remote.d.ts +4 -0
- package/dist/remote.js +95 -0
- package/dist/remote.js.map +1 -0
- package/package.json +8 -3
package/dist/config-cmd.d.ts
CHANGED
@@ -15,6 +15,7 @@ declare class ConfigGet implements Command {
|
|
15
15
|
description: string;
|
16
16
|
alias: string;
|
17
17
|
options: CommandOptions;
|
18
|
+
loadAspects: boolean;
|
18
19
|
report([key]: [string]): Promise<string>;
|
19
20
|
}
|
20
21
|
declare class ConfigList implements Command {
|
@@ -22,6 +23,7 @@ declare class ConfigList implements Command {
|
|
22
23
|
description: string;
|
23
24
|
alias: string;
|
24
25
|
options: CommandOptions;
|
26
|
+
loadAspects: boolean;
|
25
27
|
report(): Promise<string>;
|
26
28
|
}
|
27
29
|
declare class ConfigDel implements Command {
|
@@ -29,6 +31,7 @@ declare class ConfigDel implements Command {
|
|
29
31
|
description: string;
|
30
32
|
alias: string;
|
31
33
|
options: CommandOptions;
|
34
|
+
loadAspects: boolean;
|
32
35
|
report([key]: [string]): Promise<string>;
|
33
36
|
}
|
34
37
|
export declare class ConfigCmd implements Command {
|
@@ -37,6 +40,7 @@ export declare class ConfigCmd implements Command {
|
|
37
40
|
extendedDescription: string;
|
38
41
|
group: string;
|
39
42
|
alias: string;
|
43
|
+
loadAspects: boolean;
|
40
44
|
commands: (ConfigSet | ConfigDel | ConfigGet | ConfigList)[];
|
41
45
|
options: CommandOptions;
|
42
46
|
report(): Promise<string>;
|
package/dist/config-cmd.js
CHANGED
@@ -61,6 +61,7 @@ class ConfigGet {
|
|
61
61
|
_defineProperty(this, "description", 'get a value from global configuration');
|
62
62
|
_defineProperty(this, "alias", '');
|
63
63
|
_defineProperty(this, "options", []);
|
64
|
+
_defineProperty(this, "loadAspects", false);
|
64
65
|
}
|
65
66
|
async report([key]) {
|
66
67
|
const value = await config().get(key);
|
@@ -73,6 +74,7 @@ class ConfigList {
|
|
73
74
|
_defineProperty(this, "description", 'list all configuration(s)');
|
74
75
|
_defineProperty(this, "alias", '');
|
75
76
|
_defineProperty(this, "options", []);
|
77
|
+
_defineProperty(this, "loadAspects", false);
|
76
78
|
}
|
77
79
|
async report() {
|
78
80
|
const conf = await config().list();
|
@@ -87,6 +89,7 @@ class ConfigDel {
|
|
87
89
|
_defineProperty(this, "description", 'delete given key from global configuration');
|
88
90
|
_defineProperty(this, "alias", '');
|
89
91
|
_defineProperty(this, "options", []);
|
92
|
+
_defineProperty(this, "loadAspects", false);
|
90
93
|
}
|
91
94
|
async report([key]) {
|
92
95
|
await config().del(key);
|
@@ -100,6 +103,7 @@ class ConfigCmd {
|
|
100
103
|
_defineProperty(this, "extendedDescription", `${_constants().BASE_DOCS_DOMAIN}reference/config/bit-config`);
|
101
104
|
_defineProperty(this, "group", 'general');
|
102
105
|
_defineProperty(this, "alias", '');
|
106
|
+
_defineProperty(this, "loadAspects", false);
|
103
107
|
_defineProperty(this, "commands", [new ConfigSet(), new ConfigDel(), new ConfigGet(), new ConfigList()]);
|
104
108
|
_defineProperty(this, "options", []);
|
105
109
|
}
|
package/dist/config-cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_padRight","config","_interopRequireWildcard","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","ConfigSet","constructor","report","key","chalk","green","ConfigGet","ConfigList","conf","list","entries","map","tuple","join","ConfigDel","del","ConfigCmd","BASE_DOCS_DOMAIN","rightpad","exports"],"sources":["config-cmd.ts"],"sourcesContent":["/* eslint max-classes-per-file: 0 */\nimport chalk from 'chalk';\nimport rightpad from 'pad-right';\nimport * as config from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { BASE_DOCS_DOMAIN } from '@teambit/legacy/dist/constants';\nimport { Command, CommandOptions } from '@teambit/cli';\n\nclass ConfigSet implements Command {\n name = 'set <key> <val>';\n description = 'set a global configuration';\n extendedDescription = `to set temporary configuration by env variable, prefix with \"BIT_CONFIG\", replace \".\" with \"_\" and change to upper case.\nfor example, \"user.token\" becomes \"BIT_CONFIG_USER_TOKEN\"`;\n baseUrl = 'reference/config/bit-config/';\n alias = '';\n skipWorkspace = true;\n options = [] as CommandOptions;\n loadAspects = false;\n\n async report([key, value]: [string, string]) {\n await config.set(key, value);\n return chalk.green('added configuration successfully');\n }\n}\n\nclass ConfigGet implements Command {\n name = 'get <key>';\n description = 'get a value from global configuration';\n alias = '';\n options = [] as CommandOptions;\n\n async report([key]: [string]) {\n const value = await config.get(key);\n return value || '';\n }\n}\n\nclass ConfigList implements Command {\n name = 'list';\n description = 'list all configuration(s)';\n alias = '';\n options = [] as CommandOptions;\n\n async report() {\n const conf: { [key: string]: string } = await config.list();\n return Object.entries(conf)\n .map((tuple) => {\n return tuple.join(' ');\n })\n .join('\\n');\n }\n}\n\nclass ConfigDel implements Command {\n name = 'del <key>';\n description = 'delete given key from global configuration';\n alias = '';\n options = [] as CommandOptions;\n\n async report([key]: [string]) {\n await config.del(key);\n return chalk.green('deleted successfully');\n }\n}\n\nexport class ConfigCmd implements Command {\n name = 'config';\n description = 'global config management';\n extendedDescription = `${BASE_DOCS_DOMAIN}reference/config/bit-config`;\n group = 'general';\n alias = '';\n commands = [new ConfigSet(), new ConfigDel(), new ConfigGet(), new ConfigList()];\n options = [] as CommandOptions;\n\n async report() {\n const conf: { [key: string]: string } = await config.list();\n return Object.entries(conf)\n .map((tuple) => {\n tuple[0] = rightpad(tuple[0], 45, ' ');\n return tuple.join('');\n })\n .join('\\n');\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;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,OAAA;EAAA,MAAAJ,IAAA,GAAAK,uBAAA,CAAAH,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAkE,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,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CAAA,CAAAuB,MAAA,CAAAC,WAAA,kBAAA3B,CAAA,QAAAiB,CAAA,GAAAjB,CAAA,CAAAgB,IAAA,CAAAb,CAAA,EAAAD,CAAA,uCAAAe,CAAA,SAAAA,CAAA,YAAAW,SAAA,yEAAA1B,CAAA,GAAA2B,MAAA,GAAAC,MAAA,EAAA3B,CAAA,KAJlE;AAOA,MAAM4B,SAAS,CAAoB;EAAAC,YAAA;IAAAb,eAAA,eAC1B,iBAAiB;IAAAA,eAAA,sBACV,4BAA4B;IAAAA,eAAA,8BACpB;AACxB,0DAA0D;IAAAA,eAAA,kBAC9C,8BAA8B;IAAAA,eAAA,gBAChC,EAAE;IAAAA,eAAA,wBACM,IAAI;IAAAA,eAAA,kBACV,EAAE;IAAAA,eAAA,sBACE,KAAK;EAAA;EAEnB,MAAMc,MAAMA,CAAC,CAACC,GAAG,EAAEb,KAAK,CAAmB,EAAE;IAC3C,MAAMzB,MAAM,CAAD,CAAC,CAACsB,GAAG,CAACgB,GAAG,EAAEb,KAAK,CAAC;IAC5B,OAAOc,gBAAK,CAACC,KAAK,CAAC,kCAAkC,CAAC;EACxD;AACF;AAEA,MAAMC,SAAS,CAAoB;EAAAL,YAAA;IAAAb,eAAA,eAC1B,WAAW;IAAAA,eAAA,sBACJ,uCAAuC;IAAAA,eAAA,gBAC7C,EAAE;IAAAA,eAAA,kBACA,EAAE;EAAA;
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_padRight","config","_interopRequireWildcard","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","ConfigSet","constructor","report","key","chalk","green","ConfigGet","ConfigList","conf","list","entries","map","tuple","join","ConfigDel","del","ConfigCmd","BASE_DOCS_DOMAIN","rightpad","exports"],"sources":["config-cmd.ts"],"sourcesContent":["/* eslint max-classes-per-file: 0 */\nimport chalk from 'chalk';\nimport rightpad from 'pad-right';\nimport * as config from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { BASE_DOCS_DOMAIN } from '@teambit/legacy/dist/constants';\nimport { Command, CommandOptions } from '@teambit/cli';\n\nclass ConfigSet implements Command {\n name = 'set <key> <val>';\n description = 'set a global configuration';\n extendedDescription = `to set temporary configuration by env variable, prefix with \"BIT_CONFIG\", replace \".\" with \"_\" and change to upper case.\nfor example, \"user.token\" becomes \"BIT_CONFIG_USER_TOKEN\"`;\n baseUrl = 'reference/config/bit-config/';\n alias = '';\n skipWorkspace = true;\n options = [] as CommandOptions;\n loadAspects = false;\n\n async report([key, value]: [string, string]) {\n await config.set(key, value);\n return chalk.green('added configuration successfully');\n }\n}\n\nclass ConfigGet implements Command {\n name = 'get <key>';\n description = 'get a value from global configuration';\n alias = '';\n options = [] as CommandOptions;\n loadAspects = false;\n\n async report([key]: [string]) {\n const value = await config.get(key);\n return value || '';\n }\n}\n\nclass ConfigList implements Command {\n name = 'list';\n description = 'list all configuration(s)';\n alias = '';\n options = [] as CommandOptions;\n loadAspects = false;\n\n async report() {\n const conf: { [key: string]: string } = await config.list();\n return Object.entries(conf)\n .map((tuple) => {\n return tuple.join(' ');\n })\n .join('\\n');\n }\n}\n\nclass ConfigDel implements Command {\n name = 'del <key>';\n description = 'delete given key from global configuration';\n alias = '';\n options = [] as CommandOptions;\n loadAspects = false;\n\n async report([key]: [string]) {\n await config.del(key);\n return chalk.green('deleted successfully');\n }\n}\n\nexport class ConfigCmd implements Command {\n name = 'config';\n description = 'global config management';\n extendedDescription = `${BASE_DOCS_DOMAIN}reference/config/bit-config`;\n group = 'general';\n alias = '';\n loadAspects = false;\n commands = [new ConfigSet(), new ConfigDel(), new ConfigGet(), new ConfigList()];\n options = [] as CommandOptions;\n\n async report() {\n const conf: { [key: string]: string } = await config.list();\n return Object.entries(conf)\n .map((tuple) => {\n tuple[0] = rightpad(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,CAAC;MACtC,OAAOA,KAAK,CAACC,IAAI,CAAC,EAAE,CAAC;IACvB,CAAC,CAAC,CACDA,IAAI,CAAC,IAAI,CAAC;EACf;AACF;AAACM,OAAA,CAAAH,SAAA,GAAAA,SAAA","ignoreList":[]}
|
@@ -53,6 +53,13 @@ function _configCmd() {
|
|
53
53
|
};
|
54
54
|
return data;
|
55
55
|
}
|
56
|
+
function _remoteCmd() {
|
57
|
+
const data = require("./remote-cmd");
|
58
|
+
_remoteCmd = function () {
|
59
|
+
return data;
|
60
|
+
};
|
61
|
+
return data;
|
62
|
+
}
|
56
63
|
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; }
|
57
64
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
58
65
|
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); }
|
@@ -108,7 +115,7 @@ class GlobalConfigMain {
|
|
108
115
|
const globalConfig = new GlobalConfigMain();
|
109
116
|
const systemCmd = new (_system().SystemCmd)();
|
110
117
|
systemCmd.commands = [new (_system().SystemLogCmd)(), new (_system().SystemTailLogCmd)()];
|
111
|
-
cli.register(new (_globals().GlobalsCmd)(globalConfig), systemCmd, new (_configCmd().ConfigCmd)());
|
118
|
+
cli.register(new (_globals().GlobalsCmd)(globalConfig), systemCmd, new (_configCmd().ConfigCmd)(), new (_remoteCmd().RemoteCmd)());
|
112
119
|
return globalConfig;
|
113
120
|
}
|
114
121
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_constants","_globalConfig","_globalConfig2","_globals","_system","_configCmd","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalConfigMain","get","key","getBool","result","undefined","Error","getSync","list","listSync","set","val","setSync","del","delSync","getGlobalCapsulesBaseDir","CFG_CAPSULES_ROOT_BASE_DIR","GLOBALS_DEFAULT_CAPSULES","invalidateCache","getKnownGlobalDirs","CACHE_ROOT","DEBUG_LOG","GLOBAL_SCOPE","GLOBAL_CONFIG","provider","cli","globalConfig","systemCmd","SystemCmd","commands","SystemLogCmd","SystemTailLogCmd","register","GlobalsCmd","ConfigCmd","exports","MainRuntime","CLIAspect","GlobalConfigAspect","addRuntime"],"sources":["global-config.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport {\n CACHE_ROOT,\n DEBUG_LOG,\n GLOBAL_SCOPE,\n GLOBAL_CONFIG,\n CFG_CAPSULES_ROOT_BASE_DIR,\n GLOBALS_DEFAULT_CAPSULES,\n} from '@teambit/legacy/dist/constants';\nimport {\n del,\n delSync,\n get,\n getSync,\n list,\n listSync,\n set,\n setSync,\n invalidateCache,\n} from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { GlobalConfig } from '@teambit/legacy/dist/global-config';\nimport { GlobalConfigAspect } from './global-config.aspect';\nimport { GlobalsCmd } from './globals.cmd';\nimport { SystemCmd, SystemLogCmd, SystemTailLogCmd } from './system.cmd';\nimport { ConfigCmd } from './config-cmd';\n\nexport class GlobalConfigMain {\n static runtime = MainRuntime;\n static dependencies = [CLIAspect];\n static slots = [];\n\n async get(key: string): Promise<string | undefined> {\n return get(key);\n }\n\n async getBool(key: string): Promise<boolean | undefined> {\n const result = await get(key);\n if (result === undefined || result === null) return undefined;\n if (typeof result === 'boolean') return result;\n if (result === 'true') return true;\n if (result === 'false') return false;\n throw new Error(`the configuration \"${key}\" has an invalid value \"${result}\". it should be boolean`);\n }\n\n getSync(key: string): string | undefined {\n return getSync(key);\n }\n\n list(): Promise<Record<string, string>> {\n return list();\n }\n listSync(): Record<string, string> {\n return listSync();\n }\n\n async set(key: string, val: string): Promise<GlobalConfig> {\n return set(key, val);\n }\n setSync(key: string, val: string): GlobalConfig {\n return setSync(key, val);\n }\n\n async del(key: string): Promise<GlobalConfig> {\n return del(key);\n }\n\n delSync(key: string): GlobalConfig {\n return delSync(key);\n }\n\n getGlobalCapsulesBaseDir() {\n return this.getSync(CFG_CAPSULES_ROOT_BASE_DIR) || GLOBALS_DEFAULT_CAPSULES;\n }\n\n invalidateCache() {\n invalidateCache();\n }\n\n getKnownGlobalDirs() {\n return {\n 'Global Dir': CACHE_ROOT,\n 'Log file': DEBUG_LOG,\n 'Global Scope Dir': GLOBAL_SCOPE,\n 'Config Dir': GLOBAL_CONFIG,\n 'Capsules Dir': this.getGlobalCapsulesBaseDir(),\n };\n }\n\n static async provider([cli]: [CLIMain]) {\n const globalConfig = new GlobalConfigMain();\n const systemCmd = new SystemCmd();\n systemCmd.commands = [new SystemLogCmd(), new SystemTailLogCmd()];\n cli.register(new GlobalsCmd(globalConfig), systemCmd, new ConfigCmd());\n return globalConfig;\n }\n}\n\nGlobalConfigAspect.addRuntime(GlobalConfigMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAG,cAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,aAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAYA,SAAAI,eAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,cAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;
|
1
|
+
{"version":3,"names":["_cli","data","require","_constants","_globalConfig","_globalConfig2","_globals","_system","_configCmd","_remoteCmd","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalConfigMain","get","key","getBool","result","undefined","Error","getSync","list","listSync","set","val","setSync","del","delSync","getGlobalCapsulesBaseDir","CFG_CAPSULES_ROOT_BASE_DIR","GLOBALS_DEFAULT_CAPSULES","invalidateCache","getKnownGlobalDirs","CACHE_ROOT","DEBUG_LOG","GLOBAL_SCOPE","GLOBAL_CONFIG","provider","cli","globalConfig","systemCmd","SystemCmd","commands","SystemLogCmd","SystemTailLogCmd","register","GlobalsCmd","ConfigCmd","RemoteCmd","exports","MainRuntime","CLIAspect","GlobalConfigAspect","addRuntime"],"sources":["global-config.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport {\n CACHE_ROOT,\n DEBUG_LOG,\n GLOBAL_SCOPE,\n GLOBAL_CONFIG,\n CFG_CAPSULES_ROOT_BASE_DIR,\n GLOBALS_DEFAULT_CAPSULES,\n} from '@teambit/legacy/dist/constants';\nimport {\n del,\n delSync,\n get,\n getSync,\n list,\n listSync,\n set,\n setSync,\n invalidateCache,\n} from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { GlobalConfig } from '@teambit/legacy/dist/global-config';\nimport { GlobalConfigAspect } from './global-config.aspect';\nimport { GlobalsCmd } from './globals.cmd';\nimport { SystemCmd, SystemLogCmd, SystemTailLogCmd } from './system.cmd';\nimport { ConfigCmd } from './config-cmd';\nimport { RemoteCmd } from './remote-cmd';\n\nexport class GlobalConfigMain {\n static runtime = MainRuntime;\n static dependencies = [CLIAspect];\n static slots = [];\n\n async get(key: string): Promise<string | undefined> {\n return get(key);\n }\n\n async getBool(key: string): Promise<boolean | undefined> {\n const result = await get(key);\n if (result === undefined || result === null) return undefined;\n if (typeof result === 'boolean') return result;\n if (result === 'true') return true;\n if (result === 'false') return false;\n throw new Error(`the configuration \"${key}\" has an invalid value \"${result}\". it should be boolean`);\n }\n\n getSync(key: string): string | undefined {\n return getSync(key);\n }\n\n list(): Promise<Record<string, string>> {\n return list();\n }\n listSync(): Record<string, string> {\n return listSync();\n }\n\n async set(key: string, val: string): Promise<GlobalConfig> {\n return set(key, val);\n }\n setSync(key: string, val: string): GlobalConfig {\n return setSync(key, val);\n }\n\n async del(key: string): Promise<GlobalConfig> {\n return del(key);\n }\n\n delSync(key: string): GlobalConfig {\n return delSync(key);\n }\n\n getGlobalCapsulesBaseDir() {\n return this.getSync(CFG_CAPSULES_ROOT_BASE_DIR) || GLOBALS_DEFAULT_CAPSULES;\n }\n\n invalidateCache() {\n invalidateCache();\n }\n\n getKnownGlobalDirs() {\n return {\n 'Global Dir': CACHE_ROOT,\n 'Log file': DEBUG_LOG,\n 'Global Scope Dir': GLOBAL_SCOPE,\n 'Config Dir': GLOBAL_CONFIG,\n 'Capsules Dir': this.getGlobalCapsulesBaseDir(),\n };\n }\n\n static async provider([cli]: [CLIMain]) {\n const globalConfig = new GlobalConfigMain();\n const systemCmd = new SystemCmd();\n systemCmd.commands = [new SystemLogCmd(), new SystemTailLogCmd()];\n cli.register(new GlobalsCmd(globalConfig), systemCmd, new ConfigCmd(), new RemoteCmd());\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KAAIO,sBAAS,EAAC,CAAC,EAAE,KAAIC,sBAAS,EAAC,CAAC,CAAC;IACvF,OAAOT,YAAY;EACrB;AACF;AAACU,OAAA,CAAApC,gBAAA,GAAAA,gBAAA;AAAAnB,eAAA,CArEYmB,gBAAgB,aACVqC,kBAAW;AAAAxD,eAAA,CADjBmB,gBAAgB,kBAEL,CAACsC,gBAAS,CAAC;AAAAzD,eAAA,CAFtBmB,gBAAgB,WAGZ,EAAE;AAoEnBuC,mCAAkB,CAACC,UAAU,CAACxC,gBAAgB,CAAC","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.902/dist/global-config.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.902/dist/global-config.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
+
declare class RemoteAdd implements Command {
|
3
|
+
name: string;
|
4
|
+
description: string;
|
5
|
+
extendedDescription: string;
|
6
|
+
alias: string;
|
7
|
+
loadAspects: boolean;
|
8
|
+
options: CommandOptions;
|
9
|
+
report([url]: [string], { global }: {
|
10
|
+
global: boolean;
|
11
|
+
}): Promise<string>;
|
12
|
+
}
|
13
|
+
declare class RemoteRm implements Command {
|
14
|
+
name: string;
|
15
|
+
description: string;
|
16
|
+
alias: string;
|
17
|
+
loadAspects: boolean;
|
18
|
+
options: CommandOptions;
|
19
|
+
report([name]: [string], { global }: {
|
20
|
+
global: boolean;
|
21
|
+
}): Promise<string>;
|
22
|
+
}
|
23
|
+
export declare class RemoteCmd implements Command {
|
24
|
+
name: string;
|
25
|
+
description: string;
|
26
|
+
group: string;
|
27
|
+
helpUrl: string;
|
28
|
+
alias: string;
|
29
|
+
loadAspects: boolean;
|
30
|
+
options: CommandOptions;
|
31
|
+
commands: (RemoteAdd | RemoteRm)[];
|
32
|
+
report(args: string[], { global }: {
|
33
|
+
global: boolean;
|
34
|
+
}): Promise<string>;
|
35
|
+
}
|
36
|
+
export {};
|
@@ -0,0 +1,105 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.RemoteCmd = void 0;
|
7
|
+
function _chalk() {
|
8
|
+
const data = _interopRequireDefault(require("chalk"));
|
9
|
+
_chalk = function () {
|
10
|
+
return data;
|
11
|
+
};
|
12
|
+
return data;
|
13
|
+
}
|
14
|
+
function _cliTable() {
|
15
|
+
const data = _interopRequireDefault(require("cli-table"));
|
16
|
+
_cliTable = function () {
|
17
|
+
return data;
|
18
|
+
};
|
19
|
+
return data;
|
20
|
+
}
|
21
|
+
function _lodash() {
|
22
|
+
const data = require("lodash");
|
23
|
+
_lodash = function () {
|
24
|
+
return data;
|
25
|
+
};
|
26
|
+
return data;
|
27
|
+
}
|
28
|
+
function _remote() {
|
29
|
+
const data = require("./remote");
|
30
|
+
_remote = function () {
|
31
|
+
return data;
|
32
|
+
};
|
33
|
+
return data;
|
34
|
+
}
|
35
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
36
|
+
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; }
|
37
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
38
|
+
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); } /* eslint max-classes-per-file: 0 */
|
39
|
+
class RemoteAdd {
|
40
|
+
constructor() {
|
41
|
+
_defineProperty(this, "name", 'add <url>');
|
42
|
+
_defineProperty(this, "description", 'add a bare-scope as a remote');
|
43
|
+
_defineProperty(this, "extendedDescription", `supported protocols are [file, http].
|
44
|
+
for example: "http://localhost:3000", "file:///tmp/local-scope"`);
|
45
|
+
_defineProperty(this, "alias", '');
|
46
|
+
_defineProperty(this, "loadAspects", false);
|
47
|
+
_defineProperty(this, "options", [['g', 'global', 'configure a remote bit scope']]);
|
48
|
+
}
|
49
|
+
async report([url], {
|
50
|
+
global
|
51
|
+
}) {
|
52
|
+
const {
|
53
|
+
name,
|
54
|
+
host
|
55
|
+
} = await (0, _remote().add)(url, global);
|
56
|
+
return _chalk().default.green(`added remote scope '${_chalk().default.bold(name)}' with host '${_chalk().default.bold(host)}'`);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
class RemoteRm {
|
60
|
+
constructor() {
|
61
|
+
_defineProperty(this, "name", 'del <name>');
|
62
|
+
_defineProperty(this, "description", 'remove a tracked bit remote');
|
63
|
+
_defineProperty(this, "alias", '');
|
64
|
+
_defineProperty(this, "loadAspects", false);
|
65
|
+
_defineProperty(this, "options", [['g', 'global', 'remove a globally configured remote scope']]);
|
66
|
+
}
|
67
|
+
async report([name], {
|
68
|
+
global
|
69
|
+
}) {
|
70
|
+
await (0, _remote().remove)(name, global);
|
71
|
+
return _chalk().default.green(`successfully removed remote ${_chalk().default.bold(name)}`);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
class RemoteCmd {
|
75
|
+
constructor() {
|
76
|
+
_defineProperty(this, "name", 'remote');
|
77
|
+
_defineProperty(this, "description", 'manage set of tracked bit scope(s)');
|
78
|
+
_defineProperty(this, "group", 'collaborate');
|
79
|
+
_defineProperty(this, "helpUrl", 'reference/scope/remote-scopes');
|
80
|
+
_defineProperty(this, "alias", '');
|
81
|
+
_defineProperty(this, "loadAspects", false);
|
82
|
+
_defineProperty(this, "options", [['g', 'global', 'see globally configured remotes']]);
|
83
|
+
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
84
|
+
_defineProperty(this, "commands", [new RemoteAdd(), new RemoteRm()]);
|
85
|
+
}
|
86
|
+
async report(args, {
|
87
|
+
global
|
88
|
+
}) {
|
89
|
+
const remotes = await (0, _remote().list)(global);
|
90
|
+
if ((0, _lodash().isEmpty)(remotes)) return _chalk().default.red('no configured remotes found in scope');
|
91
|
+
const table = new (_cliTable().default)({
|
92
|
+
head: ['scope name', 'host'],
|
93
|
+
style: {
|
94
|
+
head: ['cyan']
|
95
|
+
}
|
96
|
+
});
|
97
|
+
(0, _lodash().forEach)(remotes, (host, name) => {
|
98
|
+
table.push([name, host]);
|
99
|
+
});
|
100
|
+
return table.toString();
|
101
|
+
}
|
102
|
+
}
|
103
|
+
exports.RemoteCmd = RemoteCmd;
|
104
|
+
|
105
|
+
//# sourceMappingURL=remote-cmd.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_cliTable","_lodash","_remote","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","RemoteAdd","constructor","report","url","global","name","host","add","chalk","green","bold","RemoteRm","remove","RemoteCmd","args","remotes","list","isEmpty","red","table","Table","head","style","forEach","push","toString","exports"],"sources":["remote-cmd.ts"],"sourcesContent":["/* eslint max-classes-per-file: 0 */\n\nimport chalk from 'chalk';\nimport Table from 'cli-table';\nimport { forEach, isEmpty } from 'lodash';\nimport { add, list, remove } from './remote';\nimport { Command, CommandOptions } from '@teambit/cli';\n\nclass RemoteAdd implements Command {\n name = 'add <url>';\n description = 'add a bare-scope as a remote';\n extendedDescription = `supported protocols are [file, http].\nfor example: \"http://localhost:3000\", \"file:///tmp/local-scope\"`;\n alias = '';\n loadAspects = false;\n options = [['g', 'global', 'configure a remote bit scope']] as CommandOptions;\n\n async report([url]: [string], { global }: { global: boolean }) {\n const { name, host }: { name: string; host: string } = await add(url, global);\n return chalk.green(`added remote scope '${chalk.bold(name)}' with host '${chalk.bold(host)}'`);\n }\n}\n\nclass RemoteRm implements Command {\n name = 'del <name>';\n description = 'remove a tracked bit remote';\n alias = '';\n loadAspects = false;\n options = [['g', 'global', 'remove a globally configured remote scope']] as CommandOptions;\n\n async report([name]: [string], { global }: { global: boolean }) {\n await remove(name, global);\n return chalk.green(`successfully removed remote ${chalk.bold(name)}`);\n }\n}\n\nexport class RemoteCmd implements Command {\n name = 'remote';\n description = 'manage set of tracked bit scope(s)';\n group = 'collaborate';\n helpUrl = 'reference/scope/remote-scopes';\n alias = '';\n loadAspects = false;\n options = [['g', 'global', 'see globally configured remotes']] as CommandOptions;\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n commands = [new RemoteAdd(), new RemoteRm()];\n\n async report(args: string[], { global }: { global: boolean }) {\n const remotes: { [key: string]: string } = await list(global);\n if (isEmpty(remotes)) return chalk.red('no configured remotes found in scope');\n\n const table = new Table({ head: ['scope name', 'host'], style: { head: ['cyan'] } });\n forEach(remotes, (host, name) => {\n table.push([name, host]);\n });\n\n return table.toString();\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ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C,CAAC,EAAE,IAAIW,QAAQ,CAAC,CAAC,CAAC;EAAA;EAE5C,MAAMT,MAAMA,CAACY,IAAc,EAAE;IAAEV;EAA4B,CAAC,EAAE;IAC5D,MAAMW,OAAkC,GAAG,MAAM,IAAAC,cAAI,EAACZ,MAAM,CAAC;IAC7D,IAAI,IAAAa,iBAAO,EAACF,OAAO,CAAC,EAAE,OAAOP,gBAAK,CAACU,GAAG,CAAC,sCAAsC,CAAC;IAE9E,MAAMC,KAAK,GAAG,KAAIC,mBAAK,EAAC;MAAEC,IAAI,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC;MAAEC,KAAK,EAAE;QAAED,IAAI,EAAE,CAAC,MAAM;MAAE;IAAE,CAAC,CAAC;IACpF,IAAAE,iBAAO,EAACR,OAAO,EAAE,CAACT,IAAI,EAAED,IAAI,KAAK;MAC/Bc,KAAK,CAACK,IAAI,CAAC,CAACnB,IAAI,EAAEC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEF,OAAOa,KAAK,CAACM,QAAQ,CAAC,CAAC;EACzB;AACF;AAACC,OAAA,CAAAb,SAAA,GAAAA,SAAA","ignoreList":[]}
|
package/dist/remote.d.ts
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
import { Remote } from '@teambit/legacy/dist/remotes';
|
2
|
+
export declare function add(url: string, global: boolean): Promise<Remote>;
|
3
|
+
export declare function remove(name: string, global: boolean): Promise<string>;
|
4
|
+
export declare function list(global: boolean): Promise<{}>;
|
package/dist/remote.js
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.add = add;
|
7
|
+
exports.list = list;
|
8
|
+
exports.remove = remove;
|
9
|
+
function _bitError() {
|
10
|
+
const data = require("@teambit/bit-error");
|
11
|
+
_bitError = function () {
|
12
|
+
return data;
|
13
|
+
};
|
14
|
+
return data;
|
15
|
+
}
|
16
|
+
function _globalConfig() {
|
17
|
+
const data = require("@teambit/legacy/dist/global-config");
|
18
|
+
_globalConfig = function () {
|
19
|
+
return data;
|
20
|
+
};
|
21
|
+
return data;
|
22
|
+
}
|
23
|
+
function _remotes() {
|
24
|
+
const data = require("@teambit/legacy/dist/remotes");
|
25
|
+
_remotes = function () {
|
26
|
+
return data;
|
27
|
+
};
|
28
|
+
return data;
|
29
|
+
}
|
30
|
+
function _scope() {
|
31
|
+
const data = require("@teambit/legacy/dist/scope");
|
32
|
+
_scope = function () {
|
33
|
+
return data;
|
34
|
+
};
|
35
|
+
return data;
|
36
|
+
}
|
37
|
+
function _scopeRemotes() {
|
38
|
+
const data = require("@teambit/legacy/dist/scope/scope-remotes");
|
39
|
+
_scopeRemotes = function () {
|
40
|
+
return data;
|
41
|
+
};
|
42
|
+
return data;
|
43
|
+
}
|
44
|
+
function buildRemote(url) {
|
45
|
+
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
46
|
+
return new (_remotes().Remote)(url);
|
47
|
+
}
|
48
|
+
async function add(url, global) {
|
49
|
+
const remote = buildRemote(url);
|
50
|
+
return remote.scope().then(scopeDesc => {
|
51
|
+
remote.name = scopeDesc.name;
|
52
|
+
if (global) {
|
53
|
+
return _globalConfig().GlobalRemotes.load().then(globalRemotes => {
|
54
|
+
return globalRemotes.addRemote(remote).write().then(() => remote);
|
55
|
+
});
|
56
|
+
}
|
57
|
+
|
58
|
+
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
59
|
+
return (0, _scope().loadScope)().then(scope => {
|
60
|
+
return scope.scopeJson.addRemote(remote).write(scope.getPath()).then(() => remote);
|
61
|
+
});
|
62
|
+
});
|
63
|
+
}
|
64
|
+
async function remove(name, global) {
|
65
|
+
if (global) {
|
66
|
+
const globalRemotes = await _globalConfig().GlobalRemotes.load();
|
67
|
+
const hasRemoved = globalRemotes.rmRemote(name);
|
68
|
+
if (!hasRemoved) {
|
69
|
+
throw new (_bitError().BitError)(`remote "${name}" was not found globally, to remove a local remote, please omit the "--global" flag`);
|
70
|
+
}
|
71
|
+
await globalRemotes.write();
|
72
|
+
return name;
|
73
|
+
}
|
74
|
+
|
75
|
+
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
76
|
+
const scope = await (0, _scope().loadScope)();
|
77
|
+
const hasRemoved = scope.scopeJson.rmRemote(name);
|
78
|
+
if (!hasRemoved) {
|
79
|
+
throw new (_bitError().BitError)(`remote "${name}" was not found locally, to remove a global remote, please use "--global" flag`);
|
80
|
+
}
|
81
|
+
await scope.scopeJson.write(scope.getPath());
|
82
|
+
return name;
|
83
|
+
}
|
84
|
+
async function list(global) {
|
85
|
+
if (global) {
|
86
|
+
return _globalConfig().GlobalRemotes.load().then(globalRemotes => globalRemotes.toPlainObject());
|
87
|
+
}
|
88
|
+
|
89
|
+
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
90
|
+
return (0, _scope().loadScope)().then(scope => {
|
91
|
+
return (0, _scopeRemotes().getScopeRemotes)(scope).then(remotes => remotes.toPlainObject());
|
92
|
+
});
|
93
|
+
}
|
94
|
+
|
95
|
+
//# sourceMappingURL=remote.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","_globalConfig","_remotes","_scope","_scopeRemotes","buildRemote","url","Remote","add","global","remote","scope","then","scopeDesc","name","GlobalRemotes","load","globalRemotes","addRemote","write","loadScope","scopeJson","getPath","remove","hasRemoved","rmRemote","BitError","list","toPlainObject","getScopeRemotes","remotes"],"sources":["remote.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport { GlobalRemotes } from '@teambit/legacy/dist/global-config';\nimport { Remote } from '@teambit/legacy/dist/remotes';\nimport { loadScope } from '@teambit/legacy/dist/scope';\nimport { getScopeRemotes } from '@teambit/legacy/dist/scope/scope-remotes';\n\nfunction buildRemote(url: string): Remote {\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n return new Remote(url);\n}\n\nexport async function add(url: string, global: boolean) {\n const remote = buildRemote(url);\n return remote.scope().then((scopeDesc) => {\n remote.name = scopeDesc.name;\n\n if (global) {\n return GlobalRemotes.load().then((globalRemotes) => {\n return globalRemotes\n .addRemote(remote)\n .write()\n .then(() => remote);\n });\n }\n\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n return loadScope().then((scope) => {\n return scope.scopeJson\n .addRemote(remote)\n .write(scope.getPath())\n .then(() => remote);\n });\n });\n}\n\nexport async function remove(name: string, global: boolean) {\n if (global) {\n const globalRemotes = await GlobalRemotes.load();\n const hasRemoved = globalRemotes.rmRemote(name);\n if (!hasRemoved) {\n throw new BitError(\n `remote \"${name}\" was not found globally, to remove a local remote, please omit the \"--global\" flag`\n );\n }\n await globalRemotes.write();\n return name;\n }\n\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const scope = await loadScope();\n const hasRemoved = scope.scopeJson.rmRemote(name);\n if (!hasRemoved) {\n throw new BitError(`remote \"${name}\" was not found locally, to remove a global remote, please use \"--global\" flag`);\n }\n await scope.scopeJson.write(scope.getPath());\n return name;\n}\n\nexport async function list(global: boolean) {\n if (global) {\n return GlobalRemotes.load().then((globalRemotes) => globalRemotes.toPlainObject());\n }\n\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n return loadScope().then((scope) => {\n return getScopeRemotes(scope).then((remotes) => remotes.toPlainObject());\n });\n}\n"],"mappings":";;;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,cAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,aAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AA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"0.0.902",
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/global-config",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.harmony",
|
8
8
|
"name": "global-config",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.902"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"pad-right": "0.2.2",
|
14
|
+
"cli-table": "0.3.6",
|
15
|
+
"lodash": "4.17.21",
|
14
16
|
"fs-extra": "10.0.0",
|
15
17
|
"@teambit/harmony": "0.4.6",
|
16
|
-
"@teambit/
|
18
|
+
"@teambit/bit-error": "0.0.404",
|
19
|
+
"@teambit/cli": "0.0.899"
|
17
20
|
},
|
18
21
|
"devDependencies": {
|
22
|
+
"@types/cli-table": "^0.3.0",
|
23
|
+
"@types/lodash": "4.14.165",
|
19
24
|
"@types/fs-extra": "9.0.7",
|
20
25
|
"@types/mocha": "9.1.0",
|
21
26
|
"chai": "4.3.0",
|