@teambit/export 1.0.923 → 1.0.924

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.
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ExportCmd = void 0;
7
+ function _cli() {
8
+ const data = require("@teambit/cli");
9
+ _cli = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
7
14
  function _open() {
8
15
  const data = _interopRequireDefault(require("open"));
9
16
  _open = function () {
@@ -98,55 +105,55 @@ exporting is the final step after development and versioning to share components
98
105
  return _chalk().default.yellow('nothing to export');
99
106
  }
100
107
  const exportedLane = exportedLanes[0]?.id();
101
- const getExportedIds = () => {
102
- if (!verbose) return componentsIds.join('\n');
103
- return componentsIds.map(id => {
104
- const versions = newIdsOnRemote.filter(newId => newId.isEqualWithoutVersion(id)).map(newId => newId.version);
105
- return `${id.toString()} - ${versions.join(', ') || 'n/a'}`;
106
- }).join('\n');
107
- };
108
- const exportOutput = () => {
109
- if ((0, _lodash().isEmpty)(componentsIds)) return exportedLane ? `exported the lane ${_chalk().default.bold(exportedLane)}` : '';
108
+ const exportSection = (() => {
109
+ if ((0, _lodash().isEmpty)(componentsIds)) {
110
+ if (!exportedLane) return '';
111
+ return (0, _cli().formatSection)('exported lane', '', [(0, _cli().formatItem)(_chalk().default.bold(exportedLane))]);
112
+ }
110
113
  const lanesOutput = exportedLanes.length ? ` the lane ${_chalk().default.bold(exportedLanes[0].id())} and` : '';
111
- return _chalk().default.green(`exported${lanesOutput} the following ${componentsIds.length} component(s):\n${_chalk().default.bold(getExportedIds())}`);
112
- };
113
- const nonExistOnBitMapOutput = () => {
114
- // if includeDependencies is true, the nonExistOnBitMap might be the dependencies
114
+ const items = componentsIds.map(id => {
115
+ if (!verbose) return (0, _cli().formatItem)(_chalk().default.bold(id.toString()));
116
+ const versions = newIdsOnRemote.filter(newId => newId.isEqualWithoutVersion(id)).map(newId => newId.version);
117
+ return (0, _cli().formatItem)(`${_chalk().default.bold(id.toString())} - ${versions.join(', ') || 'n/a'}`);
118
+ });
119
+ const desc = `exported${lanesOutput} the following component(s)`;
120
+ return (0, _cli().formatSection)('exported components', desc, items);
121
+ })();
122
+ const nonExistOnBitMapSection = (() => {
115
123
  if ((0, _lodash().isEmpty)(nonExistOnBitMap)) return '';
116
124
  const idsStr = nonExistOnBitMap.map(id => id.toString()).join(', ');
117
- return _chalk().default.yellow(`${idsStr}\nexported successfully. bit did not update the workspace as the component files are not tracked. this might happen when a component was tracked in a different git branch. to fix it check if they where tracked in a different git branch, checkout to that branch and resync by running 'bit import'. or stay on your branch and track the components again using 'bit add'.\n`);
118
- };
119
- const removedOutput = () => {
125
+ return `${_cli().warnSymbol} ${_chalk().default.yellow(idsStr)}\n${(0, _cli().formatHint)("exported successfully. bit did not update the workspace as the component files are not tracked. this might happen when a component was tracked in a different git branch. to fix it check if they were tracked in a different git branch, checkout to that branch and resync by running 'bit import'. or stay on your branch and track the components again using 'bit add'.")}`;
126
+ })();
127
+ const removedSection = (() => {
120
128
  if (!removedIds.length) return '';
121
129
  const remoteLaneStr = exportedLanes.length ? ' lane' : '';
122
- const title = _chalk().default.bold(`\n\nthe following component(s) have been marked as removed on the remote${remoteLaneStr}\n`);
123
- const idsStr = removedIds.join('\n');
124
- return title + idsStr;
125
- };
126
- const missingScopeOutput = () => {
130
+ const items = removedIds.map(id => (0, _cli().formatItem)(id.toString(), _cli().warnSymbol));
131
+ return (0, _cli().formatSection)(`components removed on the remote${remoteLaneStr}`, '', items);
132
+ })();
133
+ const missingScopeSection = (() => {
127
134
  if ((0, _lodash().isEmpty)(missingScope)) return '';
128
- const idsStr = missingScope.map(id => id.toString()).join(', ');
129
- return _chalk().default.yellow(`the following component(s) were not exported as no remote scope is configured for them: ${_chalk().default.bold(idsStr)}.\nplease specify <remote> to export them, run 'bit scope set <scope> <component>, or set a "defaultScope" in your workspace config\n\n`);
130
- };
131
- const ejectOutput = () => {
135
+ const items = missingScope.map(id => (0, _cli().formatItem)(id.toString(), _cli().warnSymbol));
136
+ const hint = (0, _cli().formatHint)('please specify <remote> to export them, run \'bit scope set <scope> <component>\', or set a "defaultScope" in your workspace config');
137
+ return `${(0, _cli().formatSection)('components not exported (no remote scope configured)', '', items)}\n${hint}`;
138
+ })();
139
+ const ejectSection = (() => {
132
140
  if (!ejectResults) return '';
133
- const output = (0, _eject().ejectTemplate)(ejectResults);
134
- return `\n${output}`;
135
- };
136
- const rippleJobsOutput = () => {
141
+ return (0, _eject().ejectTemplate)(ejectResults);
142
+ })();
143
+ const rippleJobsSection = (() => {
137
144
  if (!rippleJobUrls.length) return '';
138
145
  const shouldOpenBrowser = openBrowser && !process.env.CI;
139
146
  const prefix = shouldOpenBrowser ? 'Your browser has been opened to the following link' : 'Visit the link below';
140
- const msg = `\n\n${prefix} to track the progress of building the components in the cloud\n`;
147
+ const msg = `${prefix} to track the progress of building the components in the cloud`;
141
148
  if (shouldOpenBrowser) {
142
149
  (0, _open().default)(rippleJobUrls[0]).catch(() => {
143
150
  /** it's ok, the user is instructed to open the browser manually */
144
151
  });
145
152
  }
146
153
  const urlsColored = rippleJobUrls.map(url => _chalk().default.bold.underline(url));
147
- return msg + urlsColored.join('\n');
148
- };
149
- return nonExistOnBitMapOutput() + missingScopeOutput() + exportOutput() + ejectOutput() + removedOutput() + rippleJobsOutput();
154
+ return `${msg}\n${urlsColored.join('\n')}`;
155
+ })();
156
+ return (0, _cli().joinSections)([nonExistOnBitMapSection, missingScopeSection, exportSection, ejectSection, removedSection, rippleJobsSection]);
150
157
  }
151
158
  async json([ids = []], {
152
159
  eject = false,
@@ -1 +1 @@
1
- {"version":3,"names":["_open","data","_interopRequireDefault","require","_eject","_legacy","_chalk","_lodash","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ExportCmd","constructor","exportMain","name","description","COMPONENT_PATTERN_HELP","report","ids","eject","all","allVersions","originDirectly","ignoreMissingArtifacts","resume","headOnly","forkLaneNewScope","openBrowser","verbose","componentsIds","newIdsOnRemote","nonExistOnBitMap","removedIds","missingScope","exportedLanes","ejectResults","rippleJobUrls","export","includeNonStaged","resumeExportId","isEmpty","length","chalk","yellow","exportedLane","id","getExportedIds","join","map","versions","filter","newId","isEqualWithoutVersion","version","toString","exportOutput","bold","lanesOutput","green","nonExistOnBitMapOutput","idsStr","removedOutput","remoteLaneStr","title","missingScopeOutput","ejectOutput","output","ejectTemplate","rippleJobsOutput","shouldOpenBrowser","process","env","CI","prefix","msg","open","catch","urlsColored","url","underline","json","results","exports"],"sources":["export-cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport open from 'open';\nimport { ejectTemplate } from '@teambit/eject';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport chalk from 'chalk';\nimport { isEmpty } from 'lodash';\nimport type { ExportMain, ExportResult } from './export.main.runtime';\n\nexport class ExportCmd implements Command {\n name = 'export [component-patterns...]';\n description = 'upload components to remote scopes';\n arguments = [\n {\n name: 'component-patterns...',\n description: `(not recommended) ${COMPONENT_PATTERN_HELP}`,\n },\n ];\n extendedDescription = `uploads staged versions (snaps/tags) to remote scopes, making them available for consumption by other workspaces.\nwithout arguments, exports all staged components. when on a lane, exports the lane as well.\nexporting is the final step after development and versioning to share components with your team.`;\n alias = 'e';\n helpUrl = 'reference/components/exporting-components';\n options = [\n ['e', 'eject', 'after export, remove the components from the workspace and install them as packages'],\n [\n 'a',\n 'all',\n 'export all components, including non-staged (useful when components in the remote scope are corrupted or missing)',\n ],\n [\n '',\n 'all-versions',\n 'export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)',\n ],\n [\n '',\n 'origin-directly',\n 'avoid export to the central hub, instead, export directly to the original scopes. not recommended!',\n ],\n [\n '',\n 'resume <string>',\n 'in case the previous export failed and suggested to resume with an export-id, enter the id',\n ],\n [\n '',\n 'head-only',\n 'in case previous export failed and locally it shows exported and only one snap/tag was created, try using this flag',\n ],\n [\n '',\n 'ignore-missing-artifacts',\n \"don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote\",\n ],\n ['', 'fork-lane-new-scope', 'allow exporting a forked lane into a different scope than the original scope'],\n ['', 'open-browser', 'open a browser once the export is completed in the cloud job url'],\n ['', 'verbose', 'per exported component, show the versions being exported'],\n ['j', 'json', 'show output in json format'],\n ] as CommandOptions;\n loader = true;\n group = 'collaborate';\n remoteOp = true;\n\n constructor(private exportMain: ExportMain) {}\n\n async report(\n [ids = []]: [string[]],\n {\n eject = false,\n all = false,\n allVersions = false,\n originDirectly = false,\n ignoreMissingArtifacts = false,\n resume,\n headOnly,\n forkLaneNewScope = false,\n openBrowser = false,\n verbose = false,\n }: any\n ): Promise<string> {\n const {\n componentsIds,\n newIdsOnRemote,\n nonExistOnBitMap,\n removedIds,\n missingScope,\n exportedLanes,\n ejectResults,\n rippleJobUrls,\n } = await this.exportMain.export({\n ids,\n eject,\n includeNonStaged: all || allVersions,\n allVersions: allVersions || all,\n originDirectly,\n resumeExportId: resume,\n headOnly,\n ignoreMissingArtifacts,\n forkLaneNewScope,\n });\n\n if (isEmpty(componentsIds) && isEmpty(nonExistOnBitMap) && isEmpty(missingScope) && !exportedLanes.length) {\n return chalk.yellow('nothing to export');\n }\n const exportedLane = exportedLanes[0]?.id();\n const getExportedIds = () => {\n if (!verbose) return componentsIds.join('\\n');\n return componentsIds\n .map((id) => {\n const versions = newIdsOnRemote\n .filter((newId) => newId.isEqualWithoutVersion(id))\n .map((newId) => newId.version);\n return `${id.toString()} - ${versions.join(', ') || 'n/a'}`;\n })\n .join('\\n');\n };\n const exportOutput = () => {\n if (isEmpty(componentsIds)) return exportedLane ? `exported the lane ${chalk.bold(exportedLane)}` : '';\n const lanesOutput = exportedLanes.length ? ` the lane ${chalk.bold(exportedLanes[0].id())} and` : '';\n return chalk.green(\n `exported${lanesOutput} the following ${componentsIds.length} component(s):\\n${chalk.bold(getExportedIds())}`\n );\n };\n const nonExistOnBitMapOutput = () => {\n // if includeDependencies is true, the nonExistOnBitMap might be the dependencies\n if (isEmpty(nonExistOnBitMap)) return '';\n const idsStr = nonExistOnBitMap.map((id) => id.toString()).join(', ');\n return chalk.yellow(\n `${idsStr}\\nexported successfully. bit did not update the workspace as the component files are not tracked. this might happen when a component was tracked in a different git branch. to fix it check if they where tracked in a different git branch, checkout to that branch and resync by running 'bit import'. or stay on your branch and track the components again using 'bit add'.\\n`\n );\n };\n const removedOutput = () => {\n if (!removedIds.length) return '';\n const remoteLaneStr = exportedLanes.length ? ' lane' : '';\n const title = chalk.bold(\n `\\n\\nthe following component(s) have been marked as removed on the remote${remoteLaneStr}\\n`\n );\n const idsStr = removedIds.join('\\n');\n return title + idsStr;\n };\n const missingScopeOutput = () => {\n if (isEmpty(missingScope)) return '';\n const idsStr = missingScope.map((id) => id.toString()).join(', ');\n return chalk.yellow(\n `the following component(s) were not exported as no remote scope is configured for them: ${chalk.bold(\n idsStr\n )}.\\nplease specify <remote> to export them, run 'bit scope set <scope> <component>, or set a \"defaultScope\" in your workspace config\\n\\n`\n );\n };\n const ejectOutput = () => {\n if (!ejectResults) return '';\n const output = ejectTemplate(ejectResults);\n return `\\n${output}`;\n };\n const rippleJobsOutput = () => {\n if (!rippleJobUrls.length) return '';\n const shouldOpenBrowser = openBrowser && !process.env.CI;\n const prefix = shouldOpenBrowser ? 'Your browser has been opened to the following link' : 'Visit the link below';\n const msg = `\\n\\n${prefix} to track the progress of building the components in the cloud\\n`;\n if (shouldOpenBrowser) {\n open(rippleJobUrls[0]).catch(() => {\n /** it's ok, the user is instructed to open the browser manually */\n });\n }\n const urlsColored = rippleJobUrls.map((url) => chalk.bold.underline(url));\n return msg + urlsColored.join('\\n');\n };\n\n return (\n nonExistOnBitMapOutput() +\n missingScopeOutput() +\n exportOutput() +\n ejectOutput() +\n removedOutput() +\n rippleJobsOutput()\n );\n }\n\n async json(\n [ids = []]: [string[]],\n {\n eject = false,\n all = false,\n allVersions = false,\n originDirectly = false,\n ignoreMissingArtifacts = false,\n resume,\n }: any\n ): Promise<ExportResult> {\n const results = await this.exportMain.export({\n ids,\n eject,\n includeNonStaged: all || allVersions,\n allVersions: allVersions || all,\n originDirectly,\n resumeExportId: resume,\n ignoreMissingArtifacts,\n });\n\n return results;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,OAAA;EAAA,MAAAL,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAG,MAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAiC,SAAAC,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MA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iBAAiB,GAAG,oDAAoD,GAAG,sBAAsB;MAChH,MAAMK,GAAG,GAAG,OAAOD,MAAM,kEAAkE;MAC3F,IAAIJ,iBAAiB,EAAE;QACrB,IAAAM,eAAI,EAACvC,aAAa,CAAC,CAAC,CAAC,CAAC,CAACwC,KAAK,CAAC,MAAM;UACjC;QAAA,CACD,CAAC;MACJ;MACA,MAAMC,WAAW,GAAGzC,aAAa,CAACY,GAAG,CAAE8B,GAAG,IAAKpC,gBAAK,CAACc,IAAI,CAACuB,SAAS,CAACD,GAAG,CAAC,CAAC;MACzE,OAAOJ,GAAG,GAAGG,WAAW,CAAC9B,IAAI,CAAC,IAAI,CAAC;IACrC,CAAC;IAED,OACEY,sBAAsB,CAAC,CAAC,GACxBK,kBAAkB,CAAC,CAAC,GACpBT,YAAY,CAAC,CAAC,GACdU,WAAW,CAAC,CAAC,GACbJ,aAAa,CAAC,CAAC,GACfO,gBAAgB,CAAC,CAAC;EAEtB;EAEA,MAAMY,IAAIA,CACR,CAAC9D,GAAG,GAAG,EAAE,CAAa,EACtB;IACEC,KAAK,GAAG,KAAK;IACbC,GAAG,GAAG,KAAK;IACXC,WAAW,GAAG,KAAK;IACnBC,cAAc,GAAG,KAAK;IACtBC,sBAAsB,GAAG,KAAK;IAC9BC;EACG,CAAC,EACiB;IACvB,MAAMyD,OAAO,GAAG,MAAM,IAAI,CAACpE,UAAU,CAACwB,MAAM,CAAC;MAC3CnB,GAAG;MACHC,KAAK;MACLmB,gBAAgB,EAAElB,GAAG,IAAIC,WAAW;MACpCA,WAAW,EAAEA,WAAW,IAAID,GAAG;MAC/BE,cAAc;MACdiB,cAAc,EAAEf,MAAM;MACtBD;IACF,CAAC,CAAC;IAEF,OAAO0D,OAAO;EAChB;AACF;AAACC,OAAA,CAAAvE,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_open","_interopRequireDefault","_eject","_legacy","_chalk","_lodash","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ExportCmd","constructor","exportMain","name","description","COMPONENT_PATTERN_HELP","report","ids","eject","all","allVersions","originDirectly","ignoreMissingArtifacts","resume","headOnly","forkLaneNewScope","openBrowser","verbose","componentsIds","newIdsOnRemote","nonExistOnBitMap","removedIds","missingScope","exportedLanes","ejectResults","rippleJobUrls","export","includeNonStaged","resumeExportId","isEmpty","length","chalk","yellow","exportedLane","id","exportSection","formatSection","formatItem","bold","lanesOutput","items","map","toString","versions","filter","newId","isEqualWithoutVersion","version","join","desc","nonExistOnBitMapSection","idsStr","warnSymbol","formatHint","removedSection","remoteLaneStr","missingScopeSection","hint","ejectSection","ejectTemplate","rippleJobsSection","shouldOpenBrowser","process","env","CI","prefix","msg","open","catch","urlsColored","url","underline","joinSections","json","results","exports"],"sources":["export-cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport { formatItem, formatSection, formatHint, warnSymbol, joinSections } from '@teambit/cli';\nimport open from 'open';\nimport { ejectTemplate } from '@teambit/eject';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport chalk from 'chalk';\nimport { isEmpty } from 'lodash';\nimport type { ExportMain, ExportResult } from './export.main.runtime';\n\nexport class ExportCmd implements Command {\n name = 'export [component-patterns...]';\n description = 'upload components to remote scopes';\n arguments = [\n {\n name: 'component-patterns...',\n description: `(not recommended) ${COMPONENT_PATTERN_HELP}`,\n },\n ];\n extendedDescription = `uploads staged versions (snaps/tags) to remote scopes, making them available for consumption by other workspaces.\nwithout arguments, exports all staged components. when on a lane, exports the lane as well.\nexporting is the final step after development and versioning to share components with your team.`;\n alias = 'e';\n helpUrl = 'reference/components/exporting-components';\n options = [\n ['e', 'eject', 'after export, remove the components from the workspace and install them as packages'],\n [\n 'a',\n 'all',\n 'export all components, including non-staged (useful when components in the remote scope are corrupted or missing)',\n ],\n [\n '',\n 'all-versions',\n 'export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)',\n ],\n [\n '',\n 'origin-directly',\n 'avoid export to the central hub, instead, export directly to the original scopes. not recommended!',\n ],\n [\n '',\n 'resume <string>',\n 'in case the previous export failed and suggested to resume with an export-id, enter the id',\n ],\n [\n '',\n 'head-only',\n 'in case previous export failed and locally it shows exported and only one snap/tag was created, try using this flag',\n ],\n [\n '',\n 'ignore-missing-artifacts',\n \"don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote\",\n ],\n ['', 'fork-lane-new-scope', 'allow exporting a forked lane into a different scope than the original scope'],\n ['', 'open-browser', 'open a browser once the export is completed in the cloud job url'],\n ['', 'verbose', 'per exported component, show the versions being exported'],\n ['j', 'json', 'show output in json format'],\n ] as CommandOptions;\n loader = true;\n group = 'collaborate';\n remoteOp = true;\n\n constructor(private exportMain: ExportMain) {}\n\n async report(\n [ids = []]: [string[]],\n {\n eject = false,\n all = false,\n allVersions = false,\n originDirectly = false,\n ignoreMissingArtifacts = false,\n resume,\n headOnly,\n forkLaneNewScope = false,\n openBrowser = false,\n verbose = false,\n }: any\n ): Promise<string> {\n const {\n componentsIds,\n newIdsOnRemote,\n nonExistOnBitMap,\n removedIds,\n missingScope,\n exportedLanes,\n ejectResults,\n rippleJobUrls,\n } = await this.exportMain.export({\n ids,\n eject,\n includeNonStaged: all || allVersions,\n allVersions: allVersions || all,\n originDirectly,\n resumeExportId: resume,\n headOnly,\n ignoreMissingArtifacts,\n forkLaneNewScope,\n });\n\n if (isEmpty(componentsIds) && isEmpty(nonExistOnBitMap) && isEmpty(missingScope) && !exportedLanes.length) {\n return chalk.yellow('nothing to export');\n }\n const exportedLane = exportedLanes[0]?.id();\n\n const exportSection = (() => {\n if (isEmpty(componentsIds)) {\n if (!exportedLane) return '';\n return formatSection('exported lane', '', [formatItem(chalk.bold(exportedLane))]);\n }\n const lanesOutput = exportedLanes.length ? ` the lane ${chalk.bold(exportedLanes[0].id())} and` : '';\n const items = componentsIds.map((id) => {\n if (!verbose) return formatItem(chalk.bold(id.toString()));\n const versions = newIdsOnRemote\n .filter((newId) => newId.isEqualWithoutVersion(id))\n .map((newId) => newId.version);\n return formatItem(`${chalk.bold(id.toString())} - ${versions.join(', ') || 'n/a'}`);\n });\n const desc = `exported${lanesOutput} the following component(s)`;\n return formatSection('exported components', desc, items);\n })();\n\n const nonExistOnBitMapSection = (() => {\n if (isEmpty(nonExistOnBitMap)) return '';\n const idsStr = nonExistOnBitMap.map((id) => id.toString()).join(', ');\n return `${warnSymbol} ${chalk.yellow(idsStr)}\\n${formatHint(\n \"exported successfully. bit did not update the workspace as the component files are not tracked. this might happen when a component was tracked in a different git branch. to fix it check if they were tracked in a different git branch, checkout to that branch and resync by running 'bit import'. or stay on your branch and track the components again using 'bit add'.\"\n )}`;\n })();\n\n const removedSection = (() => {\n if (!removedIds.length) return '';\n const remoteLaneStr = exportedLanes.length ? ' lane' : '';\n const items = removedIds.map((id) => formatItem(id.toString(), warnSymbol));\n return formatSection(`components removed on the remote${remoteLaneStr}`, '', items);\n })();\n\n const missingScopeSection = (() => {\n if (isEmpty(missingScope)) return '';\n const items = missingScope.map((id) => formatItem(id.toString(), warnSymbol));\n const hint = formatHint(\n 'please specify <remote> to export them, run \\'bit scope set <scope> <component>\\', or set a \"defaultScope\" in your workspace config'\n );\n return `${formatSection('components not exported (no remote scope configured)', '', items)}\\n${hint}`;\n })();\n\n const ejectSection = (() => {\n if (!ejectResults) return '';\n return ejectTemplate(ejectResults);\n })();\n\n const rippleJobsSection = (() => {\n if (!rippleJobUrls.length) return '';\n const shouldOpenBrowser = openBrowser && !process.env.CI;\n const prefix = shouldOpenBrowser ? 'Your browser has been opened to the following link' : 'Visit the link below';\n const msg = `${prefix} to track the progress of building the components in the cloud`;\n if (shouldOpenBrowser) {\n open(rippleJobUrls[0]).catch(() => {\n /** it's ok, the user is instructed to open the browser manually */\n });\n }\n const urlsColored = rippleJobUrls.map((url) => chalk.bold.underline(url));\n return `${msg}\\n${urlsColored.join('\\n')}`;\n })();\n\n return joinSections([\n nonExistOnBitMapSection,\n missingScopeSection,\n exportSection,\n ejectSection,\n removedSection,\n rippleJobsSection,\n ]);\n }\n\n async json(\n [ids = []]: [string[]],\n {\n eject = false,\n all = false,\n allVersions = false,\n originDirectly = false,\n ignoreMissingArtifacts = false,\n resume,\n }: any\n ): Promise<ExportResult> {\n const results = await this.exportMain.export({\n ids,\n eject,\n includeNonStaged: all || allVersions,\n allVersions: allVersions || all,\n originDirectly,\n resumeExportId: resume,\n ignoreMissingArtifacts,\n });\n\n return results;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,OAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,MAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,OAAA;EAAA,MAAAN,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,QAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,OAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAiC,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAA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AK,GAAG,KAAK;IACbC,GAAG,GAAG,KAAK;IACXC,WAAW,GAAG,KAAK;IACnBC,cAAc,GAAG,KAAK;IACtBC,sBAAsB,GAAG,KAAK;IAC9BC;EACG,CAAC,EACiB;IACvB,MAAM6D,OAAO,GAAG,MAAM,IAAI,CAACxE,UAAU,CAACwB,MAAM,CAAC;MAC3CnB,GAAG;MACHC,KAAK;MACLmB,gBAAgB,EAAElB,GAAG,IAAIC,WAAW;MACpCA,WAAW,EAAEA,WAAW,IAAID,GAAG;MAC/BE,cAAc;MACdiB,cAAc,EAAEf,MAAM;MACtBD;IACF,CAAC,CAAC;IAEF,OAAO8D,OAAO;EAChB;AACF;AAACC,OAAA,CAAA3E,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.923/dist/export.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.923/dist/export.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.924/dist/export.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.924/dist/export.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/export",
3
- "version": "1.0.923",
3
+ "version": "1.0.924",
4
4
  "homepage": "https://bit.cloud/teambit/scope/export",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.scope",
8
8
  "name": "export",
9
- "version": "1.0.923"
9
+ "version": "1.0.924"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -14,7 +14,6 @@
14
14
  "open": "8.4.2",
15
15
  "p-map-series": "2.1.0",
16
16
  "fs-extra": "10.0.0",
17
- "@teambit/cli": "0.0.1305",
18
17
  "@teambit/legacy.constants": "0.0.24",
19
18
  "@teambit/component-id": "1.2.4",
20
19
  "@teambit/harmony.modules.concurrency": "0.0.25",
@@ -33,16 +32,17 @@
33
32
  "@teambit/legacy.component-list": "0.0.157",
34
33
  "@teambit/legacy.consumer": "0.0.103",
35
34
  "@teambit/legacy.utils": "0.0.34",
36
- "@teambit/logger": "0.0.1398",
37
35
  "@teambit/scope.network": "0.0.103",
38
36
  "@teambit/workspace.modules.node-modules-linker": "0.0.333",
39
37
  "@teambit/legacy.scope-api": "0.0.158",
40
- "@teambit/eject": "1.0.923",
41
- "@teambit/objects": "0.0.430",
42
- "@teambit/dependency-resolver": "1.0.923",
43
- "@teambit/remove": "1.0.923",
44
- "@teambit/scope": "1.0.923",
45
- "@teambit/workspace": "1.0.923"
38
+ "@teambit/cli": "0.0.1306",
39
+ "@teambit/eject": "1.0.924",
40
+ "@teambit/objects": "0.0.431",
41
+ "@teambit/dependency-resolver": "1.0.924",
42
+ "@teambit/logger": "0.0.1399",
43
+ "@teambit/remove": "1.0.924",
44
+ "@teambit/scope": "1.0.924",
45
+ "@teambit/workspace": "1.0.924"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/lodash": "4.14.165",