@teambit/cli 0.0.1305 → 0.0.1307
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/index.d.ts +2 -0
- package/dist/index.js +85 -1
- package/dist/index.js.map +1 -1
- package/dist/output-formatter.d.ts +36 -0
- package/dist/output-formatter.js +103 -0
- package/dist/output-formatter.js.map +1 -0
- package/dist/{preview-1774552192320.js → preview-1774991821432.js} +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,6 @@ export { defaultErrorHandler };
|
|
|
9
9
|
export type { Command, CLIArgs, Flags, GenericObject, CommandOptions } from './command';
|
|
10
10
|
export { getArgsData, getCommandName, getFlagsData } from './command-helper';
|
|
11
11
|
export * from './exceptions';
|
|
12
|
+
export { successSymbol, warnSymbol, errorSymbol, bulletSymbol, formatItem, formatSection, formatHint, formatSuccessSummary, formatWarningSummary, joinSections, renderSections, } from './output-formatter';
|
|
13
|
+
export type { OutputSection } from './output-formatter';
|
|
12
14
|
export { CLIAspect as default, MainRuntime, CLIAspect };
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,18 @@ var _exportNames = {
|
|
|
14
14
|
setExitOnUnhandledRejection: true,
|
|
15
15
|
getArgsData: true,
|
|
16
16
|
getCommandName: true,
|
|
17
|
-
getFlagsData: true
|
|
17
|
+
getFlagsData: true,
|
|
18
|
+
successSymbol: true,
|
|
19
|
+
warnSymbol: true,
|
|
20
|
+
errorSymbol: true,
|
|
21
|
+
bulletSymbol: true,
|
|
22
|
+
formatItem: true,
|
|
23
|
+
formatSection: true,
|
|
24
|
+
formatHint: true,
|
|
25
|
+
formatSuccessSummary: true,
|
|
26
|
+
formatWarningSummary: true,
|
|
27
|
+
joinSections: true,
|
|
28
|
+
renderSections: true
|
|
18
29
|
};
|
|
19
30
|
Object.defineProperty(exports, "CLIAspect", {
|
|
20
31
|
enumerable: true,
|
|
@@ -34,6 +45,12 @@ Object.defineProperty(exports, "MainRuntime", {
|
|
|
34
45
|
return _cli().MainRuntime;
|
|
35
46
|
}
|
|
36
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "bulletSymbol", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _outputFormatter().bulletSymbol;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
37
54
|
Object.defineProperty(exports, "default", {
|
|
38
55
|
enumerable: true,
|
|
39
56
|
get: function () {
|
|
@@ -46,6 +63,42 @@ Object.defineProperty(exports, "defaultErrorHandler", {
|
|
|
46
63
|
return _defaultErrorHandler().default;
|
|
47
64
|
}
|
|
48
65
|
});
|
|
66
|
+
Object.defineProperty(exports, "errorSymbol", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _outputFormatter().errorSymbol;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "formatHint", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _outputFormatter().formatHint;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "formatItem", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _outputFormatter().formatItem;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "formatSection", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _outputFormatter().formatSection;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "formatSuccessSummary", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _outputFormatter().formatSuccessSummary;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "formatWarningSummary", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _outputFormatter().formatWarningSummary;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
49
102
|
Object.defineProperty(exports, "getArgsData", {
|
|
50
103
|
enumerable: true,
|
|
51
104
|
get: function () {
|
|
@@ -82,12 +135,36 @@ Object.defineProperty(exports, "handleUnhandledRejection", {
|
|
|
82
135
|
return _handleErrors().handleUnhandledRejection;
|
|
83
136
|
}
|
|
84
137
|
});
|
|
138
|
+
Object.defineProperty(exports, "joinSections", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _outputFormatter().joinSections;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "renderSections", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _outputFormatter().renderSections;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
85
150
|
Object.defineProperty(exports, "setExitOnUnhandledRejection", {
|
|
86
151
|
enumerable: true,
|
|
87
152
|
get: function () {
|
|
88
153
|
return _handleErrors().setExitOnUnhandledRejection;
|
|
89
154
|
}
|
|
90
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "successSymbol", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _outputFormatter().successSymbol;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "warnSymbol", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _outputFormatter().warnSymbol;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
91
168
|
function _cli() {
|
|
92
169
|
const data = require("./cli.aspect");
|
|
93
170
|
_cli = function () {
|
|
@@ -142,6 +219,13 @@ Object.keys(_exceptions).forEach(function (key) {
|
|
|
142
219
|
}
|
|
143
220
|
});
|
|
144
221
|
});
|
|
222
|
+
function _outputFormatter() {
|
|
223
|
+
const data = require("./output-formatter");
|
|
224
|
+
_outputFormatter = function () {
|
|
225
|
+
return data;
|
|
226
|
+
};
|
|
227
|
+
return data;
|
|
228
|
+
}
|
|
145
229
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
146
230
|
|
|
147
231
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_globalFlags","_interopRequireDefault","_defaultErrorHandler","_cliParser","_handleErrors","_commandHelper","_exceptions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","e","__esModule","default"],"sources":["index.ts"],"sourcesContent":["import { CLIAspect, MainRuntime } from './cli.aspect';\nimport globalFlags from './global-flags';\nimport defaultErrorHandler from './default-error-handler';\nexport { CLIParser } from './cli-parser';\nexport type { CLIMain, CommandList, CommandsSlot } from './cli.main.runtime';\nexport { handleUnhandledRejection, handleErrorAndExit, setExitOnUnhandledRejection } from './handle-errors';\nexport { globalFlags };\nexport { defaultErrorHandler };\nexport type { Command, CLIArgs, Flags, GenericObject, CommandOptions } from './command';\nexport { getArgsData, getCommandName, getFlagsData } from './command-helper';\nexport * from './exceptions';\n\nexport { CLIAspect as default, MainRuntime, CLIAspect };\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_globalFlags","_interopRequireDefault","_defaultErrorHandler","_cliParser","_handleErrors","_commandHelper","_exceptions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_outputFormatter","e","__esModule","default"],"sources":["index.ts"],"sourcesContent":["import { CLIAspect, MainRuntime } from './cli.aspect';\nimport globalFlags from './global-flags';\nimport defaultErrorHandler from './default-error-handler';\nexport { CLIParser } from './cli-parser';\nexport type { CLIMain, CommandList, CommandsSlot } from './cli.main.runtime';\nexport { handleUnhandledRejection, handleErrorAndExit, setExitOnUnhandledRejection } from './handle-errors';\nexport { globalFlags };\nexport { defaultErrorHandler };\nexport type { Command, CLIArgs, Flags, GenericObject, CommandOptions } from './command';\nexport { getArgsData, getCommandName, getFlagsData } from './command-helper';\nexport * from './exceptions';\n\nexport {\n successSymbol,\n warnSymbol,\n errorSymbol,\n bulletSymbol,\n formatItem,\n formatSection,\n formatHint,\n formatSuccessSummary,\n formatWarningSummary,\n joinSections,\n renderSections,\n} from './output-formatter';\nexport type { OutputSection } from './output-formatter';\n\nexport { CLIAspect as default, MainRuntime, CLIAspect };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,aAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,qBAAA;EAAA,MAAAJ,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAG,oBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,cAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,aAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIA,SAAAO,eAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,cAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAQ,WAAA,GAAAP,OAAA;AAAAQ,MAAA,CAAAC,IAAA,CAAAF,WAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,WAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,WAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAEA,SAAAS,iBAAA;EAAA,MAAArB,IAAA,GAAAC,OAAA;EAAAoB,gBAAA,YAAAA,CAAA;IAAA,OAAArB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAY4B,SAAAG,uBAAAmB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare function successSymbol(): string;
|
|
2
|
+
/** Yellow warning symbol */
|
|
3
|
+
export declare const warnSymbol: string;
|
|
4
|
+
/** Red error symbol */
|
|
5
|
+
export declare const errorSymbol: string;
|
|
6
|
+
/** Neutral bullet for informational items (no success/failure connotation) */
|
|
7
|
+
export declare const bulletSymbol: string;
|
|
8
|
+
/** Format a single item with 3-space indent + symbol + text. Defaults to success symbol. */
|
|
9
|
+
export declare function formatItem(text: string, symbol?: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Format a section with bold white title (including item count), dim description, and items.
|
|
12
|
+
* Returns empty string if items array is empty.
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatSection(title: string, description: string, items: string[]): string;
|
|
15
|
+
/** Format hint text in dim color */
|
|
16
|
+
export declare function formatHint(text: string): string;
|
|
17
|
+
/** Format a success summary: green checkmark + green message */
|
|
18
|
+
export declare function formatSuccessSummary(msg: string): string;
|
|
19
|
+
/** Format a warning summary: warning symbol + yellow message */
|
|
20
|
+
export declare function formatWarningSummary(msg: string): string;
|
|
21
|
+
/** Filter out empty strings and join remaining sections with double newlines */
|
|
22
|
+
export declare function joinSections(sections: string[]): string;
|
|
23
|
+
export interface OutputSection {
|
|
24
|
+
/** The fully rendered section text */
|
|
25
|
+
content: string;
|
|
26
|
+
/** If set, this section starts collapsed. Use --expand to show full content. */
|
|
27
|
+
collapsible?: {
|
|
28
|
+
/** Summary line shown when collapsed */
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Render sections to a string, collapsing sections that are marked collapsible.
|
|
34
|
+
* When expand is true, all sections are shown expanded.
|
|
35
|
+
*/
|
|
36
|
+
export declare function renderSections(sections: OutputSection[], expand?: boolean): string;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.errorSymbol = exports.bulletSymbol = void 0;
|
|
7
|
+
exports.formatHint = formatHint;
|
|
8
|
+
exports.formatItem = formatItem;
|
|
9
|
+
exports.formatSection = formatSection;
|
|
10
|
+
exports.formatSuccessSummary = formatSuccessSummary;
|
|
11
|
+
exports.formatWarningSummary = formatWarningSummary;
|
|
12
|
+
exports.joinSections = joinSections;
|
|
13
|
+
exports.renderSections = renderSections;
|
|
14
|
+
exports.successSymbol = successSymbol;
|
|
15
|
+
exports.warnSymbol = void 0;
|
|
16
|
+
function _chalk() {
|
|
17
|
+
const data = _interopRequireDefault(require("chalk"));
|
|
18
|
+
_chalk = function () {
|
|
19
|
+
return data;
|
|
20
|
+
};
|
|
21
|
+
return data;
|
|
22
|
+
}
|
|
23
|
+
function _os() {
|
|
24
|
+
const data = require("os");
|
|
25
|
+
_os = function () {
|
|
26
|
+
return data;
|
|
27
|
+
};
|
|
28
|
+
return data;
|
|
29
|
+
}
|
|
30
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
31
|
+
/** Cross-platform green checkmark (mirrors Logger.successSymbol without importing Logger to avoid coupling) */
|
|
32
|
+
const _successSymbol = (0, _os().platform)() === 'win32' ? _chalk().default.green('\u2713') : _chalk().default.green('\u2714');
|
|
33
|
+
function successSymbol() {
|
|
34
|
+
return _successSymbol;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Yellow warning symbol */
|
|
38
|
+
const warnSymbol = exports.warnSymbol = _chalk().default.yellow('\u26A0');
|
|
39
|
+
|
|
40
|
+
/** Red error symbol */
|
|
41
|
+
const errorSymbol = exports.errorSymbol = _chalk().default.red('\u2716');
|
|
42
|
+
|
|
43
|
+
/** Neutral bullet for informational items (no success/failure connotation) */
|
|
44
|
+
const bulletSymbol = exports.bulletSymbol = _chalk().default.dim('\u203A');
|
|
45
|
+
|
|
46
|
+
/** Format a single item with 3-space indent + symbol + text. Defaults to success symbol. */
|
|
47
|
+
function formatItem(text, symbol) {
|
|
48
|
+
const s = symbol ?? successSymbol();
|
|
49
|
+
return ` ${s} ${text}`;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Format a section with bold white title (including item count), dim description, and items.
|
|
54
|
+
* Returns empty string if items array is empty.
|
|
55
|
+
*/
|
|
56
|
+
function formatSection(title, description, items) {
|
|
57
|
+
if (!items.length) return '';
|
|
58
|
+
const lines = [_chalk().default.bold.white(`${title} (${items.length})`)];
|
|
59
|
+
if (description) {
|
|
60
|
+
const indented = description.split('\n').map(l => ` ${l}`).join('\n');
|
|
61
|
+
lines.push(_chalk().default.dim(indented));
|
|
62
|
+
}
|
|
63
|
+
lines.push('');
|
|
64
|
+
lines.push(...items);
|
|
65
|
+
return lines.join('\n');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Format hint text in dim color */
|
|
69
|
+
function formatHint(text) {
|
|
70
|
+
return _chalk().default.dim(text);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Format a success summary: green checkmark + green message */
|
|
74
|
+
function formatSuccessSummary(msg) {
|
|
75
|
+
return `${successSymbol()} ${_chalk().default.green(msg)}`;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Format a warning summary: warning symbol + yellow message */
|
|
79
|
+
function formatWarningSummary(msg) {
|
|
80
|
+
return `${warnSymbol} ${_chalk().default.yellow(msg)}`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Filter out empty strings and join remaining sections with double newlines */
|
|
84
|
+
function joinSections(sections) {
|
|
85
|
+
return sections.filter(Boolean).join('\n\n');
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Render sections to a string, collapsing sections that are marked collapsible.
|
|
89
|
+
* When expand is true, all sections are shown expanded.
|
|
90
|
+
*/
|
|
91
|
+
function renderSections(sections, expand = false) {
|
|
92
|
+
const parts = [];
|
|
93
|
+
for (const section of sections) {
|
|
94
|
+
if (section.collapsible && !expand) {
|
|
95
|
+
parts.push(section.collapsible.summary);
|
|
96
|
+
} else if (section.content) {
|
|
97
|
+
parts.push(section.content);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return parts.filter(Boolean).join('\n\n');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=output-formatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_os","e","__esModule","default","_successSymbol","platform","chalk","green","successSymbol","warnSymbol","exports","yellow","errorSymbol","red","bulletSymbol","dim","formatItem","text","symbol","s","formatSection","title","description","items","length","lines","bold","white","indented","split","map","l","join","push","formatHint","formatSuccessSummary","msg","formatWarningSummary","joinSections","sections","filter","Boolean","renderSections","expand","parts","section","collapsible","summary","content"],"sources":["output-formatter.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { platform } from 'os';\n\n/** Cross-platform green checkmark (mirrors Logger.successSymbol without importing Logger to avoid coupling) */\nconst _successSymbol = platform() === 'win32' ? chalk.green('\\u2713') : chalk.green('\\u2714');\nexport function successSymbol(): string {\n return _successSymbol;\n}\n\n/** Yellow warning symbol */\nexport const warnSymbol = chalk.yellow('\\u26A0');\n\n/** Red error symbol */\nexport const errorSymbol = chalk.red('\\u2716');\n\n/** Neutral bullet for informational items (no success/failure connotation) */\nexport const bulletSymbol = chalk.dim('\\u203A');\n\n/** Format a single item with 3-space indent + symbol + text. Defaults to success symbol. */\nexport function formatItem(text: string, symbol?: string): string {\n const s = symbol ?? successSymbol();\n return ` ${s} ${text}`;\n}\n\n/**\n * Format a section with bold white title (including item count), dim description, and items.\n * Returns empty string if items array is empty.\n */\nexport function formatSection(title: string, description: string, items: string[]): string {\n if (!items.length) return '';\n const lines: string[] = [chalk.bold.white(`${title} (${items.length})`)];\n if (description) {\n const indented = description\n .split('\\n')\n .map((l) => ` ${l}`)\n .join('\\n');\n lines.push(chalk.dim(indented));\n }\n lines.push('');\n lines.push(...items);\n return lines.join('\\n');\n}\n\n/** Format hint text in dim color */\nexport function formatHint(text: string): string {\n return chalk.dim(text);\n}\n\n/** Format a success summary: green checkmark + green message */\nexport function formatSuccessSummary(msg: string): string {\n return `${successSymbol()} ${chalk.green(msg)}`;\n}\n\n/** Format a warning summary: warning symbol + yellow message */\nexport function formatWarningSummary(msg: string): string {\n return `${warnSymbol} ${chalk.yellow(msg)}`;\n}\n\n/** Filter out empty strings and join remaining sections with double newlines */\nexport function joinSections(sections: string[]): string {\n return sections.filter(Boolean).join('\\n\\n');\n}\n\nexport interface OutputSection {\n /** The fully rendered section text */\n content: string;\n /** If set, this section starts collapsed. Use --expand to show full content. */\n collapsible?: {\n /** Summary line shown when collapsed */\n summary: string;\n };\n}\n\n/**\n * Render sections to a string, collapsing sections that are marked collapsible.\n * When expand is true, all sections are shown expanded.\n */\nexport function renderSections(sections: OutputSection[], expand = false): string {\n const parts: string[] = [];\n for (const section of sections) {\n if (section.collapsible && !expand) {\n parts.push(section.collapsible.summary);\n } else if (section.content) {\n parts.push(section.content);\n }\n }\n return parts.filter(Boolean).join('\\n\\n');\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.1307/dist/cli.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.1307/dist/cli.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/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1307",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/cli",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "cli",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1307"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"yargs": "17.0.1",
|
|
16
16
|
"p-map-series": "2.1.0",
|
|
17
17
|
"pad-right": "0.2.2",
|
|
18
|
+
"@teambit/legacy.consumer": "0.0.103",
|
|
18
19
|
"@teambit/legacy.loader": "0.0.18",
|
|
19
20
|
"@teambit/legacy.logger": "0.0.36",
|
|
20
21
|
"@teambit/harmony": "0.4.7",
|
|
@@ -23,8 +24,7 @@
|
|
|
23
24
|
"@teambit/legacy.constants": "0.0.24",
|
|
24
25
|
"@teambit/bit-error": "0.0.404",
|
|
25
26
|
"@teambit/legacy.cli.error": "0.0.36",
|
|
26
|
-
"@teambit/
|
|
27
|
-
"@teambit/logger": "0.0.1398"
|
|
27
|
+
"@teambit/logger": "0.0.1400"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/didyoumean": "1.2.0",
|