@teambit/status 1.0.38 → 1.0.40
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/mini-status-cmd.d.ts +5 -8
- package/dist/mini-status-cmd.js +2 -2
- package/dist/mini-status-cmd.js.map +1 -1
- package/dist/status-cmd.d.ts +8 -8
- package/dist/status-cmd.js +10 -6
- package/dist/status-cmd.js.map +1 -1
- package/dist/status.main.runtime.d.ts +2 -1
- package/dist/status.main.runtime.js +13 -3
- package/dist/status.main.runtime.js.map +1 -1
- package/package.json +11 -11
- /package/dist/{preview-1698829716033.js → preview-1698930721010.js} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
2
|
import { StatusMain } from './status.main.runtime';
|
|
3
3
|
export declare type MiniStatusOpts = {
|
|
4
|
-
showIssues?:
|
|
4
|
+
showIssues?: boolean;
|
|
5
|
+
ignoreCircularDependencies?: boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare class MiniStatusCmd implements Command {
|
|
7
8
|
private status;
|
|
@@ -23,13 +24,9 @@ export declare class MiniStatusCmd implements Command {
|
|
|
23
24
|
newComps: string[];
|
|
24
25
|
compWithIssues: {
|
|
25
26
|
id: string;
|
|
26
|
-
issues: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
solution: string;
|
|
30
|
-
isTagBlocker: boolean;
|
|
31
|
-
data: string;
|
|
32
|
-
}[];
|
|
27
|
+
issues: (import("@teambit/legacy/components/component-issues/component-issue").IssueObject & {
|
|
28
|
+
dataAsString: string;
|
|
29
|
+
})[];
|
|
33
30
|
}[] | undefined;
|
|
34
31
|
}>;
|
|
35
32
|
}
|
package/dist/mini-status-cmd.js
CHANGED
|
@@ -35,7 +35,7 @@ this command only checks source code changes, it doesn't check for config/aspect
|
|
|
35
35
|
}]);
|
|
36
36
|
_defineProperty(this, "group", 'development');
|
|
37
37
|
_defineProperty(this, "alias", 'ms');
|
|
38
|
-
_defineProperty(this, "options", [['', 'show-issues', 'show component issues (slows down the command)'], ['j', 'json', 'json format']]);
|
|
38
|
+
_defineProperty(this, "options", [['', 'show-issues', 'show component issues (slows down the command)'], ['c', 'ignore-circular-dependencies', 'do not check for circular dependencies to get the results quicker (relevant when --show-issues flag is used)'], ['j', 'json', 'json format']]);
|
|
39
39
|
_defineProperty(this, "loader", true);
|
|
40
40
|
}
|
|
41
41
|
async report([pattern], opts) {
|
|
@@ -72,7 +72,7 @@ this command only checks source code changes, it doesn't check for config/aspect
|
|
|
72
72
|
newComps: newComps.map(m => m.toStringWithoutVersion()),
|
|
73
73
|
compWithIssues: compWithIssues === null || compWithIssues === void 0 ? void 0 : compWithIssues.map(c => ({
|
|
74
74
|
id: c.id.toStringWithoutVersion(),
|
|
75
|
-
issues: c.state.issues.
|
|
75
|
+
issues: c.state.issues.toObjectIncludeDataAsString()
|
|
76
76
|
}))
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","data","require","_chalk","_interopRequireDefault","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MiniStatusCmd","constructor","status","name","description","COMPONENT_PATTERN_HELP","report","pattern","opts","modified","newComps","compWithIssues","statusMini","outputSection","title","ids","titleStr","chalk","bold","idsStr","length","map","id","toStringWithoutVersion","join","outputCompWithIssues","showIssues","issues","c","state","outputForCLI","modifiedOutput","newOutput","compWithIssuesOutput","json","m","
|
|
1
|
+
{"version":3,"names":["_constants","data","require","_chalk","_interopRequireDefault","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MiniStatusCmd","constructor","status","name","description","COMPONENT_PATTERN_HELP","report","pattern","opts","modified","newComps","compWithIssues","statusMini","outputSection","title","ids","titleStr","chalk","bold","idsStr","length","map","id","toStringWithoutVersion","join","outputCompWithIssues","showIssues","issues","c","state","outputForCLI","modifiedOutput","newOutput","compWithIssuesOutput","json","m","toObjectIncludeDataAsString","exports"],"sources":["mini-status-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { ComponentID } from '@teambit/component-id';\nimport chalk from 'chalk';\nimport { StatusMain } from './status.main.runtime';\n\nexport type MiniStatusOpts = {\n showIssues?: boolean;\n ignoreCircularDependencies?: boolean;\n};\n\nexport class MiniStatusCmd implements Command {\n name = 'mini-status [component-pattern]';\n description = 'EXPERIMENTAL. basic status for fast execution';\n extendedDescription = `shows only modified/new components with code changes. for the full status, use \"bit status\".\nthis command only checks source code changes, it doesn't check for config/aspect/dependency changes`;\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n group = 'development';\n alias = 'ms';\n options = [\n ['', 'show-issues', 'show component issues (slows down the command)'],\n [\n 'c',\n 'ignore-circular-dependencies',\n 'do not check for circular dependencies to get the results quicker (relevant when --show-issues flag is used)',\n ],\n ['j', 'json', 'json format'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private status: StatusMain) {}\n\n async report([pattern]: [string], opts: MiniStatusOpts) {\n const { modified, newComps, compWithIssues } = await this.status.statusMini(pattern, opts);\n const outputSection = (title: string, ids: ComponentID[]) => {\n const titleStr = chalk.bold(title);\n const idsStr = ids.length ? ids.map((id) => id.toStringWithoutVersion()).join('\\n') : '<none>';\n return `${titleStr}:\\n${idsStr}`;\n };\n const outputCompWithIssues = () => {\n if (!opts.showIssues) return '';\n if (!compWithIssues?.length) return '<none>';\n const titleStr = chalk.bold('\\n\\ncomponent with issues');\n const issues = compWithIssues.map((c) => `${c.id.toStringWithoutVersion()}\\n ${c.state.issues.outputForCLI()}`);\n return `${titleStr}\\n${issues}`;\n };\n const modifiedOutput = outputSection('modified components (files only)', modified);\n const newOutput = outputSection('new components', newComps);\n const compWithIssuesOutput = outputCompWithIssues();\n return `${modifiedOutput}\\n\\n${newOutput}${compWithIssuesOutput}`;\n }\n\n async json([pattern]: [string], opts: MiniStatusOpts) {\n const { modified, newComps, compWithIssues } = await this.status.statusMini(pattern, opts);\n return {\n modified: modified.map((m) => m.toStringWithoutVersion()),\n newComps: newComps.map((m) => m.toStringWithoutVersion()),\n compWithIssues: compWithIssues?.map((c) => ({\n id: c.id.toStringWithoutVersion(),\n issues: c.state.issues.toObjectIncludeDataAsString(),\n })),\n };\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KA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,CAAC,CAAC;MACzDb,QAAQ,EAAEA,QAAQ,CAACW,GAAG,CAAEc,CAAC,IAAKA,CAAC,CAACZ,sBAAsB,CAAC,CAAC,CAAC;MACzDZ,cAAc,EAAEA,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEU,GAAG,CAAEO,CAAC,KAAM;QAC1CN,EAAE,EAAEM,CAAC,CAACN,EAAE,CAACC,sBAAsB,CAAC,CAAC;QACjCI,MAAM,EAAEC,CAAC,CAACC,KAAK,CAACF,MAAM,CAACS,2BAA2B,CAAC;MACrD,CAAC,CAAC;IACJ,CAAC;EACH;AACF;AAACC,OAAA,CAAArC,aAAA,GAAAA,aAAA"}
|
package/dist/status-cmd.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
2
|
import { IssuesList } from '@teambit/component-issues';
|
|
3
3
|
import { StatusMain } from './status.main.runtime';
|
|
4
|
+
declare type StatusFlags = {
|
|
5
|
+
strict?: boolean;
|
|
6
|
+
verbose?: boolean;
|
|
7
|
+
lanes?: boolean;
|
|
8
|
+
ignoreCircularDependencies?: boolean;
|
|
9
|
+
};
|
|
4
10
|
declare type StatusJsonResults = {
|
|
5
11
|
newComponents: string[];
|
|
6
12
|
modifiedComponents: string[];
|
|
@@ -57,14 +63,8 @@ export declare class StatusCmd implements Command {
|
|
|
57
63
|
loader: boolean;
|
|
58
64
|
migration: boolean;
|
|
59
65
|
constructor(status: StatusMain);
|
|
60
|
-
json(_args: any, { lanes }:
|
|
61
|
-
|
|
62
|
-
}): Promise<StatusJsonResults>;
|
|
63
|
-
report(_args: any, { strict, verbose, lanes }: {
|
|
64
|
-
strict?: boolean;
|
|
65
|
-
verbose?: boolean;
|
|
66
|
-
lanes?: boolean;
|
|
67
|
-
}): Promise<{
|
|
66
|
+
json(_args: any, { lanes, ignoreCircularDependencies }: StatusFlags): Promise<StatusJsonResults>;
|
|
67
|
+
report(_args: any, { strict, verbose, lanes, ignoreCircularDependencies }: StatusFlags): Promise<{
|
|
68
68
|
data: string;
|
|
69
69
|
code: number;
|
|
70
70
|
}>;
|
package/dist/status-cmd.js
CHANGED
|
@@ -76,12 +76,13 @@ class StatusCmd {
|
|
|
76
76
|
_defineProperty(this, "group", 'development');
|
|
77
77
|
_defineProperty(this, "extendedDescription", void 0);
|
|
78
78
|
_defineProperty(this, "alias", 's');
|
|
79
|
-
_defineProperty(this, "options", [['j', 'json', 'return a json version of the component'], ['', 'verbose', 'show extra data: full snap hashes for staged components, and divergence point for lanes'], ['l', 'lanes', 'when on a lane, show updates from main and updates from forked lanes'], ['', 'strict', 'in case issues found, exit with code 1']]);
|
|
79
|
+
_defineProperty(this, "options", [['j', 'json', 'return a json version of the component'], ['', 'verbose', 'show extra data: full snap hashes for staged components, and divergence point for lanes'], ['l', 'lanes', 'when on a lane, show updates from main and updates from forked lanes'], ['', 'strict', 'in case issues found, exit with code 1'], ['c', 'ignore-circular-dependencies', 'do not check for circular dependencies to get the results quicker']]);
|
|
80
80
|
_defineProperty(this, "loader", true);
|
|
81
81
|
_defineProperty(this, "migration", true);
|
|
82
82
|
}
|
|
83
83
|
async json(_args, {
|
|
84
|
-
lanes
|
|
84
|
+
lanes,
|
|
85
|
+
ignoreCircularDependencies
|
|
85
86
|
}) {
|
|
86
87
|
const {
|
|
87
88
|
newComponents,
|
|
@@ -105,7 +106,8 @@ class StatusCmd {
|
|
|
105
106
|
forkedLaneId,
|
|
106
107
|
workspaceIssues
|
|
107
108
|
} = await this.status.status({
|
|
108
|
-
lanes
|
|
109
|
+
lanes,
|
|
110
|
+
ignoreCircularDependencies
|
|
109
111
|
});
|
|
110
112
|
return {
|
|
111
113
|
newComponents: newComponents.map(c => c.toStringWithoutVersion()),
|
|
@@ -119,7 +121,7 @@ class StatusCmd {
|
|
|
119
121
|
var _c$issues;
|
|
120
122
|
return {
|
|
121
123
|
id: c.id.toStringWithoutVersion(),
|
|
122
|
-
issues: (_c$issues = c.issues) === null || _c$issues === void 0 ? void 0 : _c$issues.
|
|
124
|
+
issues: (_c$issues = c.issues) === null || _c$issues === void 0 ? void 0 : _c$issues.toObjectIncludeDataAsString()
|
|
123
125
|
};
|
|
124
126
|
}),
|
|
125
127
|
importPendingComponents: importPendingComponents.map(id => id.toStringWithoutVersion()),
|
|
@@ -158,7 +160,8 @@ class StatusCmd {
|
|
|
158
160
|
async report(_args, {
|
|
159
161
|
strict,
|
|
160
162
|
verbose,
|
|
161
|
-
lanes
|
|
163
|
+
lanes,
|
|
164
|
+
ignoreCircularDependencies
|
|
162
165
|
}) {
|
|
163
166
|
const {
|
|
164
167
|
newComponents,
|
|
@@ -182,7 +185,8 @@ class StatusCmd {
|
|
|
182
185
|
forkedLaneId,
|
|
183
186
|
workspaceIssues
|
|
184
187
|
} = await this.status.status({
|
|
185
|
-
lanes
|
|
188
|
+
lanes,
|
|
189
|
+
ignoreCircularDependencies
|
|
186
190
|
});
|
|
187
191
|
// If there is problem with at least one component we want to show a link to the
|
|
188
192
|
// troubleshooting doc
|
package/dist/status-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_ramda","_utils","_chalkBox","_componentIssuesTemplate","_constants","_lodash","_componentVersion","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","TROUBLESHOOTING_MESSAGE","chalk","yellow","BASE_DOCS_DOMAIN","StatusCmd","constructor","status","json","_args","lanes","newComponents","modifiedComponents","stagedComponents","componentsWithIssues","importPendingComponents","autoTagPendingComponents","invalidComponents","locallySoftRemoved","remotelySoftRemoved","outdatedComponents","mergePendingComponents","componentsDuringMergeState","softTaggedComponents","snappedComponents","unavailableOnMain","pendingUpdatesFromMain","updatesFromForked","currentLaneId","forkedLaneId","workspaceIssues","map","c","toStringWithoutVersion","id","versions","_c$issues","issues","toObject","s","error","p","divergeData","toString","report","strict","verbose","showTroubleshootingLink","format","showIssues","message","localVersions","idWithIssues","find","isEqual","softTagged","softTaggedId","messageStatusText","messageStatusTextWithSoftTag","color","messageStatus","formatBitString","bitFormatted","join","snaps","tags","partition","version","isHash","tagsStr","snapsStr","red","statusFailureMsg","formatIssues","importPendingWarning","IMPORT_PENDING_MSG","splitByMissing","R","groupBy","component","includes","missing","nonMissing","outdatedTitle","underline","white","outdatedDesc","outdatedComps","latest","latestVersion","headVersion","cyan","outdatedStr","pendingMergeTitle","pendingMergeDesc","pendingMergeComps","snapsOnSourceOnly","snapsOnTargetOnly","pendingMergeStr","compDuringMergeTitle","compDuringMergeDesc","compDuringMergeComps","compDuringMergeStr","newComponentDescription","newComponentsTitle","newComponentsOutput","modifiedDesc","modifiedComponentOutput","immutableUnshift","autoTagPendingOutput","compWithIssuesDesc","compWithIssuesOutput","sort","invalidDesc","invalidComponentOutput","getInvalidComponentLabel","statusInvalidComponentsMsg","locallySoftRemovedDesc","locallySoftRemovedOutput","remotelySoftRemovedDesc","remotelySoftRemovedOutput","stagedDesc","stagedComponentsOutput","snappedDesc","snappedComponentsOutput","unavailableOnMainDesc","unavailableOnMainOutput","getUpdateFromMsg","from","err","msg","_divergeData$commonSn","commonSnapBeforeDiverge","toShortString","updatesFromMainOutput","updatesFromMainDesc","pendingUpdatesFromMainIds","updatesFromForkedOutput","updatesFromForkedDesc","name","pendingUpdatesFromForkedIds","getLaneStr","isDefault","prefix","bold","getWorkspaceIssuesOutput","title","troubleshootingStr","statusMsg","compact","results","statusWorkspaceIsCleanMsg","exitCode","code","exports","outputForCLI"],"sources":["status-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport R from 'ramda';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ComponentID } from '@teambit/component-id';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { immutableUnshift } from '@teambit/legacy/dist/utils';\nimport { IssuesList } from '@teambit/component-issues';\nimport { formatBitString } from '@teambit/legacy/dist/cli/chalk-box';\nimport { getInvalidComponentLabel } from '@teambit/legacy/dist/cli/templates/component-issues-template';\nimport {\n IMPORT_PENDING_MSG,\n statusFailureMsg,\n statusInvalidComponentsMsg,\n statusWorkspaceIsCleanMsg,\n BASE_DOCS_DOMAIN,\n} from '@teambit/legacy/dist/constants';\nimport { compact, partition } from 'lodash';\nimport { isHash } from '@teambit/component-version';\nimport { StatusMain, StatusResult } from './status.main.runtime';\n\nconst TROUBLESHOOTING_MESSAGE = `${chalk.yellow(\n `learn more at about Bit component: ${BASE_DOCS_DOMAIN}reference/components/component-anatomy/`\n)}`;\n\ntype StatusJsonResults = {\n newComponents: string[];\n modifiedComponents: string[];\n stagedComponents: Array<{ id: string; versions: string[] }>;\n unavailableOnMain: string[];\n componentsWithIssues: Array<{\n id: string;\n issues: Array<{\n type: string;\n description: string;\n data: any;\n }>;\n }>;\n importPendingComponents: string[];\n autoTagPendingComponents: string[];\n invalidComponents: Array<{ id: string; error: Error }>;\n locallySoftRemoved: string[];\n remotelySoftRemoved: string[];\n outdatedComponents: Array<{ id: string; headVersion: string; latestVersion?: string }>;\n mergePendingComponents: string[];\n componentsDuringMergeState: string[];\n softTaggedComponents: string[];\n snappedComponents: string[];\n pendingUpdatesFromMain: Array<{\n id: string;\n divergeData: any;\n }>;\n updatesFromForked: Array<{\n id: string;\n divergeData: any;\n }>;\n currentLaneId: string;\n forkedLaneId: string | undefined;\n workspaceIssues: string[];\n};\n\nexport class StatusCmd implements Command {\n name = 'status';\n description = 'present the current status of components in the workspace, including indication of detected issues';\n group = 'development';\n extendedDescription: string;\n alias = 's';\n options = [\n ['j', 'json', 'return a json version of the component'],\n ['', 'verbose', 'show extra data: full snap hashes for staged components, and divergence point for lanes'],\n ['l', 'lanes', 'when on a lane, show updates from main and updates from forked lanes'],\n ['', 'strict', 'in case issues found, exit with code 1'],\n ] as CommandOptions;\n loader = true;\n migration = true;\n\n constructor(private status: StatusMain) {}\n\n async json(_args, { lanes }: { lanes?: boolean }): Promise<StatusJsonResults> {\n const {\n newComponents,\n modifiedComponents,\n stagedComponents,\n componentsWithIssues,\n importPendingComponents,\n autoTagPendingComponents,\n invalidComponents,\n locallySoftRemoved,\n remotelySoftRemoved,\n outdatedComponents,\n mergePendingComponents,\n componentsDuringMergeState,\n softTaggedComponents,\n snappedComponents,\n unavailableOnMain,\n pendingUpdatesFromMain,\n updatesFromForked,\n currentLaneId,\n forkedLaneId,\n workspaceIssues,\n }: StatusResult = await this.status.status({ lanes });\n return {\n newComponents: newComponents.map((c) => c.toStringWithoutVersion()),\n modifiedComponents: modifiedComponents.map((c) => c.toStringWithoutVersion()),\n stagedComponents: stagedComponents.map((c) => ({ id: c.id.toStringWithoutVersion(), versions: c.versions })),\n unavailableOnMain: unavailableOnMain.map((c) => c.toStringWithoutVersion()),\n componentsWithIssues: componentsWithIssues.map((c) => ({\n id: c.id.toStringWithoutVersion(),\n issues: c.issues?.toObject(),\n })),\n importPendingComponents: importPendingComponents.map((id) => id.toStringWithoutVersion()),\n autoTagPendingComponents: autoTagPendingComponents.map((s) => s.toStringWithoutVersion()),\n invalidComponents: invalidComponents.map(({ id, error }) => ({ id: id.toStringWithoutVersion(), error })),\n locallySoftRemoved: locallySoftRemoved.map((id) => id.toStringWithoutVersion()),\n remotelySoftRemoved: remotelySoftRemoved.map((id) => id.toStringWithoutVersion()),\n outdatedComponents: outdatedComponents.map((c) => ({ ...c, id: c.id.toStringWithoutVersion() })),\n mergePendingComponents: mergePendingComponents.map((c) => c.id.toStringWithoutVersion()),\n componentsDuringMergeState: componentsDuringMergeState.map((id) => id.toStringWithoutVersion()),\n softTaggedComponents: softTaggedComponents.map((s) => s.toStringWithoutVersion()),\n snappedComponents: snappedComponents.map((s) => s.toStringWithoutVersion()),\n pendingUpdatesFromMain: pendingUpdatesFromMain.map((p) => ({\n id: p.id.toStringWithoutVersion(),\n divergeData: p.divergeData,\n })),\n updatesFromForked: updatesFromForked.map((p) => ({\n id: p.id.toStringWithoutVersion(),\n divergeData: p.divergeData,\n })),\n currentLaneId: currentLaneId.toString(),\n forkedLaneId: forkedLaneId?.toString(),\n workspaceIssues,\n };\n }\n\n // eslint-disable-next-line complexity\n async report(_args, { strict, verbose, lanes }: { strict?: boolean; verbose?: boolean; lanes?: boolean }) {\n const {\n newComponents,\n modifiedComponents,\n stagedComponents,\n componentsWithIssues,\n importPendingComponents,\n autoTagPendingComponents,\n invalidComponents,\n locallySoftRemoved,\n remotelySoftRemoved,\n outdatedComponents,\n mergePendingComponents,\n componentsDuringMergeState,\n softTaggedComponents,\n snappedComponents,\n pendingUpdatesFromMain,\n updatesFromForked,\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues,\n }: StatusResult = await this.status.status({ lanes });\n // If there is problem with at least one component we want to show a link to the\n // troubleshooting doc\n let showTroubleshootingLink = false;\n\n function format(id: ComponentID, showIssues = false, message?: string, localVersions?: string[]): string {\n const idWithIssues = componentsWithIssues.find((c) => c.id.isEqual(id));\n const softTagged = softTaggedComponents.find((softTaggedId) => softTaggedId.isEqual(id));\n\n const messageStatusText = message || 'ok';\n const messageStatusTextWithSoftTag = softTagged ? `${messageStatusText} (soft-tagged)` : messageStatusText;\n const color = message ? 'yellow' : 'green';\n const messageStatus = chalk[color](messageStatusTextWithSoftTag);\n\n if (!showIssues && !localVersions) {\n return `${formatBitString(id.toStringWithoutVersion())} ... ${messageStatus}`;\n }\n let bitFormatted = `${formatBitString(id.toStringWithoutVersion())}`;\n if (localVersions) {\n if (verbose) {\n bitFormatted += `. versions: ${localVersions.join(', ')}`;\n } else {\n const [snaps, tags] = partition(localVersions, (version) => isHash(version));\n const tagsStr = tags.length ? `versions: ${tags.join(', ')}` : '';\n const snapsStr = snaps.length ? `${snaps.length} snap(s)` : '';\n bitFormatted += `. `;\n bitFormatted += tagsStr && snapsStr ? `${tagsStr}. and ${snapsStr}` : tagsStr || snapsStr;\n }\n }\n bitFormatted += ' ... ';\n if (!idWithIssues) return `${bitFormatted}${messageStatus}`;\n showTroubleshootingLink = true;\n return `${bitFormatted} ${chalk.red(statusFailureMsg)}${formatIssues(idWithIssues.issues)}`;\n }\n\n const importPendingWarning = importPendingComponents.length ? chalk.yellow(`${IMPORT_PENDING_MSG}.\\n`) : '';\n\n const splitByMissing = R.groupBy((component) => {\n return component.includes(statusFailureMsg) ? 'missing' : 'nonMissing';\n });\n const { missing, nonMissing } = splitByMissing(newComponents.map((c) => format(c)));\n\n const outdatedTitle = chalk.underline.white('pending updates');\n const outdatedDesc =\n '(use \"bit checkout head\" to merge changes)\\n(use \"bit diff [component_id] [new_version]\" to compare changes)\\n(use \"bit log [component_id]\" to list all available versions)\\n';\n const outdatedComps = outdatedComponents\n .map((component) => {\n const latest =\n component.latestVersion && component.latestVersion !== component.headVersion\n ? ` latest: ${component.latestVersion}`\n : '';\n return ` > ${chalk.cyan(component.id.toStringWithoutVersion())} current: ${component.id.version} head: ${\n component.headVersion\n }${latest}\\n`;\n })\n .join('');\n\n const outdatedStr = outdatedComponents.length ? [outdatedTitle, outdatedDesc, outdatedComps].join('\\n') : '';\n\n const pendingMergeTitle = chalk.underline.white('pending merge');\n const pendingMergeDesc = `(use \"bit reset\" to discard local tags/snaps, and bit checkout head to re-merge with the remote.\nalternatively, to keep local tags/snaps history, use \"bit merge [component-id]\")\\n`;\n const pendingMergeComps = mergePendingComponents\n .map((component) => {\n return ` > ${chalk.cyan(component.id.toString())} local and remote have diverged and have ${\n component.divergeData.snapsOnSourceOnly.length\n } (source) and ${component.divergeData.snapsOnTargetOnly.length} (target) uncommon snaps respectively\\n`;\n })\n .join('');\n\n const pendingMergeStr = pendingMergeComps.length\n ? [pendingMergeTitle, pendingMergeDesc, pendingMergeComps].join('\\n')\n : '';\n\n const compDuringMergeTitle = chalk.underline.white('components in merge state');\n const compDuringMergeDesc = `(use \"bit snap/tag [--unmerged]\" to complete the merge process.\nto cancel the merge operation, use either \"bit lane merge-abort\" (for prior \"bit lane merge\" command)\nor use \"bit merge [component-id] --abort\" (for prior \"bit merge\" command)\\n`;\n const compDuringMergeComps = componentsDuringMergeState.map((c) => format(c)).join('\\n');\n\n const compDuringMergeStr = compDuringMergeComps.length\n ? [compDuringMergeTitle, compDuringMergeDesc, compDuringMergeComps].join('\\n')\n : '';\n\n const newComponentDescription = '\\n(use \"bit snap/tag\" to lock a version with all your changes)\\n';\n const newComponentsTitle = newComponents.length\n ? chalk.underline.white('new components') + newComponentDescription\n : '';\n\n const newComponentsOutput = [newComponentsTitle, ...(nonMissing || []), ...(missing || [])].join('\\n');\n\n const modifiedDesc = '(use \"bit diff\" to compare changes)\\n';\n const modifiedComponentOutput = immutableUnshift(\n modifiedComponents.map((c) => format(c)),\n modifiedComponents.length\n ? chalk.underline.white('modified components') + newComponentDescription + modifiedDesc\n : ''\n ).join('\\n');\n\n const autoTagPendingOutput = immutableUnshift(\n autoTagPendingComponents.map((c) => format(c)),\n autoTagPendingComponents.length\n ? chalk.underline.white('components pending auto-tag (when their modified dependencies are tagged)')\n : ''\n ).join('\\n');\n\n const compWithIssuesDesc = '\\n(fix the issues according to the suggested solution)\\n';\n const compWithIssuesOutput = immutableUnshift(\n componentsWithIssues.map((c) => format(c.id, true)).sort(),\n componentsWithIssues.length ? chalk.underline.white('components with issues') + compWithIssuesDesc : ''\n ).join('\\n');\n\n const invalidDesc = '\\nthese components failed to load.\\n';\n const invalidComponentOutput = immutableUnshift(\n invalidComponents.map((c) => format(c.id, false, getInvalidComponentLabel(c.error))).sort(),\n invalidComponents.length ? chalk.underline.white(statusInvalidComponentsMsg) + invalidDesc : ''\n ).join('\\n');\n\n const locallySoftRemovedDesc =\n '\\n(tag/snap and export the components to update the deletion to the remote. to undo deletion, run \"bit recover\")\\n';\n const locallySoftRemovedOutput = immutableUnshift(\n locallySoftRemoved.map((c) => format(c)).sort(),\n locallySoftRemoved.length ? chalk.underline.white('soft-removed components locally') + locallySoftRemovedDesc : ''\n ).join('\\n');\n\n const remotelySoftRemovedDesc =\n '\\n(use \"bit remove\" to remove them from the workspace. use \"bit recover\" to undo the soft-remove)\\n';\n const remotelySoftRemovedOutput = immutableUnshift(\n remotelySoftRemoved.map((c) => format(c)).sort(),\n remotelySoftRemoved.length\n ? chalk.underline.white('components deleted on the remote') + remotelySoftRemovedDesc\n : ''\n ).join('\\n');\n\n const stagedDesc = '\\n(use \"bit export\" to push these component versions to the remote scope)\\n';\n const stagedComponentsOutput = immutableUnshift(\n stagedComponents.map((c) => format(c.id, false, undefined, c.versions)),\n stagedComponents.length ? chalk.underline.white('staged components') + stagedDesc : ''\n ).join('\\n');\n\n const snappedDesc = '\\n(use \"bit tag\" or \"bit tag --snapped\" to lock a semver version)\\n';\n const snappedComponentsOutput = immutableUnshift(\n snappedComponents.map((c) => format(c)),\n snappedComponents.length ? chalk.underline.white('snapped components (tag pending)') + snappedDesc : ''\n ).join('\\n');\n\n const unavailableOnMainDesc = '\\n(use \"bit checkout head\" to make them available)\\n';\n const unavailableOnMainOutput = immutableUnshift(\n unavailableOnMain.map((c) => format(c)),\n unavailableOnMain.length ? chalk.underline.white('components unavailable on main') + unavailableOnMainDesc : ''\n ).join('\\n');\n\n const getUpdateFromMsg = (divergeData: SnapsDistance, from = 'main'): string => {\n if (divergeData.err) return divergeData.err.message;\n let msg = `${from} is ahead by ${divergeData.snapsOnTargetOnly.length || 0} snaps`;\n if (divergeData.snapsOnSourceOnly && verbose) {\n msg += ` (diverged since ${divergeData.commonSnapBeforeDiverge?.toShortString()})`;\n }\n return msg;\n };\n\n let updatesFromMainOutput = '';\n\n const updatesFromMainDesc = '\\n(use \"bit lane merge main\" to merge the changes)\\n';\n const pendingUpdatesFromMainIds = pendingUpdatesFromMain.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData))\n );\n updatesFromMainOutput = [\n pendingUpdatesFromMain.length ? chalk.underline.white('pending updates from main') + updatesFromMainDesc : '',\n ...pendingUpdatesFromMainIds,\n ].join('\\n');\n\n let updatesFromForkedOutput = '';\n if (forkedLaneId) {\n const updatesFromForkedDesc = `\\n(use \"bit lane merge ${forkedLaneId.toString()}\" to merge the changes\nuse \"bit fetch ${forkedLaneId.toString()} --lanes\" to update ${forkedLaneId.name} locally)\\n`;\n const pendingUpdatesFromForkedIds = updatesFromForked.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData, forkedLaneId.name))\n );\n updatesFromForkedOutput = [\n updatesFromForked.length\n ? chalk.underline.white(`updates from ${forkedLaneId.name}`) + updatesFromForkedDesc\n : '',\n ...pendingUpdatesFromForkedIds,\n ].join('\\n');\n }\n\n const getLaneStr = () => {\n if (currentLaneId.isDefault()) return '';\n const prefix = `\\n\\ncurrent lane ${chalk.bold(currentLaneId.toString())}`;\n if (lanes) return prefix;\n return `${prefix}\\nconsider adding \"--lanes\" flag to see updates from main/forked`;\n };\n\n const getWorkspaceIssuesOutput = () => {\n if (!workspaceIssues.length) return '';\n const title = chalk.underline.white('workspace issues');\n const issues = workspaceIssues.join('\\n');\n return `\\n\\n${title}\\n${issues}`;\n };\n\n const troubleshootingStr = showTroubleshootingLink ? `\\n${TROUBLESHOOTING_MESSAGE}` : '';\n\n const statusMsg =\n importPendingWarning +\n compact([\n outdatedStr,\n pendingMergeStr,\n updatesFromMainOutput,\n updatesFromForkedOutput,\n compDuringMergeStr,\n newComponentsOutput,\n modifiedComponentOutput,\n snappedComponentsOutput,\n stagedComponentsOutput,\n unavailableOnMainOutput,\n autoTagPendingOutput,\n compWithIssuesOutput,\n invalidComponentOutput,\n locallySoftRemovedOutput,\n remotelySoftRemovedOutput,\n ]).join(chalk.underline('\\n \\n') + chalk.white('\\n')) +\n troubleshootingStr;\n\n const results = (statusMsg || chalk.yellow(statusWorkspaceIsCleanMsg)) + getWorkspaceIssuesOutput() + getLaneStr();\n\n const exitCode = componentsWithIssues.length && strict ? 1 : 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GAAGlF,gBAAK,CAACmF,KAAK,CAAC,IAAI,CAAC,CAAC,GAC7E8D,kBAAkB;IAEpB,MAAMG,OAAO,GAAG,CAACF,SAAS,IAAIlJ,gBAAK,CAACC,MAAM,CAACoJ,sCAAyB,CAAC,IAAIN,wBAAwB,CAAC,CAAC,GAAGJ,UAAU,CAAC,CAAC;IAElH,MAAMW,QAAQ,GAAG1I,oBAAoB,CAACrC,MAAM,IAAIoE,MAAM,GAAG,CAAC,GAAG,CAAC;IAE9D,OAAO;MACLhG,IAAI,EAAEyM,OAAO;MACbG,IAAI,EAAED;IACR,CAAC;EACH;AACF;AAACE,OAAA,CAAArJ,SAAA,GAAAA,SAAA;AAEM,SAASoE,YAAYA,CAACpC,MAAkB,EAAE;EAC/C,OAAQ,UAASA,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEsH,YAAY,CAAC,CAAE,IAAG;AAC7C"}
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_ramda","_utils","_chalkBox","_componentIssuesTemplate","_constants","_lodash","_componentVersion","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","TROUBLESHOOTING_MESSAGE","chalk","yellow","BASE_DOCS_DOMAIN","StatusCmd","constructor","status","json","_args","lanes","ignoreCircularDependencies","newComponents","modifiedComponents","stagedComponents","componentsWithIssues","importPendingComponents","autoTagPendingComponents","invalidComponents","locallySoftRemoved","remotelySoftRemoved","outdatedComponents","mergePendingComponents","componentsDuringMergeState","softTaggedComponents","snappedComponents","unavailableOnMain","pendingUpdatesFromMain","updatesFromForked","currentLaneId","forkedLaneId","workspaceIssues","map","c","toStringWithoutVersion","id","versions","_c$issues","issues","toObjectIncludeDataAsString","s","error","p","divergeData","toString","report","strict","verbose","showTroubleshootingLink","format","showIssues","message","localVersions","idWithIssues","find","isEqual","softTagged","softTaggedId","messageStatusText","messageStatusTextWithSoftTag","color","messageStatus","formatBitString","bitFormatted","join","snaps","tags","partition","version","isHash","tagsStr","snapsStr","red","statusFailureMsg","formatIssues","importPendingWarning","IMPORT_PENDING_MSG","splitByMissing","R","groupBy","component","includes","missing","nonMissing","outdatedTitle","underline","white","outdatedDesc","outdatedComps","latest","latestVersion","headVersion","cyan","outdatedStr","pendingMergeTitle","pendingMergeDesc","pendingMergeComps","snapsOnSourceOnly","snapsOnTargetOnly","pendingMergeStr","compDuringMergeTitle","compDuringMergeDesc","compDuringMergeComps","compDuringMergeStr","newComponentDescription","newComponentsTitle","newComponentsOutput","modifiedDesc","modifiedComponentOutput","immutableUnshift","autoTagPendingOutput","compWithIssuesDesc","compWithIssuesOutput","sort","invalidDesc","invalidComponentOutput","getInvalidComponentLabel","statusInvalidComponentsMsg","locallySoftRemovedDesc","locallySoftRemovedOutput","remotelySoftRemovedDesc","remotelySoftRemovedOutput","stagedDesc","stagedComponentsOutput","snappedDesc","snappedComponentsOutput","unavailableOnMainDesc","unavailableOnMainOutput","getUpdateFromMsg","from","err","msg","_divergeData$commonSn","commonSnapBeforeDiverge","toShortString","updatesFromMainOutput","updatesFromMainDesc","pendingUpdatesFromMainIds","updatesFromForkedOutput","updatesFromForkedDesc","name","pendingUpdatesFromForkedIds","getLaneStr","isDefault","prefix","bold","getWorkspaceIssuesOutput","title","troubleshootingStr","statusMsg","compact","results","statusWorkspaceIsCleanMsg","exitCode","code","exports","outputForCLI"],"sources":["status-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport R from 'ramda';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ComponentID } from '@teambit/component-id';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { immutableUnshift } from '@teambit/legacy/dist/utils';\nimport { IssuesList } from '@teambit/component-issues';\nimport { formatBitString } from '@teambit/legacy/dist/cli/chalk-box';\nimport { getInvalidComponentLabel } from '@teambit/legacy/dist/cli/templates/component-issues-template';\nimport {\n IMPORT_PENDING_MSG,\n statusFailureMsg,\n statusInvalidComponentsMsg,\n statusWorkspaceIsCleanMsg,\n BASE_DOCS_DOMAIN,\n} from '@teambit/legacy/dist/constants';\nimport { compact, partition } from 'lodash';\nimport { isHash } from '@teambit/component-version';\nimport { StatusMain, StatusResult } from './status.main.runtime';\n\nconst TROUBLESHOOTING_MESSAGE = `${chalk.yellow(\n `learn more at about Bit component: ${BASE_DOCS_DOMAIN}reference/components/component-anatomy/`\n)}`;\n\ntype StatusFlags = { strict?: boolean; verbose?: boolean; lanes?: boolean; ignoreCircularDependencies?: boolean };\n\ntype StatusJsonResults = {\n newComponents: string[];\n modifiedComponents: string[];\n stagedComponents: Array<{ id: string; versions: string[] }>;\n unavailableOnMain: string[];\n componentsWithIssues: Array<{\n id: string;\n issues: Array<{\n type: string;\n description: string;\n data: any;\n }>;\n }>;\n importPendingComponents: string[];\n autoTagPendingComponents: string[];\n invalidComponents: Array<{ id: string; error: Error }>;\n locallySoftRemoved: string[];\n remotelySoftRemoved: string[];\n outdatedComponents: Array<{ id: string; headVersion: string; latestVersion?: string }>;\n mergePendingComponents: string[];\n componentsDuringMergeState: string[];\n softTaggedComponents: string[];\n snappedComponents: string[];\n pendingUpdatesFromMain: Array<{\n id: string;\n divergeData: any;\n }>;\n updatesFromForked: Array<{\n id: string;\n divergeData: any;\n }>;\n currentLaneId: string;\n forkedLaneId: string | undefined;\n workspaceIssues: string[];\n};\n\nexport class StatusCmd implements Command {\n name = 'status';\n description = 'present the current status of components in the workspace, including indication of detected issues';\n group = 'development';\n extendedDescription: string;\n alias = 's';\n options = [\n ['j', 'json', 'return a json version of the component'],\n ['', 'verbose', 'show extra data: full snap hashes for staged components, and divergence point for lanes'],\n ['l', 'lanes', 'when on a lane, show updates from main and updates from forked lanes'],\n ['', 'strict', 'in case issues found, exit with code 1'],\n ['c', 'ignore-circular-dependencies', 'do not check for circular dependencies to get the results quicker'],\n ] as CommandOptions;\n loader = true;\n migration = true;\n\n constructor(private status: StatusMain) {}\n\n async json(_args, { lanes, ignoreCircularDependencies }: StatusFlags): Promise<StatusJsonResults> {\n const {\n newComponents,\n modifiedComponents,\n stagedComponents,\n componentsWithIssues,\n importPendingComponents,\n autoTagPendingComponents,\n invalidComponents,\n locallySoftRemoved,\n remotelySoftRemoved,\n outdatedComponents,\n mergePendingComponents,\n componentsDuringMergeState,\n softTaggedComponents,\n snappedComponents,\n unavailableOnMain,\n pendingUpdatesFromMain,\n updatesFromForked,\n currentLaneId,\n forkedLaneId,\n workspaceIssues,\n }: StatusResult = await this.status.status({ lanes, ignoreCircularDependencies });\n return {\n newComponents: newComponents.map((c) => c.toStringWithoutVersion()),\n modifiedComponents: modifiedComponents.map((c) => c.toStringWithoutVersion()),\n stagedComponents: stagedComponents.map((c) => ({ id: c.id.toStringWithoutVersion(), versions: c.versions })),\n unavailableOnMain: unavailableOnMain.map((c) => c.toStringWithoutVersion()),\n componentsWithIssues: componentsWithIssues.map((c) => ({\n id: c.id.toStringWithoutVersion(),\n issues: c.issues?.toObjectIncludeDataAsString(),\n })),\n importPendingComponents: importPendingComponents.map((id) => id.toStringWithoutVersion()),\n autoTagPendingComponents: autoTagPendingComponents.map((s) => s.toStringWithoutVersion()),\n invalidComponents: invalidComponents.map(({ id, error }) => ({ id: id.toStringWithoutVersion(), error })),\n locallySoftRemoved: locallySoftRemoved.map((id) => id.toStringWithoutVersion()),\n remotelySoftRemoved: remotelySoftRemoved.map((id) => id.toStringWithoutVersion()),\n outdatedComponents: outdatedComponents.map((c) => ({ ...c, id: c.id.toStringWithoutVersion() })),\n mergePendingComponents: mergePendingComponents.map((c) => c.id.toStringWithoutVersion()),\n componentsDuringMergeState: componentsDuringMergeState.map((id) => id.toStringWithoutVersion()),\n softTaggedComponents: softTaggedComponents.map((s) => s.toStringWithoutVersion()),\n snappedComponents: snappedComponents.map((s) => s.toStringWithoutVersion()),\n pendingUpdatesFromMain: pendingUpdatesFromMain.map((p) => ({\n id: p.id.toStringWithoutVersion(),\n divergeData: p.divergeData,\n })),\n updatesFromForked: updatesFromForked.map((p) => ({\n id: p.id.toStringWithoutVersion(),\n divergeData: p.divergeData,\n })),\n currentLaneId: currentLaneId.toString(),\n forkedLaneId: forkedLaneId?.toString(),\n workspaceIssues,\n };\n }\n\n // eslint-disable-next-line complexity\n async report(_args, { strict, verbose, lanes, ignoreCircularDependencies }: StatusFlags) {\n const {\n newComponents,\n modifiedComponents,\n stagedComponents,\n componentsWithIssues,\n importPendingComponents,\n autoTagPendingComponents,\n invalidComponents,\n locallySoftRemoved,\n remotelySoftRemoved,\n outdatedComponents,\n mergePendingComponents,\n componentsDuringMergeState,\n softTaggedComponents,\n snappedComponents,\n pendingUpdatesFromMain,\n updatesFromForked,\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues,\n }: StatusResult = await this.status.status({ lanes, ignoreCircularDependencies });\n // If there is problem with at least one component we want to show a link to the\n // troubleshooting doc\n let showTroubleshootingLink = false;\n\n function format(id: ComponentID, showIssues = false, message?: string, localVersions?: string[]): string {\n const idWithIssues = componentsWithIssues.find((c) => c.id.isEqual(id));\n const softTagged = softTaggedComponents.find((softTaggedId) => softTaggedId.isEqual(id));\n\n const messageStatusText = message || 'ok';\n const messageStatusTextWithSoftTag = softTagged ? `${messageStatusText} (soft-tagged)` : messageStatusText;\n const color = message ? 'yellow' : 'green';\n const messageStatus = chalk[color](messageStatusTextWithSoftTag);\n\n if (!showIssues && !localVersions) {\n return `${formatBitString(id.toStringWithoutVersion())} ... ${messageStatus}`;\n }\n let bitFormatted = `${formatBitString(id.toStringWithoutVersion())}`;\n if (localVersions) {\n if (verbose) {\n bitFormatted += `. versions: ${localVersions.join(', ')}`;\n } else {\n const [snaps, tags] = partition(localVersions, (version) => isHash(version));\n const tagsStr = tags.length ? `versions: ${tags.join(', ')}` : '';\n const snapsStr = snaps.length ? `${snaps.length} snap(s)` : '';\n bitFormatted += `. `;\n bitFormatted += tagsStr && snapsStr ? `${tagsStr}. and ${snapsStr}` : tagsStr || snapsStr;\n }\n }\n bitFormatted += ' ... ';\n if (!idWithIssues) return `${bitFormatted}${messageStatus}`;\n showTroubleshootingLink = true;\n return `${bitFormatted} ${chalk.red(statusFailureMsg)}${formatIssues(idWithIssues.issues)}`;\n }\n\n const importPendingWarning = importPendingComponents.length ? chalk.yellow(`${IMPORT_PENDING_MSG}.\\n`) : '';\n\n const splitByMissing = R.groupBy((component) => {\n return component.includes(statusFailureMsg) ? 'missing' : 'nonMissing';\n });\n const { missing, nonMissing } = splitByMissing(newComponents.map((c) => format(c)));\n\n const outdatedTitle = chalk.underline.white('pending updates');\n const outdatedDesc =\n '(use \"bit checkout head\" to merge changes)\\n(use \"bit diff [component_id] [new_version]\" to compare changes)\\n(use \"bit log [component_id]\" to list all available versions)\\n';\n const outdatedComps = outdatedComponents\n .map((component) => {\n const latest =\n component.latestVersion && component.latestVersion !== component.headVersion\n ? ` latest: ${component.latestVersion}`\n : '';\n return ` > ${chalk.cyan(component.id.toStringWithoutVersion())} current: ${component.id.version} head: ${\n component.headVersion\n }${latest}\\n`;\n })\n .join('');\n\n const outdatedStr = outdatedComponents.length ? [outdatedTitle, outdatedDesc, outdatedComps].join('\\n') : '';\n\n const pendingMergeTitle = chalk.underline.white('pending merge');\n const pendingMergeDesc = `(use \"bit reset\" to discard local tags/snaps, and bit checkout head to re-merge with the remote.\nalternatively, to keep local tags/snaps history, use \"bit merge [component-id]\")\\n`;\n const pendingMergeComps = mergePendingComponents\n .map((component) => {\n return ` > ${chalk.cyan(component.id.toString())} local and remote have diverged and have ${\n component.divergeData.snapsOnSourceOnly.length\n } (source) and ${component.divergeData.snapsOnTargetOnly.length} (target) uncommon snaps respectively\\n`;\n })\n .join('');\n\n const pendingMergeStr = pendingMergeComps.length\n ? [pendingMergeTitle, pendingMergeDesc, pendingMergeComps].join('\\n')\n : '';\n\n const compDuringMergeTitle = chalk.underline.white('components in merge state');\n const compDuringMergeDesc = `(use \"bit snap/tag [--unmerged]\" to complete the merge process.\nto cancel the merge operation, use either \"bit lane merge-abort\" (for prior \"bit lane merge\" command)\nor use \"bit merge [component-id] --abort\" (for prior \"bit merge\" command)\\n`;\n const compDuringMergeComps = componentsDuringMergeState.map((c) => format(c)).join('\\n');\n\n const compDuringMergeStr = compDuringMergeComps.length\n ? [compDuringMergeTitle, compDuringMergeDesc, compDuringMergeComps].join('\\n')\n : '';\n\n const newComponentDescription = '\\n(use \"bit snap/tag\" to lock a version with all your changes)\\n';\n const newComponentsTitle = newComponents.length\n ? chalk.underline.white('new components') + newComponentDescription\n : '';\n\n const newComponentsOutput = [newComponentsTitle, ...(nonMissing || []), ...(missing || [])].join('\\n');\n\n const modifiedDesc = '(use \"bit diff\" to compare changes)\\n';\n const modifiedComponentOutput = immutableUnshift(\n modifiedComponents.map((c) => format(c)),\n modifiedComponents.length\n ? chalk.underline.white('modified components') + newComponentDescription + modifiedDesc\n : ''\n ).join('\\n');\n\n const autoTagPendingOutput = immutableUnshift(\n autoTagPendingComponents.map((c) => format(c)),\n autoTagPendingComponents.length\n ? chalk.underline.white('components pending auto-tag (when their modified dependencies are tagged)')\n : ''\n ).join('\\n');\n\n const compWithIssuesDesc = '\\n(fix the issues according to the suggested solution)\\n';\n const compWithIssuesOutput = immutableUnshift(\n componentsWithIssues.map((c) => format(c.id, true)).sort(),\n componentsWithIssues.length ? chalk.underline.white('components with issues') + compWithIssuesDesc : ''\n ).join('\\n');\n\n const invalidDesc = '\\nthese components failed to load.\\n';\n const invalidComponentOutput = immutableUnshift(\n invalidComponents.map((c) => format(c.id, false, getInvalidComponentLabel(c.error))).sort(),\n invalidComponents.length ? chalk.underline.white(statusInvalidComponentsMsg) + invalidDesc : ''\n ).join('\\n');\n\n const locallySoftRemovedDesc =\n '\\n(tag/snap and export the components to update the deletion to the remote. to undo deletion, run \"bit recover\")\\n';\n const locallySoftRemovedOutput = immutableUnshift(\n locallySoftRemoved.map((c) => format(c)).sort(),\n locallySoftRemoved.length ? chalk.underline.white('soft-removed components locally') + locallySoftRemovedDesc : ''\n ).join('\\n');\n\n const remotelySoftRemovedDesc =\n '\\n(use \"bit remove\" to remove them from the workspace. use \"bit recover\" to undo the soft-remove)\\n';\n const remotelySoftRemovedOutput = immutableUnshift(\n remotelySoftRemoved.map((c) => format(c)).sort(),\n remotelySoftRemoved.length\n ? chalk.underline.white('components deleted on the remote') + remotelySoftRemovedDesc\n : ''\n ).join('\\n');\n\n const stagedDesc = '\\n(use \"bit export\" to push these component versions to the remote scope)\\n';\n const stagedComponentsOutput = immutableUnshift(\n stagedComponents.map((c) => format(c.id, false, undefined, c.versions)),\n stagedComponents.length ? chalk.underline.white('staged components') + stagedDesc : ''\n ).join('\\n');\n\n const snappedDesc = '\\n(use \"bit tag\" or \"bit tag --snapped\" to lock a semver version)\\n';\n const snappedComponentsOutput = immutableUnshift(\n snappedComponents.map((c) => format(c)),\n snappedComponents.length ? chalk.underline.white('snapped components (tag pending)') + snappedDesc : ''\n ).join('\\n');\n\n const unavailableOnMainDesc = '\\n(use \"bit checkout head\" to make them available)\\n';\n const unavailableOnMainOutput = immutableUnshift(\n unavailableOnMain.map((c) => format(c)),\n unavailableOnMain.length ? chalk.underline.white('components unavailable on main') + unavailableOnMainDesc : ''\n ).join('\\n');\n\n const getUpdateFromMsg = (divergeData: SnapsDistance, from = 'main'): string => {\n if (divergeData.err) return divergeData.err.message;\n let msg = `${from} is ahead by ${divergeData.snapsOnTargetOnly.length || 0} snaps`;\n if (divergeData.snapsOnSourceOnly && verbose) {\n msg += ` (diverged since ${divergeData.commonSnapBeforeDiverge?.toShortString()})`;\n }\n return msg;\n };\n\n let updatesFromMainOutput = '';\n\n const updatesFromMainDesc = '\\n(use \"bit lane merge main\" to merge the changes)\\n';\n const pendingUpdatesFromMainIds = pendingUpdatesFromMain.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData))\n );\n updatesFromMainOutput = [\n pendingUpdatesFromMain.length ? chalk.underline.white('pending updates from main') + updatesFromMainDesc : '',\n ...pendingUpdatesFromMainIds,\n ].join('\\n');\n\n let updatesFromForkedOutput = '';\n if (forkedLaneId) {\n const updatesFromForkedDesc = `\\n(use \"bit lane merge ${forkedLaneId.toString()}\" to merge the changes\nuse \"bit fetch ${forkedLaneId.toString()} --lanes\" to update ${forkedLaneId.name} locally)\\n`;\n const pendingUpdatesFromForkedIds = updatesFromForked.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData, forkedLaneId.name))\n );\n updatesFromForkedOutput = [\n updatesFromForked.length\n ? chalk.underline.white(`updates from ${forkedLaneId.name}`) + updatesFromForkedDesc\n : '',\n ...pendingUpdatesFromForkedIds,\n ].join('\\n');\n }\n\n const getLaneStr = () => {\n if (currentLaneId.isDefault()) return '';\n const prefix = `\\n\\ncurrent lane ${chalk.bold(currentLaneId.toString())}`;\n if (lanes) return prefix;\n return `${prefix}\\nconsider adding \"--lanes\" flag to see updates from main/forked`;\n };\n\n const getWorkspaceIssuesOutput = () => {\n if (!workspaceIssues.length) return '';\n const title = chalk.underline.white('workspace issues');\n const issues = workspaceIssues.join('\\n');\n return `\\n\\n${title}\\n${issues}`;\n };\n\n const troubleshootingStr = showTroubleshootingLink ? `\\n${TROUBLESHOOTING_MESSAGE}` : '';\n\n const statusMsg =\n importPendingWarning +\n compact([\n outdatedStr,\n pendingMergeStr,\n updatesFromMainOutput,\n updatesFromForkedOutput,\n compDuringMergeStr,\n newComponentsOutput,\n modifiedComponentOutput,\n snappedComponentsOutput,\n stagedComponentsOutput,\n unavailableOnMainOutput,\n autoTagPendingOutput,\n compWithIssuesOutput,\n invalidComponentOutput,\n locallySoftRemovedOutput,\n remotelySoftRemovedOutput,\n ]).join(chalk.underline('\\n \\n') + chalk.white('\\n')) +\n troubleshootingStr;\n\n const results = (statusMsg || chalk.yellow(statusWorkspaceIsCleanMsg)) + getWorkspaceIssuesOutput() + getLaneStr();\n\n const exitCode = componentsWithIssues.length && strict ? 1 : 0;\n\n return {\n data: results,\n code: exitCode,\n };\n }\n}\n\nexport function formatIssues(issues: IssuesList) {\n return ` ${issues?.outputForCLI()}\\n`;\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,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;AAIA,SAAAI,OAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,yBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,wBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAOA,SAAAQ,QAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,OAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,kBAAA;EAAA,MAAAT,IAAA,GAAAE,OAAA;EAAAO,iBAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;A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ACtBI,uBAAuB,EACvBjB,oBAAoB,EACpBE,oBAAoB,EACpBG,sBAAsB,EACtBI,wBAAwB,EACxBE,yBAAyB,CAC1B,CAAC,CAACzD,IAAI,CAAC9D,gBAAK,CAACmF,SAAS,CAAC,+BAA+B,CAAC,GAAGnF,gBAAK,CAACoF,KAAK,CAAC,IAAI,CAAC,CAAC,GAC7E8D,kBAAkB;IAEpB,MAAMG,OAAO,GAAG,CAACF,SAAS,IAAInJ,gBAAK,CAACC,MAAM,CAACqJ,sCAAyB,CAAC,IAAIN,wBAAwB,CAAC,CAAC,GAAGJ,UAAU,CAAC,CAAC;IAElH,MAAMW,QAAQ,GAAG1I,oBAAoB,CAACtC,MAAM,IAAIqE,MAAM,GAAG,CAAC,GAAG,CAAC;IAE9D,OAAO;MACLjG,IAAI,EAAE0M,OAAO;MACbG,IAAI,EAAED;IACR,CAAC;EACH;AACF;AAACE,OAAA,CAAAtJ,SAAA,GAAAA,SAAA;AAEM,SAASqE,YAAYA,CAACpC,MAAkB,EAAE;EAC/C,OAAQ,UAASA,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEsH,YAAY,CAAC,CAAE,IAAG;AAC7C"}
|
|
@@ -61,8 +61,9 @@ export declare class StatusMain {
|
|
|
61
61
|
private remove;
|
|
62
62
|
private lanes;
|
|
63
63
|
constructor(workspace: Workspace, issues: IssuesMain, insights: InsightsMain, remove: RemoveMain, lanes: LanesMain);
|
|
64
|
-
status({ lanes }: {
|
|
64
|
+
status({ lanes, ignoreCircularDependencies, }: {
|
|
65
65
|
lanes?: boolean;
|
|
66
|
+
ignoreCircularDependencies?: boolean;
|
|
66
67
|
}): Promise<StatusResult>;
|
|
67
68
|
statusMini(componentPattern?: string, opts?: MiniStatusOpts): Promise<MiniStatusResults>;
|
|
68
69
|
private addRemovedStagedIfNeeded;
|
|
@@ -18,6 +18,13 @@ function _pMapSeries() {
|
|
|
18
18
|
};
|
|
19
19
|
return data;
|
|
20
20
|
}
|
|
21
|
+
function _componentIssues() {
|
|
22
|
+
const data = require("@teambit/component-issues");
|
|
23
|
+
_componentIssues = function () {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
21
28
|
function _workspace() {
|
|
22
29
|
const data = _interopRequireWildcard(require("@teambit/workspace"));
|
|
23
30
|
_workspace = function () {
|
|
@@ -133,7 +140,8 @@ class StatusMain {
|
|
|
133
140
|
this.lanes = lanes;
|
|
134
141
|
}
|
|
135
142
|
async status({
|
|
136
|
-
lanes
|
|
143
|
+
lanes,
|
|
144
|
+
ignoreCircularDependencies
|
|
137
145
|
}) {
|
|
138
146
|
if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
|
|
139
147
|
_loader().default.start(_loaderMessages().BEFORE_STATUS);
|
|
@@ -173,7 +181,8 @@ class StatusMain {
|
|
|
173
181
|
const idsDuringMergeState = componentsList.listDuringMergeStateComponents();
|
|
174
182
|
const mergePendingComponents = await componentsList.listMergePendingComponents();
|
|
175
183
|
if (allComps.length) {
|
|
176
|
-
const
|
|
184
|
+
const issuesFromFlag = ignoreCircularDependencies ? [_componentIssues().IssuesClasses.CircularDependencies.name] : [];
|
|
185
|
+
const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];
|
|
177
186
|
await this.issues.triggerAddComponentIssues(allComps, issuesToIgnore);
|
|
178
187
|
this.issues.removeIgnoredIssuesFromComponents(allComps);
|
|
179
188
|
}
|
|
@@ -256,7 +265,8 @@ class StatusMain {
|
|
|
256
265
|
};
|
|
257
266
|
const comps = opts.showIssues ? await this.workspace.getMany(ids, loadOpts) : [];
|
|
258
267
|
if (opts.showIssues) {
|
|
259
|
-
const
|
|
268
|
+
const issuesFromFlag = opts.ignoreCircularDependencies ? [_componentIssues().IssuesClasses.CircularDependencies.name] : [];
|
|
269
|
+
const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];
|
|
260
270
|
await this.issues.triggerAddComponentIssues(comps, issuesToIgnore);
|
|
261
271
|
this.issues.removeIgnoredIssuesFromComponents(comps);
|
|
262
272
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_pMapSeries","_interopRequireDefault","_workspace","_interopRequireWildcard","_lanes","_componentId","_analytics","_loader","_loaderMessages","_remove","_componentsPendingImport","_componentsList","_insights","_issues","_statusCmd","_status","_miniStatusCmd","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","StatusMain","constructor","workspace","issues","insights","remove","lanes","status","OutsideWorkspaceError","loader","start","BEFORE_STATUS","loadOpts","loadDocs","loadCompositions","components","allComps","invalidComponents","allInvalidComponents","listWithInvalid","consumer","laneObj","getCurrentLaneObject","componentsList","ComponentsList","newComponents","listNewComponents","modifiedComponents","listModifiedComponents","stagedComponents","listExportPendingComponents","addRemovedStagedIfNeeded","stagedComponentsWithVersions","pMapSeries","stagedComp","versions","getLocalTagsOrHashes","scope","objects","id","toComponentId","unavailableOnMain","getUnavailableOnMainComponents","autoTagPendingComponents","listAutoTagPendingComponents","autoTagPendingComponentsIds","map","component","locallySoftRemoved","listLocallySoftRemoved","remotelySoftRemoved","listRemotelySoftRemoved","importPendingComponents","c","err","ComponentsPendingImport","i","error","divergeInvalid","divergeDataErrorsToInvalidComp","outdatedComponents","listOutdatedComponents","idsDuringMergeState","listDuringMergeStateComponents","mergePendingComponents","listMergePendingComponents","issuesToIgnore","getIssuesToIgnoreGlobally","triggerAddComponentIssues","removeIgnoredIssuesFromComponents","componentsWithIssues","state","isEmpty","softTaggedComponents","listSoftTaggedComponents","snappedComponents","listSnappedComponentsOnMain","pendingUpdatesFromMain","listUpdatesFromMainPending","updatesFromForked","listUpdatesFromForked","currentLaneId","getCurrentLaneId","currentLane","forkedLaneId","forkedFrom","workspaceIssues","getWorkspaceIssues","Analytics","setExtraData","convertBitIdToComponentIdsAndSort","ids","ComponentID","sortIds","resolveMultipleComponentIds","convertObjToComponentIdsAndSort","objectsWithId","results","Promise","all","resolveComponentId","sort","a","b","toString","localeCompare","sortObjectsWithId","onDestroy","headVersion","latestVersion","divergeData","diverge","componentsDuringMergeState","message","statusMini","componentPattern","opts","idsByPattern","listIds","compFiles","getFilesModification","modified","newComps","comp","hasVersion","isModified","comps","showIssues","getMany","compWithIssues","removedStagedIds","getRemovedStaged","removedStagedBitIds","nonExistsInStaged","find","isEqualWithoutVersion","modelComps","legacyScope","getModelComponent","_consumer","modelComponent","setDivergeData","getDivergeData","provider","cli","statusMain","register","StatusCmd","MiniStatusCmd","exports","CLIAspect","WorkspaceAspect","InsightsAspect","IssuesAspect","RemoveAspect","LanesAspect","MainRuntime","StatusAspect","addRuntime"],"sources":["status.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport pMapSeries from 'p-map-series';\nimport { LaneId } from '@teambit/lane-id';\nimport { IssuesList } from '@teambit/component-issues';\nimport WorkspaceAspect, { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport LanesAspect, { LanesMain } from '@teambit/lanes';\nimport { ComponentID } from '@teambit/component-id';\nimport { Component, InvalidComponent } from '@teambit/component';\nimport { Analytics } from '@teambit/legacy/dist/analytics/analytics';\nimport loader from '@teambit/legacy/dist/cli/loader';\nimport { BEFORE_STATUS } from '@teambit/legacy/dist/cli/loader/loader-messages';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport ComponentsPendingImport from '@teambit/legacy/dist/consumer/component-ops/exceptions/components-pending-import';\nimport ComponentsList from '@teambit/legacy/dist/consumer/component/components-list';\nimport { ModelComponent } from '@teambit/legacy/dist/scope/models';\nimport { InsightsAspect, InsightsMain } from '@teambit/insights';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport IssuesAspect, { IssuesMain } from '@teambit/issues';\nimport { StatusCmd } from './status-cmd';\nimport { StatusAspect } from './status.aspect';\nimport { MiniStatusCmd, MiniStatusOpts } from './mini-status-cmd';\n\ntype DivergeDataPerId = { id: ComponentID; divergeData: SnapsDistance };\n\nexport type StatusResult = {\n newComponents: ComponentID[];\n modifiedComponents: ComponentID[];\n stagedComponents: { id: ComponentID; versions: string[] }[];\n componentsWithIssues: { id: ComponentID; issues: IssuesList }[];\n importPendingComponents: ComponentID[];\n autoTagPendingComponents: ComponentID[];\n invalidComponents: { id: ComponentID; error: Error }[];\n locallySoftRemoved: ComponentID[];\n remotelySoftRemoved: ComponentID[];\n outdatedComponents: { id: ComponentID; headVersion: string; latestVersion?: string }[];\n mergePendingComponents: DivergeDataPerId[];\n componentsDuringMergeState: ComponentID[];\n softTaggedComponents: ComponentID[];\n snappedComponents: ComponentID[];\n pendingUpdatesFromMain: DivergeDataPerId[];\n updatesFromForked: DivergeDataPerId[];\n unavailableOnMain: ComponentID[];\n currentLaneId: LaneId;\n forkedLaneId?: LaneId;\n workspaceIssues: string[];\n};\n\nexport type MiniStatusResults = {\n modified: ComponentID[];\n newComps: ComponentID[];\n compWithIssues?: Component[];\n};\n\nexport class StatusMain {\n constructor(\n private workspace: Workspace,\n private issues: IssuesMain,\n private insights: InsightsMain,\n private remove: RemoveMain,\n private lanes: LanesMain\n ) {}\n\n async status({ lanes }: { lanes?: boolean }): Promise<StatusResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n loader.start(BEFORE_STATUS);\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const { components: allComps, invalidComponents: allInvalidComponents } = await this.workspace.listWithInvalid(\n loadOpts\n );\n const consumer = this.workspace.consumer;\n const laneObj = await consumer.getCurrentLaneObject();\n const componentsList = new ComponentsList(consumer);\n const newComponents: ConsumerComponent[] = (await componentsList.listNewComponents(\n true,\n loadOpts\n )) as ConsumerComponent[];\n const modifiedComponents = (await componentsList.listModifiedComponents(true, loadOpts)) as ConsumerComponent[];\n const stagedComponents: ModelComponent[] = await componentsList.listExportPendingComponents(laneObj);\n await this.addRemovedStagedIfNeeded(stagedComponents);\n const stagedComponentsWithVersions = await pMapSeries(stagedComponents, async (stagedComp) => {\n const versions = await stagedComp.getLocalTagsOrHashes(consumer.scope.objects);\n return {\n id: stagedComp.toComponentId(),\n versions,\n };\n });\n\n const unavailableOnMain = await this.workspace.getUnavailableOnMainComponents();\n const autoTagPendingComponents = await componentsList.listAutoTagPendingComponents();\n const autoTagPendingComponentsIds = autoTagPendingComponents.map((component) => component.id);\n const locallySoftRemoved = await componentsList.listLocallySoftRemoved();\n const remotelySoftRemoved = await componentsList.listRemotelySoftRemoved();\n const importPendingComponents = allInvalidComponents\n .filter((c) => c.err instanceof ComponentsPendingImport)\n .map((i) => i.id);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const invalidComponents = allInvalidComponents.filter((c) => !(c.error instanceof ComponentsPendingImport));\n const divergeInvalid = await this.divergeDataErrorsToInvalidComp(allComps);\n invalidComponents.push(...divergeInvalid);\n const outdatedComponents = await componentsList.listOutdatedComponents();\n const idsDuringMergeState = componentsList.listDuringMergeStateComponents();\n const mergePendingComponents = await componentsList.listMergePendingComponents();\n if (allComps.length) {\n const issuesToIgnore = this.issues.getIssuesToIgnoreGlobally();\n await this.issues.triggerAddComponentIssues(allComps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(allComps);\n }\n const componentsWithIssues = allComps.filter((component) => !component.state.issues.isEmpty());\n const softTaggedComponents = componentsList.listSoftTaggedComponents();\n const snappedComponents = (await componentsList.listSnappedComponentsOnMain()).map((c) => c.toComponentId());\n const pendingUpdatesFromMain = lanes ? await componentsList.listUpdatesFromMainPending() : [];\n const updatesFromForked = lanes ? await this.lanes.listUpdatesFromForked(componentsList) : [];\n const currentLaneId = consumer.getCurrentLaneId();\n const currentLane = await consumer.getCurrentLaneObject();\n const forkedLaneId = currentLane?.forkedFrom;\n const workspaceIssues = this.workspace.getWorkspaceIssues();\n Analytics.setExtraData('new_components', newComponents.length);\n Analytics.setExtraData('staged_components', stagedComponents.length);\n Analytics.setExtraData('num_components_with_missing_dependencies', componentsWithIssues.length);\n Analytics.setExtraData('autoTagPendingComponents', autoTagPendingComponents.length);\n Analytics.setExtraData('deleted', invalidComponents.length);\n\n const convertBitIdToComponentIdsAndSort = async (ids: ComponentID[]) =>\n ComponentID.sortIds(await this.workspace.resolveMultipleComponentIds(ids));\n\n const convertObjToComponentIdsAndSort = async <T>(\n objectsWithId: Array<T & { id: ComponentID }>\n ): Promise<Array<T & { id: ComponentID }>> => {\n const results = await Promise.all(\n objectsWithId.map(async (obj) => {\n return {\n ...obj,\n id: await this.workspace.resolveComponentId(obj.id),\n };\n })\n );\n return results.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n const sortObjectsWithId = <T>(objectsWithId: Array<T & { id: ComponentID }>): Array<T & { id: ComponentID }> => {\n return objectsWithId.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n await consumer.onDestroy();\n return {\n newComponents: await convertBitIdToComponentIdsAndSort(newComponents.map((c) => c.id)),\n modifiedComponents: await convertBitIdToComponentIdsAndSort(modifiedComponents.map((c) => c.id)),\n stagedComponents: await convertObjToComponentIdsAndSort(stagedComponentsWithVersions),\n componentsWithIssues: sortObjectsWithId(componentsWithIssues.map((c) => ({ id: c.id, issues: c.state.issues }))),\n importPendingComponents, // no need to sort, we use only its length\n autoTagPendingComponents: await convertBitIdToComponentIdsAndSort(autoTagPendingComponentsIds),\n invalidComponents: sortObjectsWithId(invalidComponents.map((c) => ({ id: c.id, error: c.err }))),\n locallySoftRemoved: await convertBitIdToComponentIdsAndSort(locallySoftRemoved),\n remotelySoftRemoved: await convertBitIdToComponentIdsAndSort(remotelySoftRemoved.map((c) => c.id)),\n outdatedComponents: await convertObjToComponentIdsAndSort(\n outdatedComponents.map((c) => ({\n id: c.id,\n headVersion: c.headVersion,\n latestVersion: c.latestVersion,\n }))\n ),\n mergePendingComponents: await convertObjToComponentIdsAndSort(\n mergePendingComponents.map((c) => ({ id: c.id, divergeData: c.diverge }))\n ),\n componentsDuringMergeState: await convertBitIdToComponentIdsAndSort(idsDuringMergeState),\n softTaggedComponents: ComponentID.sortIds(softTaggedComponents),\n snappedComponents: await convertBitIdToComponentIdsAndSort(snappedComponents),\n pendingUpdatesFromMain: await convertObjToComponentIdsAndSort(pendingUpdatesFromMain),\n updatesFromForked: await convertObjToComponentIdsAndSort(updatesFromForked),\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues: workspaceIssues.map((err) => err.message),\n };\n }\n\n async statusMini(componentPattern?: string, opts: MiniStatusOpts = {}): Promise<MiniStatusResults> {\n const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : await this.workspace.listIds();\n const compFiles = await pMapSeries(ids, (id) => this.workspace.getFilesModification(id));\n const modified: ComponentID[] = [];\n const newComps: ComponentID[] = [];\n compFiles.forEach((comp) => {\n if (!comp.id.hasVersion()) newComps.push(comp.id);\n if (comp.isModified()) modified.push(comp.id);\n });\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const comps = opts.showIssues ? await this.workspace.getMany(ids, loadOpts) : [];\n if (opts.showIssues) {\n const issuesToIgnore = this.issues.getIssuesToIgnoreGlobally();\n await this.issues.triggerAddComponentIssues(comps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(comps);\n }\n const compWithIssues = comps.filter((c) => !c.state.issues.isEmpty());\n\n return { modified, newComps, compWithIssues };\n }\n\n private async addRemovedStagedIfNeeded(stagedComponents: ModelComponent[]) {\n const removedStagedIds = await this.remove.getRemovedStaged();\n if (!removedStagedIds.length) return;\n const removedStagedBitIds = removedStagedIds.map((id) => id);\n const nonExistsInStaged = removedStagedBitIds.filter(\n (id) => !stagedComponents.find((c) => c.toComponentId().isEqualWithoutVersion(id))\n );\n if (!nonExistsInStaged.length) return;\n const modelComps = await Promise.all(\n nonExistsInStaged.map((id) => this.workspace.scope.legacyScope.getModelComponent(id))\n );\n stagedComponents.push(...modelComps);\n }\n\n private async divergeDataErrorsToInvalidComp(components: Component[]): Promise<InvalidComponent[]> {\n const invalidComponents: InvalidComponent[] = [];\n await Promise.all(\n components.map(async (component) => {\n const comp = component.state._consumer as ConsumerComponent;\n if (!comp.modelComponent) return;\n await comp.modelComponent.setDivergeData(this.workspace.scope.legacyScope.objects, false);\n const divergeData = comp.modelComponent.getDivergeData();\n if (divergeData.err) {\n invalidComponents.push({ id: component.id, err: divergeData.err });\n }\n })\n );\n return invalidComponents;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect, InsightsAspect, IssuesAspect, RemoveAspect, LanesAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, insights, issues, remove, lanes]: [\n CLIMain,\n Workspace,\n InsightsMain,\n IssuesMain,\n RemoveMain,\n LanesMain\n ]) {\n const statusMain = new StatusMain(workspace, issues, insights, remove, lanes);\n cli.register(new StatusCmd(statusMain), new MiniStatusCmd(statusMain));\n return statusMain;\n }\n}\n\nStatusAspect.addRuntime(StatusMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAK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AK,CAAC;IAC7E0I,GAAG,CAACE,QAAQ,CAAC,KAAIC,sBAAS,EAACF,UAAU,CAAC,EAAE,KAAIG,8BAAa,EAACH,UAAU,CAAC,CAAC;IACtE,OAAOA,UAAU;EACnB;AACF;AAACI,OAAA,CAAArJ,UAAA,GAAAA,UAAA;AAAAnB,eAAA,CAnMYmB,UAAU,WAoLN,EAAE;AAAAnB,eAAA,CApLNmB,UAAU,kBAqLC,CAACsJ,gBAAS,EAAEC,oBAAe,EAAEC,0BAAc,EAAEC,iBAAY,EAAEC,sBAAY,EAAEC,gBAAW,CAAC;AAAA9K,eAAA,CArLhGmB,UAAU,aAsLJ4J,kBAAW;AAe9BC,sBAAY,CAACC,UAAU,CAAC9J,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_pMapSeries","_interopRequireDefault","_componentIssues","_workspace","_interopRequireWildcard","_lanes","_componentId","_analytics","_loader","_loaderMessages","_remove","_componentsPendingImport","_componentsList","_insights","_issues","_statusCmd","_status","_miniStatusCmd","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","StatusMain","constructor","workspace","issues","insights","remove","lanes","status","ignoreCircularDependencies","OutsideWorkspaceError","loader","start","BEFORE_STATUS","loadOpts","loadDocs","loadCompositions","components","allComps","invalidComponents","allInvalidComponents","listWithInvalid","consumer","laneObj","getCurrentLaneObject","componentsList","ComponentsList","newComponents","listNewComponents","modifiedComponents","listModifiedComponents","stagedComponents","listExportPendingComponents","addRemovedStagedIfNeeded","stagedComponentsWithVersions","pMapSeries","stagedComp","versions","getLocalTagsOrHashes","scope","objects","id","toComponentId","unavailableOnMain","getUnavailableOnMainComponents","autoTagPendingComponents","listAutoTagPendingComponents","autoTagPendingComponentsIds","map","component","locallySoftRemoved","listLocallySoftRemoved","remotelySoftRemoved","listRemotelySoftRemoved","importPendingComponents","c","err","ComponentsPendingImport","i","error","divergeInvalid","divergeDataErrorsToInvalidComp","outdatedComponents","listOutdatedComponents","idsDuringMergeState","listDuringMergeStateComponents","mergePendingComponents","listMergePendingComponents","issuesFromFlag","IssuesClasses","CircularDependencies","name","issuesToIgnore","getIssuesToIgnoreGlobally","triggerAddComponentIssues","removeIgnoredIssuesFromComponents","componentsWithIssues","state","isEmpty","softTaggedComponents","listSoftTaggedComponents","snappedComponents","listSnappedComponentsOnMain","pendingUpdatesFromMain","listUpdatesFromMainPending","updatesFromForked","listUpdatesFromForked","currentLaneId","getCurrentLaneId","currentLane","forkedLaneId","forkedFrom","workspaceIssues","getWorkspaceIssues","Analytics","setExtraData","convertBitIdToComponentIdsAndSort","ids","ComponentID","sortIds","resolveMultipleComponentIds","convertObjToComponentIdsAndSort","objectsWithId","results","Promise","all","resolveComponentId","sort","a","b","toString","localeCompare","sortObjectsWithId","onDestroy","headVersion","latestVersion","divergeData","diverge","componentsDuringMergeState","message","statusMini","componentPattern","opts","idsByPattern","listIds","compFiles","getFilesModification","modified","newComps","comp","hasVersion","isModified","comps","showIssues","getMany","compWithIssues","removedStagedIds","getRemovedStaged","removedStagedBitIds","nonExistsInStaged","find","isEqualWithoutVersion","modelComps","legacyScope","getModelComponent","_consumer","modelComponent","setDivergeData","getDivergeData","provider","cli","statusMain","register","StatusCmd","MiniStatusCmd","exports","CLIAspect","WorkspaceAspect","InsightsAspect","IssuesAspect","RemoveAspect","LanesAspect","MainRuntime","StatusAspect","addRuntime"],"sources":["status.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport pMapSeries from 'p-map-series';\nimport { LaneId } from '@teambit/lane-id';\nimport { IssuesClasses, IssuesList } from '@teambit/component-issues';\nimport WorkspaceAspect, { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport LanesAspect, { LanesMain } from '@teambit/lanes';\nimport { ComponentID } from '@teambit/component-id';\nimport { Component, InvalidComponent } from '@teambit/component';\nimport { Analytics } from '@teambit/legacy/dist/analytics/analytics';\nimport loader from '@teambit/legacy/dist/cli/loader';\nimport { BEFORE_STATUS } from '@teambit/legacy/dist/cli/loader/loader-messages';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport ComponentsPendingImport from '@teambit/legacy/dist/consumer/component-ops/exceptions/components-pending-import';\nimport ComponentsList from '@teambit/legacy/dist/consumer/component/components-list';\nimport { ModelComponent } from '@teambit/legacy/dist/scope/models';\nimport { InsightsAspect, InsightsMain } from '@teambit/insights';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport IssuesAspect, { IssuesMain } from '@teambit/issues';\nimport { StatusCmd } from './status-cmd';\nimport { StatusAspect } from './status.aspect';\nimport { MiniStatusCmd, MiniStatusOpts } from './mini-status-cmd';\n\ntype DivergeDataPerId = { id: ComponentID; divergeData: SnapsDistance };\n\nexport type StatusResult = {\n newComponents: ComponentID[];\n modifiedComponents: ComponentID[];\n stagedComponents: { id: ComponentID; versions: string[] }[];\n componentsWithIssues: { id: ComponentID; issues: IssuesList }[];\n importPendingComponents: ComponentID[];\n autoTagPendingComponents: ComponentID[];\n invalidComponents: { id: ComponentID; error: Error }[];\n locallySoftRemoved: ComponentID[];\n remotelySoftRemoved: ComponentID[];\n outdatedComponents: { id: ComponentID; headVersion: string; latestVersion?: string }[];\n mergePendingComponents: DivergeDataPerId[];\n componentsDuringMergeState: ComponentID[];\n softTaggedComponents: ComponentID[];\n snappedComponents: ComponentID[];\n pendingUpdatesFromMain: DivergeDataPerId[];\n updatesFromForked: DivergeDataPerId[];\n unavailableOnMain: ComponentID[];\n currentLaneId: LaneId;\n forkedLaneId?: LaneId;\n workspaceIssues: string[];\n};\n\nexport type MiniStatusResults = {\n modified: ComponentID[];\n newComps: ComponentID[];\n compWithIssues?: Component[];\n};\n\nexport class StatusMain {\n constructor(\n private workspace: Workspace,\n private issues: IssuesMain,\n private insights: InsightsMain,\n private remove: RemoveMain,\n private lanes: LanesMain\n ) {}\n\n async status({\n lanes,\n ignoreCircularDependencies,\n }: {\n lanes?: boolean;\n ignoreCircularDependencies?: boolean;\n }): Promise<StatusResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n loader.start(BEFORE_STATUS);\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const { components: allComps, invalidComponents: allInvalidComponents } = await this.workspace.listWithInvalid(\n loadOpts\n );\n const consumer = this.workspace.consumer;\n const laneObj = await consumer.getCurrentLaneObject();\n const componentsList = new ComponentsList(consumer);\n const newComponents: ConsumerComponent[] = (await componentsList.listNewComponents(\n true,\n loadOpts\n )) as ConsumerComponent[];\n const modifiedComponents = (await componentsList.listModifiedComponents(true, loadOpts)) as ConsumerComponent[];\n const stagedComponents: ModelComponent[] = await componentsList.listExportPendingComponents(laneObj);\n await this.addRemovedStagedIfNeeded(stagedComponents);\n const stagedComponentsWithVersions = await pMapSeries(stagedComponents, async (stagedComp) => {\n const versions = await stagedComp.getLocalTagsOrHashes(consumer.scope.objects);\n return {\n id: stagedComp.toComponentId(),\n versions,\n };\n });\n\n const unavailableOnMain = await this.workspace.getUnavailableOnMainComponents();\n const autoTagPendingComponents = await componentsList.listAutoTagPendingComponents();\n const autoTagPendingComponentsIds = autoTagPendingComponents.map((component) => component.id);\n const locallySoftRemoved = await componentsList.listLocallySoftRemoved();\n const remotelySoftRemoved = await componentsList.listRemotelySoftRemoved();\n const importPendingComponents = allInvalidComponents\n .filter((c) => c.err instanceof ComponentsPendingImport)\n .map((i) => i.id);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const invalidComponents = allInvalidComponents.filter((c) => !(c.error instanceof ComponentsPendingImport));\n const divergeInvalid = await this.divergeDataErrorsToInvalidComp(allComps);\n invalidComponents.push(...divergeInvalid);\n const outdatedComponents = await componentsList.listOutdatedComponents();\n const idsDuringMergeState = componentsList.listDuringMergeStateComponents();\n const mergePendingComponents = await componentsList.listMergePendingComponents();\n if (allComps.length) {\n const issuesFromFlag = ignoreCircularDependencies ? [IssuesClasses.CircularDependencies.name] : [];\n const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];\n await this.issues.triggerAddComponentIssues(allComps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(allComps);\n }\n const componentsWithIssues = allComps.filter((component) => !component.state.issues.isEmpty());\n const softTaggedComponents = componentsList.listSoftTaggedComponents();\n const snappedComponents = (await componentsList.listSnappedComponentsOnMain()).map((c) => c.toComponentId());\n const pendingUpdatesFromMain = lanes ? await componentsList.listUpdatesFromMainPending() : [];\n const updatesFromForked = lanes ? await this.lanes.listUpdatesFromForked(componentsList) : [];\n const currentLaneId = consumer.getCurrentLaneId();\n const currentLane = await consumer.getCurrentLaneObject();\n const forkedLaneId = currentLane?.forkedFrom;\n const workspaceIssues = this.workspace.getWorkspaceIssues();\n Analytics.setExtraData('new_components', newComponents.length);\n Analytics.setExtraData('staged_components', stagedComponents.length);\n Analytics.setExtraData('num_components_with_missing_dependencies', componentsWithIssues.length);\n Analytics.setExtraData('autoTagPendingComponents', autoTagPendingComponents.length);\n Analytics.setExtraData('deleted', invalidComponents.length);\n\n const convertBitIdToComponentIdsAndSort = async (ids: ComponentID[]) =>\n ComponentID.sortIds(await this.workspace.resolveMultipleComponentIds(ids));\n\n const convertObjToComponentIdsAndSort = async <T>(\n objectsWithId: Array<T & { id: ComponentID }>\n ): Promise<Array<T & { id: ComponentID }>> => {\n const results = await Promise.all(\n objectsWithId.map(async (obj) => {\n return {\n ...obj,\n id: await this.workspace.resolveComponentId(obj.id),\n };\n })\n );\n return results.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n const sortObjectsWithId = <T>(objectsWithId: Array<T & { id: ComponentID }>): Array<T & { id: ComponentID }> => {\n return objectsWithId.sort((a, b) => a.id.toString().localeCompare(b.id.toString()));\n };\n\n await consumer.onDestroy();\n return {\n newComponents: await convertBitIdToComponentIdsAndSort(newComponents.map((c) => c.id)),\n modifiedComponents: await convertBitIdToComponentIdsAndSort(modifiedComponents.map((c) => c.id)),\n stagedComponents: await convertObjToComponentIdsAndSort(stagedComponentsWithVersions),\n componentsWithIssues: sortObjectsWithId(componentsWithIssues.map((c) => ({ id: c.id, issues: c.state.issues }))),\n importPendingComponents, // no need to sort, we use only its length\n autoTagPendingComponents: await convertBitIdToComponentIdsAndSort(autoTagPendingComponentsIds),\n invalidComponents: sortObjectsWithId(invalidComponents.map((c) => ({ id: c.id, error: c.err }))),\n locallySoftRemoved: await convertBitIdToComponentIdsAndSort(locallySoftRemoved),\n remotelySoftRemoved: await convertBitIdToComponentIdsAndSort(remotelySoftRemoved.map((c) => c.id)),\n outdatedComponents: await convertObjToComponentIdsAndSort(\n outdatedComponents.map((c) => ({\n id: c.id,\n headVersion: c.headVersion,\n latestVersion: c.latestVersion,\n }))\n ),\n mergePendingComponents: await convertObjToComponentIdsAndSort(\n mergePendingComponents.map((c) => ({ id: c.id, divergeData: c.diverge }))\n ),\n componentsDuringMergeState: await convertBitIdToComponentIdsAndSort(idsDuringMergeState),\n softTaggedComponents: ComponentID.sortIds(softTaggedComponents),\n snappedComponents: await convertBitIdToComponentIdsAndSort(snappedComponents),\n pendingUpdatesFromMain: await convertObjToComponentIdsAndSort(pendingUpdatesFromMain),\n updatesFromForked: await convertObjToComponentIdsAndSort(updatesFromForked),\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues: workspaceIssues.map((err) => err.message),\n };\n }\n\n async statusMini(componentPattern?: string, opts: MiniStatusOpts = {}): Promise<MiniStatusResults> {\n const ids = componentPattern ? await this.workspace.idsByPattern(componentPattern) : await this.workspace.listIds();\n const compFiles = await pMapSeries(ids, (id) => this.workspace.getFilesModification(id));\n const modified: ComponentID[] = [];\n const newComps: ComponentID[] = [];\n compFiles.forEach((comp) => {\n if (!comp.id.hasVersion()) newComps.push(comp.id);\n if (comp.isModified()) modified.push(comp.id);\n });\n const loadOpts = {\n loadDocs: false,\n loadCompositions: false,\n };\n const comps = opts.showIssues ? await this.workspace.getMany(ids, loadOpts) : [];\n if (opts.showIssues) {\n const issuesFromFlag = opts.ignoreCircularDependencies ? [IssuesClasses.CircularDependencies.name] : [];\n const issuesToIgnore = [...this.issues.getIssuesToIgnoreGlobally(), ...issuesFromFlag];\n await this.issues.triggerAddComponentIssues(comps, issuesToIgnore);\n this.issues.removeIgnoredIssuesFromComponents(comps);\n }\n const compWithIssues = comps.filter((c) => !c.state.issues.isEmpty());\n\n return { modified, newComps, compWithIssues };\n }\n\n private async addRemovedStagedIfNeeded(stagedComponents: ModelComponent[]) {\n const removedStagedIds = await this.remove.getRemovedStaged();\n if (!removedStagedIds.length) return;\n const removedStagedBitIds = removedStagedIds.map((id) => id);\n const nonExistsInStaged = removedStagedBitIds.filter(\n (id) => !stagedComponents.find((c) => c.toComponentId().isEqualWithoutVersion(id))\n );\n if (!nonExistsInStaged.length) return;\n const modelComps = await Promise.all(\n nonExistsInStaged.map((id) => this.workspace.scope.legacyScope.getModelComponent(id))\n );\n stagedComponents.push(...modelComps);\n }\n\n private async divergeDataErrorsToInvalidComp(components: Component[]): Promise<InvalidComponent[]> {\n const invalidComponents: InvalidComponent[] = [];\n await Promise.all(\n components.map(async (component) => {\n const comp = component.state._consumer as ConsumerComponent;\n if (!comp.modelComponent) return;\n await comp.modelComponent.setDivergeData(this.workspace.scope.legacyScope.objects, false);\n const divergeData = comp.modelComponent.getDivergeData();\n if (divergeData.err) {\n invalidComponents.push({ id: component.id, err: divergeData.err });\n }\n })\n );\n return invalidComponents;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect, InsightsAspect, IssuesAspect, RemoveAspect, LanesAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, insights, issues, remove, lanes]: [\n CLIMain,\n Workspace,\n InsightsMain,\n IssuesMain,\n RemoveMain,\n LanesMain\n ]) {\n const statusMain = new StatusMain(workspace, issues, insights, remove, lanes);\n cli.register(new StatusCmd(statusMain), new MiniStatusCmd(statusMain));\n return statusMain;\n }\n}\n\nStatusAspect.addRuntime(StatusMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,iBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,gBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAM,uBAAA,CAAAL,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,OAAA;EAAA,MAAAP,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAM,MAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,aAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,YAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAS,WAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,UAAA,YAAAA,CAAA;IAAA,OAAAT,I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A1J,UAAA,GAAAA,UAAA;AAAAnB,eAAA,CA3MYmB,UAAU,WA4LN,EAAE;AAAAnB,eAAA,CA5LNmB,UAAU,kBA6LC,CAAC2J,gBAAS,EAAEC,oBAAe,EAAEC,0BAAc,EAAEC,iBAAY,EAAEC,sBAAY,EAAEC,gBAAW,CAAC;AAAAnL,eAAA,CA7LhGmB,UAAU,aA8LJiK,kBAAW;AAe9BC,sBAAY,CAACC,UAAU,CAACnK,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/status",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/status",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "status",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.40"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"core-js": "^3.0.0",
|
|
17
17
|
"@babel/runtime": "7.20.0",
|
|
18
18
|
"@teambit/component-id": "1.1.1",
|
|
19
|
-
"@teambit/component-issues": "0.0.101",
|
|
20
19
|
"@teambit/component-version": "1.0.3",
|
|
21
20
|
"@teambit/harmony": "0.4.6",
|
|
22
21
|
"@teambit/lane-id": "0.0.311",
|
|
23
|
-
"@teambit/cli": "0.0.
|
|
24
|
-
"@teambit/component": "
|
|
25
|
-
"@teambit/
|
|
26
|
-
"@teambit/
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/
|
|
29
|
-
"@teambit/
|
|
22
|
+
"@teambit/cli": "0.0.806",
|
|
23
|
+
"@teambit/component-issues": "0.0.102",
|
|
24
|
+
"@teambit/component": "1.0.40",
|
|
25
|
+
"@teambit/insights": "1.0.40",
|
|
26
|
+
"@teambit/issues": "1.0.40",
|
|
27
|
+
"@teambit/lanes": "1.0.40",
|
|
28
|
+
"@teambit/remove": "1.0.40",
|
|
29
|
+
"@teambit/workspace": "1.0.40"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/lodash": "4.14.165",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@teambit/legacy": "1.0.
|
|
41
|
+
"@teambit/legacy": "1.0.587",
|
|
42
42
|
"react": "^16.8.0 || ^17.0.0",
|
|
43
43
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
44
44
|
},
|
|
File without changes
|