@teambit/cli 0.0.862 → 0.0.863
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_harmony_cli-preview.js +1 -1
- package/artifacts/schema.json +968 -859
- package/dist/legacy-command-adapter.d.ts +2 -2
- package/dist/legacy-command-adapter.js.map +1 -1
- package/dist/{preview-1712822929999.js → preview-1714533890836.js} +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LegacyCommand } from '@teambit/legacy/dist/cli/legacy-command';
|
|
2
|
-
import { Command,
|
|
1
|
+
import { CommandOptions, LegacyCommand } from '@teambit/legacy/dist/cli/legacy-command';
|
|
2
|
+
import type { Command, GenericObject } from '@teambit/legacy/dist/cli/command';
|
|
3
3
|
import { CLIMain } from './cli.main.runtime';
|
|
4
4
|
export declare class LegacyCommandAdapter implements Command {
|
|
5
5
|
private cmd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LegacyCommandAdapter","constructor","cmd","cliExtension","_defineProperty","name","description","helpUrl","options","opts","alias","extendedDescription","skipWorkspace","group","loader","private","commands","map","sub","action","params","res","_packageManagerArgs","data","code","__code","undefined","report","actionResult","json","JSON","parse","exports"],"sources":["legacy-command-adapter.ts"],"sourcesContent":["import { LegacyCommand } from '@teambit/legacy/dist/cli/legacy-command';\nimport { Command,
|
|
1
|
+
{"version":3,"names":["LegacyCommandAdapter","constructor","cmd","cliExtension","_defineProperty","name","description","helpUrl","options","opts","alias","extendedDescription","skipWorkspace","group","loader","private","commands","map","sub","action","params","res","_packageManagerArgs","data","code","__code","undefined","report","actionResult","json","JSON","parse","exports"],"sources":["legacy-command-adapter.ts"],"sourcesContent":["import { CommandOptions, LegacyCommand } from '@teambit/legacy/dist/cli/legacy-command';\nimport type { Command, GenericObject } from '@teambit/legacy/dist/cli/command';\nimport { CLIMain } from './cli.main.runtime';\n\nexport class LegacyCommandAdapter implements Command {\n alias: string;\n name: string;\n description: string;\n options: CommandOptions;\n extendedDescription?: string;\n group?: string;\n loader?: boolean;\n commands: Command[];\n private?: boolean;\n skipWorkspace?: boolean;\n helpUrl?: string;\n _packageManagerArgs?: string[];\n constructor(private cmd: LegacyCommand, cliExtension: CLIMain) {\n this.name = cmd.name;\n this.description = cmd.description;\n this.helpUrl = cmd.helpUrl;\n this.options = cmd.opts || [];\n this.alias = cmd.alias;\n this.extendedDescription = cmd.extendedDescription;\n this.skipWorkspace = cmd.skipWorkspace;\n this.group = cmd.group;\n this.loader = cmd.loader;\n this.private = cmd.private;\n this.commands = (cmd.commands || []).map((sub) => new LegacyCommandAdapter(sub, cliExtension));\n }\n\n private async action(params: any, options: { [key: string]: any }): Promise<ActionResult> {\n const res = await this.cmd.action(params, options, this._packageManagerArgs);\n let data = res;\n let code = 0;\n if (res && res.__code !== undefined) {\n data = res.data;\n code = res.__code;\n }\n const report = this.cmd.report(data, params, options);\n return {\n code,\n report,\n };\n }\n\n async report(params: any, options: { [key: string]: any }): Promise<{ data: string; code: number }> {\n const actionResult = await this.action(params, options);\n return { data: actionResult.report, code: actionResult.code };\n }\n\n async json(params: any, options: { [key: string]: any }): Promise<GenericObject> {\n const actionResult = await this.action(params, options);\n return {\n data: JSON.parse(actionResult.report),\n code: actionResult.code,\n };\n }\n}\n\ntype ActionResult = {\n code: number;\n report: string;\n};\n"],"mappings":";;;;;;;;;AAIO,MAAMA,oBAAoB,CAAoB;EAanDC,WAAWA,CAASC,GAAkB,EAAEC,YAAqB,EAAE;IAAA,KAA3CD,GAAkB,GAAlBA,GAAkB;IAAAE,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACpC,IAAI,CAACC,IAAI,GAAGH,GAAG,CAACG,IAAI;IACpB,IAA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Y,GAAG,MAAM,IAAI,CAACT,MAAM,CAACC,MAAM,EAAEZ,OAAO,CAAC;IACvD,OAAO;MAAEe,IAAI,EAAEK,YAAY,CAACD,MAAM;MAAEH,IAAI,EAAEI,YAAY,CAACJ;IAAK,CAAC;EAC/D;EAEA,MAAMK,IAAIA,CAACT,MAAW,EAAEZ,OAA+B,EAA0B;IAC/E,MAAMoB,YAAY,GAAG,MAAM,IAAI,CAACT,MAAM,CAACC,MAAM,EAAEZ,OAAO,CAAC;IACvD,OAAO;MACLe,IAAI,EAAEO,IAAI,CAACC,KAAK,CAACH,YAAY,CAACD,MAAM,CAAC;MACrCH,IAAI,EAAEI,YAAY,CAACJ;IACrB,CAAC;EACH;AACF;AAACQ,OAAA,CAAAhC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.863/dist/cli.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.863/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.863",
|
|
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.863"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"pad-right": "0.2.2",
|
|
18
18
|
"@teambit/harmony": "0.4.6",
|
|
19
19
|
"@teambit/bit-error": "0.0.404",
|
|
20
|
-
"@teambit/logger": "0.0.
|
|
20
|
+
"@teambit/logger": "0.0.956"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/didyoumean": "1.2.0",
|