@teambit/global-config 0.0.1274 → 0.0.1276
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/dist/globals.cmd.d.ts +1 -0
- package/dist/globals.cmd.js +4 -2
- package/dist/globals.cmd.js.map +1 -1
- package/dist/{preview-1756496771585.js → preview-1757523924602.js} +2 -2
- package/dist/remote-cmd.d.ts +1 -0
- package/dist/remote-cmd.js +4 -1
- package/dist/remote-cmd.js.map +1 -1
- package/dist/system.cmd.d.ts +1 -0
- package/dist/system.cmd.js +3 -1
- package/dist/system.cmd.js.map +1 -1
- package/package.json +7 -7
package/dist/globals.cmd.d.ts
CHANGED
package/dist/globals.cmd.js
CHANGED
@@ -33,7 +33,9 @@ class GlobalsCmd {
|
|
33
33
|
constructor(globalConfig) {
|
34
34
|
this.globalConfig = globalConfig;
|
35
35
|
_defineProperty(this, "name", 'globals');
|
36
|
-
_defineProperty(this, "description",
|
36
|
+
_defineProperty(this, "description", 'display global directories and paths used by Bit');
|
37
|
+
_defineProperty(this, "extendedDescription", `shows all global directories including cache, logs, and config locations used by Bit across your system.
|
38
|
+
useful for debugging and understanding where Bit stores data.`);
|
37
39
|
_defineProperty(this, "group", 'system');
|
38
40
|
_defineProperty(this, "helpUrl", 'reference/config/config-files');
|
39
41
|
_defineProperty(this, "alias", '');
|
@@ -47,7 +49,7 @@ class GlobalsCmd {
|
|
47
49
|
const keyPadded = (0, _padRight().default)(key, padMax, ' ');
|
48
50
|
return `${_chalk().default.green(keyPadded)} ${list[key]}`;
|
49
51
|
}).join('\n');
|
50
|
-
const title = `the following
|
52
|
+
const title = `the following global directories are used by Bit. to change the global root directory, set the "${_legacy().CACHE_GLOBALS_ENV}" environment variable`;
|
51
53
|
return `${title}\n\n${values}`;
|
52
54
|
}
|
53
55
|
async json() {
|
package/dist/globals.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_padRight","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalsCmd","constructor","globalConfig","report","list","json","leftCol","keys","padMax","Math","max","map","c","length","values","key","keyPadded","padRight","chalk","green","join","title","CACHE_GLOBALS_ENV","getKnownGlobalDirs","exports"],"sources":["globals.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport padRight from 'pad-right';\nimport { CACHE_GLOBALS_ENV } from '@teambit/legacy.constants';\nimport type { GlobalConfigMain } from './global-config.main.runtime';\n\nexport class GlobalsCmd implements Command {\n name = 'globals';\n description = `
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_padRight","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalsCmd","constructor","globalConfig","report","list","json","leftCol","keys","padMax","Math","max","map","c","length","values","key","keyPadded","padRight","chalk","green","join","title","CACHE_GLOBALS_ENV","getKnownGlobalDirs","exports"],"sources":["globals.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport padRight from 'pad-right';\nimport { CACHE_GLOBALS_ENV } from '@teambit/legacy.constants';\nimport type { GlobalConfigMain } from './global-config.main.runtime';\n\nexport class GlobalsCmd implements Command {\n name = 'globals';\n description = 'display global directories and paths used by Bit';\n extendedDescription = `shows all global directories including cache, logs, and config locations used by Bit across your system.\nuseful for debugging and understanding where Bit stores data.`;\n group = 'system';\n helpUrl = 'reference/config/config-files';\n alias = '';\n options = [['j', 'json', 'json format']] as CommandOptions;\n\n constructor(private globalConfig: GlobalConfigMain) {}\n\n async report() {\n const list = await this.json();\n const leftCol = Object.keys(list);\n const padMax = Math.max(...leftCol.map((c) => c.length)) + 1;\n const values = Object.keys(list)\n .map((key) => {\n const keyPadded = padRight(key, padMax, ' ');\n return `${chalk.green(keyPadded)} ${list[key]}`;\n })\n .join('\\n');\n\n const title = `the following global directories are used by Bit. to change the global root directory, set the \"${CACHE_GLOBALS_ENV}\" environment variable`;\n\n return `${title}\\n\\n${values}`;\n }\n\n async json() {\n return this.globalConfig.getKnownGlobalDirs();\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,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,SAAAC,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CA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jD,CAAC,CAAC,CACDK,IAAI,CAAC,IAAI,CAAC;IAEb,MAAMC,KAAK,GAAG,mGAAmGC,2BAAiB,wBAAwB;IAE1J,OAAO,GAAGD,KAAK,OAAOP,MAAM,EAAE;EAChC;EAEA,MAAMT,IAAIA,CAAA,EAAG;IACX,OAAO,IAAI,CAACH,YAAY,CAACqB,kBAAkB,CAAC,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAxB,UAAA,GAAAA,UAAA","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.1276/dist/global-config.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.1276/dist/global-config.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/dist/remote-cmd.d.ts
CHANGED
package/dist/remote-cmd.js
CHANGED
@@ -102,7 +102,10 @@ exports.RemoteList = RemoteList;
|
|
102
102
|
class RemoteCmd {
|
103
103
|
constructor() {
|
104
104
|
_defineProperty(this, "name", 'remote');
|
105
|
-
_defineProperty(this, "description", 'manage
|
105
|
+
_defineProperty(this, "description", 'manage remote scopes for self-hosted environments');
|
106
|
+
_defineProperty(this, "extendedDescription", `configure connections to self-hosted remote scopes via HTTP or file protocol.
|
107
|
+
note: this command is only needed for self-hosted scopes. when using bit.cloud, remote scopes are automatically configured.
|
108
|
+
remotes are bare scopes that store exported components and enable collaboration across teams.`);
|
106
109
|
_defineProperty(this, "group", 'collaborate');
|
107
110
|
_defineProperty(this, "helpUrl", 'reference/scope/remote-scopes');
|
108
111
|
_defineProperty(this, "alias", '');
|
package/dist/remote-cmd.js.map
CHANGED
@@ -1 +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","RemoteList","args","remotes","list","isEmpty","red","table","Table","head","style","forEach","push","toString","exports","RemoteCmd"],"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 type { 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 RemoteList implements Command {\n name = 'list';\n description = 'list all configured remotes';\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\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\nexport class RemoteCmd implements Command {\n name = 'remote';\n description = 'manage
|
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","RemoteList","args","remotes","list","isEmpty","red","table","Table","head","style","forEach","push","toString","exports","RemoteCmd"],"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 type { 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 RemoteList implements Command {\n name = 'list';\n description = 'list all configured remotes';\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\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\nexport class RemoteCmd implements Command {\n name = 'remote';\n description = 'manage remote scopes for self-hosted environments';\n extendedDescription = `configure connections to self-hosted remote scopes via HTTP or file protocol.\nnote: this command is only needed for self-hosted scopes. when using bit.cloud, remote scopes are automatically configured.\nremotes are bare scopes that store exported components and enable collaboration across teams.`;\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 commands = [new RemoteAdd(), new RemoteRm(), new RemoteList()];\n\n async report(args: string[], { global }: { global: boolean }) {\n return new RemoteList().report(args, { global });\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,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6C,SAAAC,uBAAAK,CAAA,W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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,UAAA,GAAAA,UAAA;AAEM,MAAMc,SAAS,CAAoB;EAAA1B,YAAA;IAAAnB,eAAA,eACjC,QAAQ;IAAAA,eAAA,sBACD,mDAAmD;IAAAA,eAAA,8BAC3C;AACxB;AACA,8FAA8F;IAAAA,eAAA,gBACpF,aAAa;IAAAA,eAAA,kBACX,+BAA+B;IAAAA,eAAA,gBACjC,EAAE;IAAAA,eAAA,sBACI,KAAK;IAAAA,eAAA,kBACT,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,iCAAiC,CAAC,CAAC;IAAAA,eAAA,mBACnD,CAAC,IAAIkB,SAAS,CAAC,CAAC,EAAE,IAAIW,QAAQ,CAAC,CAAC,EAAE,IAAIE,UAAU,CAAC,CAAC,CAAC;EAAA;EAE9D,MAAMX,MAAMA,CAACY,IAAc,EAAE;IAAEV;EAA4B,CAAC,EAAE;IAC5D,OAAO,IAAIS,UAAU,CAAC,CAAC,CAACX,MAAM,CAACY,IAAI,EAAE;MAAEV;IAAO,CAAC,CAAC;EAClD;AACF;AAACsB,OAAA,CAAAC,SAAA,GAAAA,SAAA","ignoreList":[]}
|
package/dist/system.cmd.d.ts
CHANGED
package/dist/system.cmd.js
CHANGED
@@ -39,7 +39,9 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
39
39
|
class SystemCmd {
|
40
40
|
constructor() {
|
41
41
|
_defineProperty(this, "name", 'system <sub-command>');
|
42
|
-
_defineProperty(this, "description",
|
42
|
+
_defineProperty(this, "description", 'access system-level operations and debugging tools');
|
43
|
+
_defineProperty(this, "extendedDescription", `provides commands for system-level operations including viewing and tailing debug logs.
|
44
|
+
useful for troubleshooting issues and monitoring Bit's internal operations in real-time.`);
|
43
45
|
_defineProperty(this, "group", 'system');
|
44
46
|
_defineProperty(this, "alias", '');
|
45
47
|
_defineProperty(this, "options", []);
|
package/dist/system.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_chalk","_child_process","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SystemCmd","constructor","report","unrecognizedSubcommand","chalk","red","exports","SystemLogCmd","logFile","fs","readFileSync","DEBUG_LOG","SystemTailLogCmd","wait","cp","execSync","stdio"],"sources":["system.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport cp from 'child_process';\nimport { DEBUG_LOG } from '@teambit/legacy.constants';\n\nexport class SystemCmd implements Command {\n name = 'system <sub-command>';\n description = `system operations
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_chalk","_child_process","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SystemCmd","constructor","report","unrecognizedSubcommand","chalk","red","exports","SystemLogCmd","logFile","fs","readFileSync","DEBUG_LOG","SystemTailLogCmd","wait","cp","execSync","stdio"],"sources":["system.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport cp from 'child_process';\nimport { DEBUG_LOG } from '@teambit/legacy.constants';\n\nexport class SystemCmd implements Command {\n name = 'system <sub-command>';\n description = 'access system-level operations and debugging tools';\n extendedDescription = `provides commands for system-level operations including viewing and tailing debug logs.\nuseful for troubleshooting issues and monitoring Bit's internal operations in real-time.`;\n group = 'system';\n alias = '';\n options = [] as CommandOptions;\n commands: Command[] = [];\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"system\", please run \"bit system --help\" to list the subcommands`\n );\n }\n}\n\nexport class SystemLogCmd implements Command {\n name = 'log';\n description = `print debug.log to the screen`;\n group = 'system';\n alias = '';\n loader = false;\n options = [] as CommandOptions;\n\n async report() {\n const logFile = fs.readFileSync(DEBUG_LOG, 'utf8');\n return logFile;\n }\n}\n\nexport class SystemTailLogCmd implements Command {\n name = 'tail-log';\n description = `print the log file to the screen as it is being written`;\n extendedDescription = 'similar to linux \"tail -f\" command';\n group = 'system';\n alias = '';\n loader = false;\n options = [] as CommandOptions;\n\n async wait() {\n cp.execSync(`tail -f ${DEBUG_LOG}`, { stdio: 'inherit' });\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,eAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAA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AA,GAAAA,SAAA;AAEM,MAAMO,YAAY,CAAoB;EAAAN,YAAA;IAAAnB,eAAA,eACpC,KAAK;IAAAA,eAAA,sBACE,+BAA+B;IAAAA,eAAA,gBACrC,QAAQ;IAAAA,eAAA,gBACR,EAAE;IAAAA,eAAA,iBACD,KAAK;IAAAA,eAAA,kBACJ,EAAE;EAAA;EAEZ,MAAMoB,MAAMA,CAAA,EAAG;IACb,MAAMM,OAAO,GAAGC,kBAAE,CAACC,YAAY,CAACC,mBAAS,EAAE,MAAM,CAAC;IAClD,OAAOH,OAAO;EAChB;AACF;AAACF,OAAA,CAAAC,YAAA,GAAAA,YAAA;AAEM,MAAMK,gBAAgB,CAAoB;EAAAX,YAAA;IAAAnB,eAAA,eACxC,UAAU;IAAAA,eAAA,sBACH,yDAAyD;IAAAA,eAAA,8BACjD,oCAAoC;IAAAA,eAAA,gBAClD,QAAQ;IAAAA,eAAA,gBACR,EAAE;IAAAA,eAAA,iBACD,KAAK;IAAAA,eAAA,kBACJ,EAAE;EAAA;EAEZ,MAAM+B,IAAIA,CAAA,EAAG;IACXC,wBAAE,CAACC,QAAQ,CAAC,WAAWJ,mBAAS,EAAE,EAAE;MAAEK,KAAK,EAAE;IAAU,CAAC,CAAC;EAC3D;AACF;AAACV,OAAA,CAAAM,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/global-config",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1276",
|
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.1276"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "4.1.2",
|
@@ -16,11 +16,11 @@
|
|
16
16
|
"fs-extra": "10.0.0",
|
17
17
|
"@teambit/harmony": "0.4.7",
|
18
18
|
"@teambit/bit-error": "0.0.404",
|
19
|
-
"@teambit/cli": "0.0.
|
20
|
-
"@teambit/config-store": "0.0.
|
21
|
-
"@teambit/legacy.constants": "0.0.
|
22
|
-
"@teambit/legacy.scope": "0.0.
|
23
|
-
"@teambit/scope.remotes": "0.0.
|
19
|
+
"@teambit/cli": "0.0.1273",
|
20
|
+
"@teambit/config-store": "0.0.153",
|
21
|
+
"@teambit/legacy.constants": "0.0.18",
|
22
|
+
"@teambit/legacy.scope": "0.0.74",
|
23
|
+
"@teambit/scope.remotes": "0.0.74"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/cli-table": "^0.3.0",
|