@teambit/status 1.0.941 → 1.0.942
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/status-formatter.js
CHANGED
|
@@ -26,6 +26,13 @@ function _logger() {
|
|
|
26
26
|
};
|
|
27
27
|
return data;
|
|
28
28
|
}
|
|
29
|
+
function _cli() {
|
|
30
|
+
const data = require("@teambit/cli");
|
|
31
|
+
_cli = function () {
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
return data;
|
|
35
|
+
}
|
|
29
36
|
function _lodash() {
|
|
30
37
|
const data = require("lodash");
|
|
31
38
|
_lodash = function () {
|
|
@@ -113,12 +120,6 @@ function formatStatusOutput(statusResult, options = {}) {
|
|
|
113
120
|
const statusTextWithSoftTag = isSoftTagged && showSoftTagMsg ? `${statusText} (soft-tagged)` : statusText;
|
|
114
121
|
return `${idFormatted} ... ${_chalk().default[statusColor](statusTextWithSoftTag)}`;
|
|
115
122
|
}
|
|
116
|
-
function formatCategory(title, description, compsOutput) {
|
|
117
|
-
if (!compsOutput.length) return '';
|
|
118
|
-
const titleOutput = _chalk().default.bold.white(`${title} (${compsOutput.length})`);
|
|
119
|
-
const descOutput = description ? `${_chalk().default.dim(description)}\n` : '';
|
|
120
|
-
return [titleOutput, descOutput, ...compsOutput].join('\n');
|
|
121
|
-
}
|
|
122
123
|
const importPendingWarning = importPendingComponents.length ? _chalk().default.yellow(`${_legacy().IMPORT_PENDING_MSG}.\n`) : '';
|
|
123
124
|
const newCompFormatted = newComponents.map(c => format(c));
|
|
124
125
|
const {
|
|
@@ -133,49 +134,49 @@ function formatStatusOutput(statusResult, options = {}) {
|
|
|
133
134
|
const latest = component.latestVersion && component.latestVersion !== component.headVersion ? ` latest: ${component.latestVersion}` : '';
|
|
134
135
|
return ` ${_chalk().default.yellow('⚠')} ${_chalk().default.cyan(component.id.toStringWithoutVersion())} current: ${component.id.version} head: ${component.headVersion}${latest}`;
|
|
135
136
|
});
|
|
136
|
-
const outdatedStr =
|
|
137
|
+
const outdatedStr = (0, _cli().formatSection)(outdatedTitle, outdatedDesc, outdatedComps);
|
|
137
138
|
const pendingMergeTitle = 'pending merge';
|
|
138
139
|
const pendingMergeDesc = `(use "bit reset" to discard local tags/snaps, and bit checkout head to re-merge with the remote.
|
|
139
140
|
alternatively, to keep local tags/snaps history, use "bit merge [component-id]")`;
|
|
140
141
|
const pendingMergeComps = mergePendingComponents.map(component => {
|
|
141
142
|
return ` ${_chalk().default.yellow('⚠')} ${_chalk().default.cyan(component.id.toString())} local and remote have diverged and have ${component.divergeData.snapsOnSourceOnly.length} (source) and ${component.divergeData.snapsOnTargetOnly.length} (target) uncommon snaps respectively`;
|
|
142
143
|
});
|
|
143
|
-
const pendingMergeStr =
|
|
144
|
+
const pendingMergeStr = (0, _cli().formatSection)(pendingMergeTitle, pendingMergeDesc, pendingMergeComps);
|
|
144
145
|
const compDuringMergeTitle = 'components in merge state';
|
|
145
146
|
const compDuringMergeDesc = `(use "bit snap/tag [--unmerged]" to complete the merge process.
|
|
146
147
|
to cancel the merge operation, use either "bit lane merge-abort" (for prior "bit lane merge" command)
|
|
147
148
|
or use "bit merge [component-id] --abort" (for prior "bit merge" command)`;
|
|
148
149
|
const compDuringMergeComps = componentsDuringMergeState.map(c => format(c));
|
|
149
|
-
const compDuringMergeStr =
|
|
150
|
+
const compDuringMergeStr = (0, _cli().formatSection)(compDuringMergeTitle, compDuringMergeDesc, compDuringMergeComps);
|
|
150
151
|
const newComponentDescription = '(use "bit snap/tag" to lock a version with all your changes)';
|
|
151
|
-
const newComponentsOutput =
|
|
152
|
+
const newComponentsOutput = (0, _cli().formatSection)('new components', newComponentDescription, [...(nonMissing || []), ...(missing || [])]);
|
|
152
153
|
const modifiedDesc = '(use "bit diff" to compare changes)';
|
|
153
|
-
const modifiedComponentOutput =
|
|
154
|
+
const modifiedComponentOutput = (0, _cli().formatSection)('modified components', modifiedDesc, modifiedComponents.map(c => format(c)));
|
|
154
155
|
const autoTagPendingTitle = 'components pending auto-tag (when their modified dependencies are tagged)';
|
|
155
|
-
const autoTagPendingOutput =
|
|
156
|
+
const autoTagPendingOutput = (0, _cli().formatSection)(autoTagPendingTitle, '', autoTagPendingComponents.map(c => format(c)));
|
|
156
157
|
const componentsWithIssuesToPrint = componentsWithIssues.filter(c => c.issues.hasTagBlockerIssues() || warnings);
|
|
157
158
|
const compWithIssuesDesc = '(fix the issues according to the suggested solution)';
|
|
158
|
-
const compWithIssuesOutput =
|
|
159
|
+
const compWithIssuesOutput = (0, _cli().formatSection)('components with issues', compWithIssuesDesc, componentsWithIssuesToPrint.map(c => format(c.id, true)).sort());
|
|
159
160
|
const invalidDesc = 'these components failed to load';
|
|
160
161
|
const invalidComps = invalidComponents.map(c => format(c.id, false, getInvalidComponentLabel(c.error))).sort();
|
|
161
|
-
const invalidComponentOutput =
|
|
162
|
+
const invalidComponentOutput = (0, _cli().formatSection)(_legacy().statusInvalidComponentsMsg, invalidDesc, invalidComps);
|
|
162
163
|
const locallySoftRemovedDesc = '(tag/snap and export the components to update the deletion to the remote. to undo deletion, run "bit recover")';
|
|
163
|
-
const locallySoftRemovedOutput =
|
|
164
|
+
const locallySoftRemovedOutput = (0, _cli().formatSection)('soft-removed components locally', locallySoftRemovedDesc, locallySoftRemoved.map(c => format(c)).sort());
|
|
164
165
|
const remotelySoftRemovedDesc = '(use "bit remove" to remove them from the workspace. use "bit recover" to undo the deletion)';
|
|
165
|
-
const remotelySoftRemovedOutput =
|
|
166
|
+
const remotelySoftRemovedOutput = (0, _cli().formatSection)('components deleted on the remote', remotelySoftRemovedDesc, remotelySoftRemoved.map(c => format(c)).sort());
|
|
166
167
|
const stagedDesc = '(use "bit export" to push these component versions to the remote scope)';
|
|
167
168
|
const stagedComps = stagedComponents.map(c => format(c.id, false, undefined, c.versions));
|
|
168
|
-
const stagedComponentsOutput =
|
|
169
|
+
const stagedComponentsOutput = (0, _cli().formatSection)('staged components', stagedDesc, stagedComps);
|
|
169
170
|
const localOnlyDesc = '(these components are excluded from tag/snap/export commands)';
|
|
170
171
|
const localOnlyComps = localOnly.map(c => format(c)).sort();
|
|
171
|
-
const localOnlyComponentsOutput =
|
|
172
|
+
const localOnlyComponentsOutput = (0, _cli().formatSection)('local-only components', localOnlyDesc, localOnlyComps);
|
|
172
173
|
const softTaggedDesc = '(use "bit tag --persist" to complete the tag)';
|
|
173
174
|
const softTaggedComps = softTaggedComponents.map(id => format(id, false, undefined, undefined, false));
|
|
174
|
-
const softTaggedComponentsOutput =
|
|
175
|
+
const softTaggedComponentsOutput = (0, _cli().formatSection)('soft-tagged components', softTaggedDesc, softTaggedComps);
|
|
175
176
|
const snappedDesc = '(use "bit tag" or "bit tag --snapped" to lock a semver version)';
|
|
176
|
-
const snappedComponentsOutput =
|
|
177
|
+
const snappedComponentsOutput = (0, _cli().formatSection)('snapped components (tag pending)', snappedDesc, snappedComponents.map(c => format(c)));
|
|
177
178
|
const unavailableOnMainDesc = '(use "bit checkout head" to make them available)';
|
|
178
|
-
const unavailableOnMainOutput =
|
|
179
|
+
const unavailableOnMainOutput = (0, _cli().formatSection)('components unavailable on main', unavailableOnMainDesc, unavailableOnMain.map(c => format(c)));
|
|
179
180
|
const getUpdateFromMsg = (divergeData, from = 'main') => {
|
|
180
181
|
if (divergeData.err) return divergeData.err.message;
|
|
181
182
|
let msg = `${from} is ahead by ${divergeData.snapsOnTargetOnly.length || 0} snaps`;
|
|
@@ -186,13 +187,13 @@ or use "bit merge [component-id] --abort" (for prior "bit merge" command)`;
|
|
|
186
187
|
};
|
|
187
188
|
const updatesFromMainDesc = '(use "bit lane merge main" to merge the changes)';
|
|
188
189
|
const pendingUpdatesFromMainIds = pendingUpdatesFromMain.map(c => format(c.id, false, getUpdateFromMsg(c.divergeData)));
|
|
189
|
-
const updatesFromMainOutput =
|
|
190
|
+
const updatesFromMainOutput = (0, _cli().formatSection)('pending updates from main', updatesFromMainDesc, pendingUpdatesFromMainIds);
|
|
190
191
|
let updatesFromForkedOutput = '';
|
|
191
192
|
if (forkedLaneId) {
|
|
192
193
|
const updatesFromForkedDesc = `(use "bit lane merge ${forkedLaneId.toString()}" to merge the changes
|
|
193
194
|
use "bit fetch ${forkedLaneId.toString()} --lanes" to update ${forkedLaneId.name} locally)`;
|
|
194
195
|
const pendingUpdatesFromForkedIds = updatesFromForked.map(c => format(c.id, false, getUpdateFromMsg(c.divergeData, forkedLaneId.name)));
|
|
195
|
-
updatesFromForkedOutput =
|
|
196
|
+
updatesFromForkedOutput = (0, _cli().formatSection)(`updates from ${forkedLaneId.name}`, updatesFromForkedDesc, pendingUpdatesFromForkedIds);
|
|
196
197
|
}
|
|
197
198
|
const getLaneStr = () => {
|
|
198
199
|
if (currentLaneId.isDefault()) return '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_legacy","_logger","_lodash","_componentVersion","e","__esModule","default","TROUBLESHOOTING_MESSAGE","chalk","yellow","BASE_DOCS_DOMAIN","formatStatusOutput","statusResult","options","strict","verbose","warnings","failOnError","newComponents","modifiedComponents","stagedComponents","componentsWithIssues","importPendingComponents","autoTagPendingComponents","invalidComponents","locallySoftRemoved","remotelySoftRemoved","outdatedComponents","mergePendingComponents","componentsDuringMergeState","softTaggedComponents","snappedComponents","pendingUpdatesFromMain","localOnly","updatesFromForked","unavailableOnMain","currentLaneId","forkedLaneId","workspaceIssues","showTroubleshootingLink","format","id","showIssues","message","localVersions","showSoftTagMsg","idWithIssues","find","c","isEqual","isSoftTagged","Boolean","softTaggedId","hasTagBlocker","issues","hasTagBlockerIssues","isClean","getSymbol","red","Logger","successSymbol","idFormatted","cyan","toStringWithoutVersion","join","snaps","tags","partition","version","isHash","tagsStr","length","snapsStr","issuesTxt","statusFailureMsg","statusWarningsMsg","issuesColor","formatIssues","softTagSuffix","green","statusText","statusColor","statusTextWithSoftTag","formatCategory","title","description","compsOutput","titleOutput","bold","white","descOutput","dim","importPendingWarning","IMPORT_PENDING_MSG","newCompFormatted","map","missing","nonMissing","groupBy","component","includes","outdatedTitle","outdatedDesc","outdatedComps","latest","latestVersion","headVersion","outdatedStr","pendingMergeTitle","pendingMergeDesc","pendingMergeComps","toString","divergeData","snapsOnSourceOnly","snapsOnTargetOnly","pendingMergeStr","compDuringMergeTitle","compDuringMergeDesc","compDuringMergeComps","compDuringMergeStr","newComponentDescription","newComponentsOutput","modifiedDesc","modifiedComponentOutput","autoTagPendingTitle","autoTagPendingOutput","componentsWithIssuesToPrint","filter","compWithIssuesDesc","compWithIssuesOutput","sort","invalidDesc","invalidComps","getInvalidComponentLabel","error","invalidComponentOutput","statusInvalidComponentsMsg","locallySoftRemovedDesc","locallySoftRemovedOutput","remotelySoftRemovedDesc","remotelySoftRemovedOutput","stagedDesc","stagedComps","undefined","versions","stagedComponentsOutput","localOnlyDesc","localOnlyComps","localOnlyComponentsOutput","softTaggedDesc","softTaggedComps","softTaggedComponentsOutput","snappedDesc","snappedComponentsOutput","unavailableOnMainDesc","unavailableOnMainOutput","getUpdateFromMsg","from","err","msg","commonSnapBeforeDiverge","toShortString","updatesFromMainDesc","pendingUpdatesFromMainIds","updatesFromMainOutput","updatesFromForkedOutput","updatesFromForkedDesc","name","pendingUpdatesFromForkedIds","getLaneStr","isDefault","prefix","getWorkspaceIssuesOutput","troubleshootingStr","wereWarningsFilteredOut","showWarningsStr","statusMsg","compact","results","statusWorkspaceIsCleanMsg","exitCode","some","code","outputForCLI","path"],"sources":["status-formatter.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { ComponentID } from '@teambit/component-id';\nimport type { SnapsDistance } from '@teambit/component.snap-distance';\nimport type { IssuesList } from '@teambit/component-issues';\nimport {\n IMPORT_PENDING_MSG,\n statusFailureMsg,\n statusWarningsMsg,\n statusInvalidComponentsMsg,\n statusWorkspaceIsCleanMsg,\n BASE_DOCS_DOMAIN,\n} from '@teambit/legacy.constants';\nimport { Logger } from '@teambit/logger';\nimport { compact, groupBy, partition } from 'lodash';\nimport { isHash } from '@teambit/component-version';\nimport type { StatusResult } from './status.main.runtime';\n\nconst TROUBLESHOOTING_MESSAGE = chalk.yellow(\n `learn more about Bit components: ${BASE_DOCS_DOMAIN}reference/components/component-anatomy`\n);\n\nexport type StatusFormatterOptions = {\n strict?: boolean;\n verbose?: boolean;\n warnings?: boolean;\n failOnError?: boolean;\n};\n\nexport function formatStatusOutput(\n statusResult: StatusResult,\n options: StatusFormatterOptions = {}\n): { data: string; code: number } {\n const { strict = false, verbose = false, warnings = false, failOnError = false } = options;\n\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 localOnly,\n updatesFromForked,\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues,\n } = statusResult;\n\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(\n id: ComponentID,\n showIssues = false,\n message?: string,\n localVersions?: string[],\n showSoftTagMsg = true\n ): string {\n const idWithIssues = componentsWithIssues.find((c) => c.id.isEqual(id));\n const isSoftTagged = Boolean(softTaggedComponents.find((softTaggedId) => softTaggedId.isEqual(id)));\n const hasTagBlocker = idWithIssues?.issues.hasTagBlockerIssues();\n const isClean = !message && !idWithIssues;\n\n const getSymbol = () => {\n if (message) return chalk.yellow('⚠');\n if (idWithIssues) return hasTagBlocker ? chalk.red('✖') : chalk.yellow('⚠');\n return Logger.successSymbol();\n };\n\n let idFormatted = ` ${getSymbol()} ` + chalk.cyan(id.toStringWithoutVersion());\n\n if (localVersions) {\n if (verbose) {\n idFormatted += ` - 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 idFormatted += ' - ';\n idFormatted += tagsStr && snapsStr ? `${tagsStr}, ${snapsStr}` : tagsStr || snapsStr;\n }\n }\n\n if (showIssues && idWithIssues) {\n showTroubleshootingLink = true;\n const issuesTxt = hasTagBlocker ? statusFailureMsg : statusWarningsMsg;\n const issuesColor = hasTagBlocker ? 'red' : 'yellow';\n return `${idFormatted} ... ${chalk[issuesColor](issuesTxt)}${formatIssues(idWithIssues.issues)}`;\n }\n\n if (isClean) {\n const softTagSuffix = isSoftTagged && showSoftTagMsg ? chalk.green(' (soft-tagged)') : '';\n return `${idFormatted}${softTagSuffix}`;\n }\n\n const statusText = message || (hasTagBlocker ? statusFailureMsg : statusWarningsMsg);\n const statusColor: 'yellow' | 'red' = message ? 'yellow' : hasTagBlocker ? 'red' : 'yellow';\n const statusTextWithSoftTag = isSoftTagged && showSoftTagMsg ? `${statusText} (soft-tagged)` : statusText;\n return `${idFormatted} ... ${chalk[statusColor](statusTextWithSoftTag)}`;\n }\n\n function formatCategory(title: string, description: string, compsOutput: string[]) {\n if (!compsOutput.length) return '';\n const titleOutput = chalk.bold.white(`${title} (${compsOutput.length})`);\n const descOutput = description ? `${chalk.dim(description)}\\n` : '';\n return [titleOutput, descOutput, ...compsOutput].join('\\n');\n }\n\n const importPendingWarning = importPendingComponents.length ? chalk.yellow(`${IMPORT_PENDING_MSG}.\\n`) : '';\n\n const newCompFormatted = newComponents.map((c) => format(c));\n const { missing, nonMissing } = groupBy(newCompFormatted, (component) => {\n return component.includes(statusFailureMsg) ? 'missing' : 'nonMissing';\n });\n\n const outdatedTitle = '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 const outdatedComps = outdatedComponents.map((component) => {\n const latest =\n component.latestVersion && component.latestVersion !== component.headVersion\n ? ` latest: ${component.latestVersion}`\n : '';\n return ` ${chalk.yellow('⚠')} ${chalk.cyan(component.id.toStringWithoutVersion())} current: ${component.id.version} head: ${\n component.headVersion\n }${latest}`;\n });\n const outdatedStr = formatCategory(outdatedTitle, outdatedDesc, outdatedComps);\n\n const pendingMergeTitle = '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 const pendingMergeComps = mergePendingComponents.map((component) => {\n return ` ${chalk.yellow('⚠')} ${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 const pendingMergeStr = formatCategory(pendingMergeTitle, pendingMergeDesc, pendingMergeComps);\n\n const compDuringMergeTitle = '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 const compDuringMergeComps = componentsDuringMergeState.map((c) => format(c));\n\n const compDuringMergeStr = formatCategory(compDuringMergeTitle, compDuringMergeDesc, compDuringMergeComps);\n\n const newComponentDescription = '(use \"bit snap/tag\" to lock a version with all your changes)';\n const newComponentsOutput = formatCategory('new components', newComponentDescription, [\n ...(nonMissing || []),\n ...(missing || []),\n ]);\n\n const modifiedDesc = '(use \"bit diff\" to compare changes)';\n const modifiedComponentOutput = formatCategory(\n 'modified components',\n modifiedDesc,\n modifiedComponents.map((c) => format(c))\n );\n\n const autoTagPendingTitle = 'components pending auto-tag (when their modified dependencies are tagged)';\n const autoTagPendingOutput = formatCategory(\n autoTagPendingTitle,\n '',\n autoTagPendingComponents.map((c) => format(c))\n );\n\n const componentsWithIssuesToPrint = componentsWithIssues.filter((c) => c.issues.hasTagBlockerIssues() || warnings);\n const compWithIssuesDesc = '(fix the issues according to the suggested solution)';\n const compWithIssuesOutput = formatCategory(\n 'components with issues',\n compWithIssuesDesc,\n componentsWithIssuesToPrint.map((c) => format(c.id, true)).sort()\n );\n\n const invalidDesc = 'these components failed to load';\n const invalidComps = invalidComponents.map((c) => format(c.id, false, getInvalidComponentLabel(c.error))).sort();\n const invalidComponentOutput = formatCategory(statusInvalidComponentsMsg, invalidDesc, invalidComps);\n\n const locallySoftRemovedDesc =\n '(tag/snap and export the components to update the deletion to the remote. to undo deletion, run \"bit recover\")';\n const locallySoftRemovedOutput = formatCategory(\n 'soft-removed components locally',\n locallySoftRemovedDesc,\n locallySoftRemoved.map((c) => format(c)).sort()\n );\n\n const remotelySoftRemovedDesc =\n '(use \"bit remove\" to remove them from the workspace. use \"bit recover\" to undo the deletion)';\n const remotelySoftRemovedOutput = formatCategory(\n 'components deleted on the remote',\n remotelySoftRemovedDesc,\n remotelySoftRemoved.map((c) => format(c)).sort()\n );\n\n const stagedDesc = '(use \"bit export\" to push these component versions to the remote scope)';\n const stagedComps = stagedComponents.map((c) => format(c.id, false, undefined, c.versions));\n const stagedComponentsOutput = formatCategory('staged components', stagedDesc, stagedComps);\n\n const localOnlyDesc = '(these components are excluded from tag/snap/export commands)';\n const localOnlyComps = localOnly.map((c) => format(c)).sort();\n const localOnlyComponentsOutput = formatCategory('local-only components', localOnlyDesc, localOnlyComps);\n\n const softTaggedDesc = '(use \"bit tag --persist\" to complete the tag)';\n const softTaggedComps = softTaggedComponents.map((id) => format(id, false, undefined, undefined, false));\n const softTaggedComponentsOutput = formatCategory('soft-tagged components', softTaggedDesc, softTaggedComps);\n\n const snappedDesc = '(use \"bit tag\" or \"bit tag --snapped\" to lock a semver version)';\n const snappedComponentsOutput = formatCategory(\n 'snapped components (tag pending)',\n snappedDesc,\n snappedComponents.map((c) => format(c))\n );\n\n const unavailableOnMainDesc = '(use \"bit checkout head\" to make them available)';\n const unavailableOnMainOutput = formatCategory(\n 'components unavailable on main',\n unavailableOnMainDesc,\n unavailableOnMain.map((c) => format(c))\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 const updatesFromMainDesc = '(use \"bit lane merge main\" to merge the changes)';\n const pendingUpdatesFromMainIds = pendingUpdatesFromMain.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData))\n );\n const updatesFromMainOutput = formatCategory(\n 'pending updates from main',\n updatesFromMainDesc,\n pendingUpdatesFromMainIds\n );\n\n let updatesFromForkedOutput = '';\n if (forkedLaneId) {\n const updatesFromForkedDesc = `(use \"bit lane merge ${forkedLaneId.toString()}\" to merge the changes\nuse \"bit fetch ${forkedLaneId.toString()} --lanes\" to update ${forkedLaneId.name} locally)`;\n const pendingUpdatesFromForkedIds = updatesFromForked.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData, forkedLaneId.name))\n );\n updatesFromForkedOutput = formatCategory(\n `updates from ${forkedLaneId.name}`,\n updatesFromForkedDesc,\n pendingUpdatesFromForkedIds\n );\n }\n\n const getLaneStr = () => {\n if (currentLaneId.isDefault()) return '';\n const prefix = `\\n\\ncurrent lane ${chalk.bold(currentLaneId.toString())}`;\n return prefix;\n };\n\n const getWorkspaceIssuesOutput = () => {\n if (!workspaceIssues.length) return '';\n const title = chalk.bold.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 const wereWarningsFilteredOut = componentsWithIssuesToPrint.length < componentsWithIssues.length;\n const showWarningsStr = wereWarningsFilteredOut\n ? `\\n${chalk.yellow('to view the warnings, use --warnings flag.')}`\n : '';\n\n const statusMsg =\n importPendingWarning +\n compact([\n outdatedStr,\n pendingMergeStr,\n updatesFromMainOutput,\n updatesFromForkedOutput,\n compDuringMergeStr,\n localOnlyComponentsOutput,\n newComponentsOutput,\n modifiedComponentOutput,\n snappedComponentsOutput,\n stagedComponentsOutput,\n softTaggedComponentsOutput,\n unavailableOnMainOutput,\n autoTagPendingOutput,\n compWithIssuesOutput,\n invalidComponentOutput,\n locallySoftRemovedOutput,\n remotelySoftRemovedOutput,\n ]).join('\\n\\n') +\n showWarningsStr +\n troubleshootingStr;\n\n const results =\n (statusMsg || `${Logger.successSymbol()} ${chalk.yellow(statusWorkspaceIsCleanMsg)}`) +\n getWorkspaceIssuesOutput() +\n getLaneStr();\n\n // Determine exit code based on flags\n let exitCode = 0;\n if (strict && componentsWithIssues.length > 0) {\n // Strict mode: fail on any issues (both errors and warnings)\n exitCode = 1;\n } else if (failOnError) {\n // Fail only on tag blocker issues (errors), not warnings\n const hasTagBlockerIssues = componentsWithIssues.some((c) => c.issues.hasTagBlockerIssues());\n if (hasTagBlockerIssues) {\n exitCode = 1;\n }\n }\n\n return {\n data: results,\n code: exitCode,\n };\n}\n\nexport function formatIssues(issues: IssuesList) {\n return ` ${issues?.outputForCLI()}\\n`;\n}\n\nfunction getInvalidComponentLabel(error: Error) {\n switch (error.name) {\n case 'MainFileRemoved':\n return 'main-file was removed (use \"bit add\" with \"--main\" and \"--id\" flags to add a main file)';\n case 'ComponentNotFoundInPath':\n return 'component files were deleted (use \"bit remove [component_id]\") or moved (use \"bit move <old-dir> <new-dir>\"). to restore use \"bit checkout reset [component_id]\"';\n case 'ExtensionFileNotFound':\n // @ts-ignore error.path is set for ExtensionFileNotFound\n return `extension file is missing at ${chalk.bold(error.path)}`;\n case 'ComponentsPendingImport':\n return 'component objects are missing from the scope (use \"bit import [component_id] --objects\" to get them back)';\n case 'NoComponentDir':\n return `component files were added individually without root directory (invalid on Harmony. re-add as a directory or use \"bit move --component\" to help with the move)`;\n case 'IgnoredDirectory':\n return `component files or directory were ignored (probably by .gitignore)`;\n case 'NoCommonSnap':\n return `component history is unrelated to main (merge main with --resolve-unrelated flag)`;\n default:\n return error.name;\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;AAIA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,kBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAoD,SAAAC,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGpD,MAAMG,uBAAuB,GAAGC,gBAAK,CAACC,MAAM,CAC1C,oCAAoCC,0BAAgB,wCACtD,CAAC;AASM,SAASC,kBAAkBA,CAChCC,YAA0B,EAC1BC,OAA+B,GAAG,CAAC,CAAC,EACJ;EAChC,MAAM;IAAEC,MAAM,GAAG,KAAK;IAAEC,OAAO,GAAG,KAAK;IAAEC,QAAQ,GAAG,KAAK;IAAEC,WAAW,GAAG;EAAM,CAAC,GAAGJ,OAAO;EAE1F,MAAM;IACJK,aAAa;IACbC,kBAAkB;IAClBC,gBAAgB;IAChBC,oBAAoB;IACpBC,uB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AI,EAAEF;EACR,CAAC;AACH;AAEO,SAASvG,YAAYA,CAACvB,MAAkB,EAAE;EAC/C,OAAO,UAAUA,MAAM,EAAEiI,YAAY,CAAC,CAAC,IAAI;AAC7C;AAEA,SAASlD,wBAAwBA,CAACC,KAAY,EAAE;EAC9C,QAAQA,KAAK,CAACiC,IAAI;IAChB,KAAK,iBAAiB;MACpB,OAAO,yFAAyF;IAClG,KAAK,yBAAyB;MAC5B,OAAO,kKAAkK;IAC3K,KAAK,uBAAuB;MAC1B;MACA,OAAO,gCAAgC/J,gBAAK,CAACgF,IAAI,CAAC8C,KAAK,CAACkD,IAAI,CAAC,EAAE;IACjE,KAAK,yBAAyB;MAC5B,OAAO,2GAA2G;IACpH,KAAK,gBAAgB;MACnB,OAAO,gKAAgK;IACzK,KAAK,kBAAkB;MACrB,OAAO,oEAAoE;IAC7E,KAAK,cAAc;MACjB,OAAO,mFAAmF;IAC5F;MACE,OAAOlD,KAAK,CAACiC,IAAI;EACrB;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_legacy","_logger","_cli","_lodash","_componentVersion","e","__esModule","default","TROUBLESHOOTING_MESSAGE","chalk","yellow","BASE_DOCS_DOMAIN","formatStatusOutput","statusResult","options","strict","verbose","warnings","failOnError","newComponents","modifiedComponents","stagedComponents","componentsWithIssues","importPendingComponents","autoTagPendingComponents","invalidComponents","locallySoftRemoved","remotelySoftRemoved","outdatedComponents","mergePendingComponents","componentsDuringMergeState","softTaggedComponents","snappedComponents","pendingUpdatesFromMain","localOnly","updatesFromForked","unavailableOnMain","currentLaneId","forkedLaneId","workspaceIssues","showTroubleshootingLink","format","id","showIssues","message","localVersions","showSoftTagMsg","idWithIssues","find","c","isEqual","isSoftTagged","Boolean","softTaggedId","hasTagBlocker","issues","hasTagBlockerIssues","isClean","getSymbol","red","Logger","successSymbol","idFormatted","cyan","toStringWithoutVersion","join","snaps","tags","partition","version","isHash","tagsStr","length","snapsStr","issuesTxt","statusFailureMsg","statusWarningsMsg","issuesColor","formatIssues","softTagSuffix","green","statusText","statusColor","statusTextWithSoftTag","importPendingWarning","IMPORT_PENDING_MSG","newCompFormatted","map","missing","nonMissing","groupBy","component","includes","outdatedTitle","outdatedDesc","outdatedComps","latest","latestVersion","headVersion","outdatedStr","formatSection","pendingMergeTitle","pendingMergeDesc","pendingMergeComps","toString","divergeData","snapsOnSourceOnly","snapsOnTargetOnly","pendingMergeStr","compDuringMergeTitle","compDuringMergeDesc","compDuringMergeComps","compDuringMergeStr","newComponentDescription","newComponentsOutput","modifiedDesc","modifiedComponentOutput","autoTagPendingTitle","autoTagPendingOutput","componentsWithIssuesToPrint","filter","compWithIssuesDesc","compWithIssuesOutput","sort","invalidDesc","invalidComps","getInvalidComponentLabel","error","invalidComponentOutput","statusInvalidComponentsMsg","locallySoftRemovedDesc","locallySoftRemovedOutput","remotelySoftRemovedDesc","remotelySoftRemovedOutput","stagedDesc","stagedComps","undefined","versions","stagedComponentsOutput","localOnlyDesc","localOnlyComps","localOnlyComponentsOutput","softTaggedDesc","softTaggedComps","softTaggedComponentsOutput","snappedDesc","snappedComponentsOutput","unavailableOnMainDesc","unavailableOnMainOutput","getUpdateFromMsg","from","err","msg","commonSnapBeforeDiverge","toShortString","updatesFromMainDesc","pendingUpdatesFromMainIds","updatesFromMainOutput","updatesFromForkedOutput","updatesFromForkedDesc","name","pendingUpdatesFromForkedIds","getLaneStr","isDefault","prefix","bold","getWorkspaceIssuesOutput","title","white","troubleshootingStr","wereWarningsFilteredOut","showWarningsStr","statusMsg","compact","results","statusWorkspaceIsCleanMsg","exitCode","some","code","outputForCLI","path"],"sources":["status-formatter.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { ComponentID } from '@teambit/component-id';\nimport type { SnapsDistance } from '@teambit/component.snap-distance';\nimport type { IssuesList } from '@teambit/component-issues';\nimport {\n IMPORT_PENDING_MSG,\n statusFailureMsg,\n statusWarningsMsg,\n statusInvalidComponentsMsg,\n statusWorkspaceIsCleanMsg,\n BASE_DOCS_DOMAIN,\n} from '@teambit/legacy.constants';\nimport { Logger } from '@teambit/logger';\nimport { formatSection } from '@teambit/cli';\nimport { compact, groupBy, partition } from 'lodash';\nimport { isHash } from '@teambit/component-version';\nimport type { StatusResult } from './status.main.runtime';\n\nconst TROUBLESHOOTING_MESSAGE = chalk.yellow(\n `learn more about Bit components: ${BASE_DOCS_DOMAIN}reference/components/component-anatomy`\n);\n\nexport type StatusFormatterOptions = {\n strict?: boolean;\n verbose?: boolean;\n warnings?: boolean;\n failOnError?: boolean;\n};\n\nexport function formatStatusOutput(\n statusResult: StatusResult,\n options: StatusFormatterOptions = {}\n): { data: string; code: number } {\n const { strict = false, verbose = false, warnings = false, failOnError = false } = options;\n\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 localOnly,\n updatesFromForked,\n unavailableOnMain,\n currentLaneId,\n forkedLaneId,\n workspaceIssues,\n } = statusResult;\n\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(\n id: ComponentID,\n showIssues = false,\n message?: string,\n localVersions?: string[],\n showSoftTagMsg = true\n ): string {\n const idWithIssues = componentsWithIssues.find((c) => c.id.isEqual(id));\n const isSoftTagged = Boolean(softTaggedComponents.find((softTaggedId) => softTaggedId.isEqual(id)));\n const hasTagBlocker = idWithIssues?.issues.hasTagBlockerIssues();\n const isClean = !message && !idWithIssues;\n\n const getSymbol = () => {\n if (message) return chalk.yellow('⚠');\n if (idWithIssues) return hasTagBlocker ? chalk.red('✖') : chalk.yellow('⚠');\n return Logger.successSymbol();\n };\n\n let idFormatted = ` ${getSymbol()} ` + chalk.cyan(id.toStringWithoutVersion());\n\n if (localVersions) {\n if (verbose) {\n idFormatted += ` - 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 idFormatted += ' - ';\n idFormatted += tagsStr && snapsStr ? `${tagsStr}, ${snapsStr}` : tagsStr || snapsStr;\n }\n }\n\n if (showIssues && idWithIssues) {\n showTroubleshootingLink = true;\n const issuesTxt = hasTagBlocker ? statusFailureMsg : statusWarningsMsg;\n const issuesColor = hasTagBlocker ? 'red' : 'yellow';\n return `${idFormatted} ... ${chalk[issuesColor](issuesTxt)}${formatIssues(idWithIssues.issues)}`;\n }\n\n if (isClean) {\n const softTagSuffix = isSoftTagged && showSoftTagMsg ? chalk.green(' (soft-tagged)') : '';\n return `${idFormatted}${softTagSuffix}`;\n }\n\n const statusText = message || (hasTagBlocker ? statusFailureMsg : statusWarningsMsg);\n const statusColor: 'yellow' | 'red' = message ? 'yellow' : hasTagBlocker ? 'red' : 'yellow';\n const statusTextWithSoftTag = isSoftTagged && showSoftTagMsg ? `${statusText} (soft-tagged)` : statusText;\n return `${idFormatted} ... ${chalk[statusColor](statusTextWithSoftTag)}`;\n }\n\n const importPendingWarning = importPendingComponents.length ? chalk.yellow(`${IMPORT_PENDING_MSG}.\\n`) : '';\n\n const newCompFormatted = newComponents.map((c) => format(c));\n const { missing, nonMissing } = groupBy(newCompFormatted, (component) => {\n return component.includes(statusFailureMsg) ? 'missing' : 'nonMissing';\n });\n\n const outdatedTitle = '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 const outdatedComps = outdatedComponents.map((component) => {\n const latest =\n component.latestVersion && component.latestVersion !== component.headVersion\n ? ` latest: ${component.latestVersion}`\n : '';\n return ` ${chalk.yellow('⚠')} ${chalk.cyan(component.id.toStringWithoutVersion())} current: ${component.id.version} head: ${\n component.headVersion\n }${latest}`;\n });\n const outdatedStr = formatSection(outdatedTitle, outdatedDesc, outdatedComps);\n\n const pendingMergeTitle = '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 const pendingMergeComps = mergePendingComponents.map((component) => {\n return ` ${chalk.yellow('⚠')} ${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 const pendingMergeStr = formatSection(pendingMergeTitle, pendingMergeDesc, pendingMergeComps);\n\n const compDuringMergeTitle = '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 const compDuringMergeComps = componentsDuringMergeState.map((c) => format(c));\n\n const compDuringMergeStr = formatSection(compDuringMergeTitle, compDuringMergeDesc, compDuringMergeComps);\n\n const newComponentDescription = '(use \"bit snap/tag\" to lock a version with all your changes)';\n const newComponentsOutput = formatSection('new components', newComponentDescription, [\n ...(nonMissing || []),\n ...(missing || []),\n ]);\n\n const modifiedDesc = '(use \"bit diff\" to compare changes)';\n const modifiedComponentOutput = formatSection(\n 'modified components',\n modifiedDesc,\n modifiedComponents.map((c) => format(c))\n );\n\n const autoTagPendingTitle = 'components pending auto-tag (when their modified dependencies are tagged)';\n const autoTagPendingOutput = formatSection(\n autoTagPendingTitle,\n '',\n autoTagPendingComponents.map((c) => format(c))\n );\n\n const componentsWithIssuesToPrint = componentsWithIssues.filter((c) => c.issues.hasTagBlockerIssues() || warnings);\n const compWithIssuesDesc = '(fix the issues according to the suggested solution)';\n const compWithIssuesOutput = formatSection(\n 'components with issues',\n compWithIssuesDesc,\n componentsWithIssuesToPrint.map((c) => format(c.id, true)).sort()\n );\n\n const invalidDesc = 'these components failed to load';\n const invalidComps = invalidComponents.map((c) => format(c.id, false, getInvalidComponentLabel(c.error))).sort();\n const invalidComponentOutput = formatSection(statusInvalidComponentsMsg, invalidDesc, invalidComps);\n\n const locallySoftRemovedDesc =\n '(tag/snap and export the components to update the deletion to the remote. to undo deletion, run \"bit recover\")';\n const locallySoftRemovedOutput = formatSection(\n 'soft-removed components locally',\n locallySoftRemovedDesc,\n locallySoftRemoved.map((c) => format(c)).sort()\n );\n\n const remotelySoftRemovedDesc =\n '(use \"bit remove\" to remove them from the workspace. use \"bit recover\" to undo the deletion)';\n const remotelySoftRemovedOutput = formatSection(\n 'components deleted on the remote',\n remotelySoftRemovedDesc,\n remotelySoftRemoved.map((c) => format(c)).sort()\n );\n\n const stagedDesc = '(use \"bit export\" to push these component versions to the remote scope)';\n const stagedComps = stagedComponents.map((c) => format(c.id, false, undefined, c.versions));\n const stagedComponentsOutput = formatSection('staged components', stagedDesc, stagedComps);\n\n const localOnlyDesc = '(these components are excluded from tag/snap/export commands)';\n const localOnlyComps = localOnly.map((c) => format(c)).sort();\n const localOnlyComponentsOutput = formatSection('local-only components', localOnlyDesc, localOnlyComps);\n\n const softTaggedDesc = '(use \"bit tag --persist\" to complete the tag)';\n const softTaggedComps = softTaggedComponents.map((id) => format(id, false, undefined, undefined, false));\n const softTaggedComponentsOutput = formatSection('soft-tagged components', softTaggedDesc, softTaggedComps);\n\n const snappedDesc = '(use \"bit tag\" or \"bit tag --snapped\" to lock a semver version)';\n const snappedComponentsOutput = formatSection(\n 'snapped components (tag pending)',\n snappedDesc,\n snappedComponents.map((c) => format(c))\n );\n\n const unavailableOnMainDesc = '(use \"bit checkout head\" to make them available)';\n const unavailableOnMainOutput = formatSection(\n 'components unavailable on main',\n unavailableOnMainDesc,\n unavailableOnMain.map((c) => format(c))\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 const updatesFromMainDesc = '(use \"bit lane merge main\" to merge the changes)';\n const pendingUpdatesFromMainIds = pendingUpdatesFromMain.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData))\n );\n const updatesFromMainOutput = formatSection(\n 'pending updates from main',\n updatesFromMainDesc,\n pendingUpdatesFromMainIds\n );\n\n let updatesFromForkedOutput = '';\n if (forkedLaneId) {\n const updatesFromForkedDesc = `(use \"bit lane merge ${forkedLaneId.toString()}\" to merge the changes\nuse \"bit fetch ${forkedLaneId.toString()} --lanes\" to update ${forkedLaneId.name} locally)`;\n const pendingUpdatesFromForkedIds = updatesFromForked.map((c) =>\n format(c.id, false, getUpdateFromMsg(c.divergeData, forkedLaneId.name))\n );\n updatesFromForkedOutput = formatSection(\n `updates from ${forkedLaneId.name}`,\n updatesFromForkedDesc,\n pendingUpdatesFromForkedIds\n );\n }\n\n const getLaneStr = () => {\n if (currentLaneId.isDefault()) return '';\n const prefix = `\\n\\ncurrent lane ${chalk.bold(currentLaneId.toString())}`;\n return prefix;\n };\n\n const getWorkspaceIssuesOutput = () => {\n if (!workspaceIssues.length) return '';\n const title = chalk.bold.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 const wereWarningsFilteredOut = componentsWithIssuesToPrint.length < componentsWithIssues.length;\n const showWarningsStr = wereWarningsFilteredOut\n ? `\\n${chalk.yellow('to view the warnings, use --warnings flag.')}`\n : '';\n\n const statusMsg =\n importPendingWarning +\n compact([\n outdatedStr,\n pendingMergeStr,\n updatesFromMainOutput,\n updatesFromForkedOutput,\n compDuringMergeStr,\n localOnlyComponentsOutput,\n newComponentsOutput,\n modifiedComponentOutput,\n snappedComponentsOutput,\n stagedComponentsOutput,\n softTaggedComponentsOutput,\n unavailableOnMainOutput,\n autoTagPendingOutput,\n compWithIssuesOutput,\n invalidComponentOutput,\n locallySoftRemovedOutput,\n remotelySoftRemovedOutput,\n ]).join('\\n\\n') +\n showWarningsStr +\n troubleshootingStr;\n\n const results =\n (statusMsg || `${Logger.successSymbol()} ${chalk.yellow(statusWorkspaceIsCleanMsg)}`) +\n getWorkspaceIssuesOutput() +\n getLaneStr();\n\n // Determine exit code based on flags\n let exitCode = 0;\n if (strict && componentsWithIssues.length > 0) {\n // Strict mode: fail on any issues (both errors and warnings)\n exitCode = 1;\n } else if (failOnError) {\n // Fail only on tag blocker issues (errors), not warnings\n const hasTagBlockerIssues = componentsWithIssues.some((c) => c.issues.hasTagBlockerIssues());\n if (hasTagBlockerIssues) {\n exitCode = 1;\n }\n }\n\n return {\n data: results,\n code: exitCode,\n };\n}\n\nexport function formatIssues(issues: IssuesList) {\n return ` ${issues?.outputForCLI()}\\n`;\n}\n\nfunction getInvalidComponentLabel(error: Error) {\n switch (error.name) {\n case 'MainFileRemoved':\n return 'main-file was removed (use \"bit add\" with \"--main\" and \"--id\" flags to add a main file)';\n case 'ComponentNotFoundInPath':\n return 'component files were deleted (use \"bit remove [component_id]\") or moved (use \"bit move <old-dir> <new-dir>\"). to restore use \"bit checkout reset [component_id]\"';\n case 'ExtensionFileNotFound':\n // @ts-ignore error.path is set for ExtensionFileNotFound\n return `extension file is missing at ${chalk.bold(error.path)}`;\n case 'ComponentsPendingImport':\n return 'component objects are missing from the scope (use \"bit import [component_id] --objects\" to get them back)';\n case 'NoComponentDir':\n return `component files were added individually without root directory (invalid on Harmony. re-add as a directory or use \"bit move --component\" to help with the move)`;\n case 'IgnoredDirectory':\n return `component files or directory were ignored (probably by .gitignore)`;\n case 'NoCommonSnap':\n return `component history is unrelated to main (merge main with --resolve-unrelated flag)`;\n default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AClG,KAAK,yBAAyB;MAC5B,OAAO,kKAAkK;IAC3K,KAAK,uBAAuB;MAC1B;MACA,OAAO,gCAAgCvJ,gBAAK,CAAC4J,IAAI,CAACtC,KAAK,CAACqD,IAAI,CAAC,EAAE;IACjE,KAAK,yBAAyB;MAC5B,OAAO,2GAA2G;IACpH,KAAK,gBAAgB;MACnB,OAAO,gKAAgK;IACzK,KAAK,kBAAkB;MACrB,OAAO,oEAAoE;IAC7E,KAAK,cAAc;MACjB,OAAO,mFAAmF;IAC5F;MACE,OAAOrD,KAAK,CAACiC,IAAI;EACrB;AACF","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/status",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.942",
|
|
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.942"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"p-map-series": "2.1.0",
|
|
15
|
-
"@teambit/cli": "0.0.1305",
|
|
16
15
|
"@teambit/component-id": "1.2.4",
|
|
17
16
|
"@teambit/legacy.constants": "0.0.24",
|
|
18
|
-
"@teambit/logger": "0.0.1398",
|
|
19
17
|
"@teambit/component-issues": "0.0.171",
|
|
20
18
|
"@teambit/component-version": "1.0.4",
|
|
21
19
|
"@teambit/component.snap-distance": "0.0.104",
|
|
22
20
|
"@teambit/harmony": "0.4.7",
|
|
23
|
-
"@teambit/component": "1.0.923",
|
|
24
|
-
"@teambit/insights": "1.0.924",
|
|
25
|
-
"@teambit/issues": "1.0.923",
|
|
26
21
|
"@teambit/lane-id": "0.0.312",
|
|
27
|
-
"@teambit/lanes": "1.0.937",
|
|
28
22
|
"@teambit/legacy.component-list": "0.0.157",
|
|
29
23
|
"@teambit/legacy.consumer-component": "0.0.104",
|
|
30
24
|
"@teambit/legacy.consumer": "0.0.103",
|
|
31
|
-
"@teambit/
|
|
32
|
-
"@teambit/
|
|
33
|
-
"@teambit/
|
|
34
|
-
"@teambit/
|
|
25
|
+
"@teambit/cli": "0.0.1306",
|
|
26
|
+
"@teambit/logger": "0.0.1399",
|
|
27
|
+
"@teambit/component": "1.0.924",
|
|
28
|
+
"@teambit/insights": "1.0.925",
|
|
29
|
+
"@teambit/issues": "1.0.924",
|
|
30
|
+
"@teambit/lanes": "1.0.938",
|
|
31
|
+
"@teambit/merging": "1.0.925",
|
|
32
|
+
"@teambit/objects": "0.0.431",
|
|
33
|
+
"@teambit/remove": "1.0.924",
|
|
34
|
+
"@teambit/workspace": "1.0.924"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/lodash": "4.14.165",
|
|
File without changes
|