@teambit/snapping 1.0.395 → 1.0.397

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.
@@ -18,13 +18,6 @@ function _tagCmd() {
18
18
  };
19
19
  return data;
20
20
  }
21
- function _constants() {
22
- const data = require("@teambit/legacy/dist/constants");
23
- _constants = function () {
24
- return data;
25
- };
26
- return data;
27
- }
28
21
  function _bit() {
29
22
  const data = require("@teambit/bit.get-bit-version");
30
23
  _bit = function () {
@@ -32,25 +25,11 @@ function _bit() {
32
25
  };
33
26
  return data;
34
27
  }
35
- function _componentIssues() {
36
- const data = require("@teambit/component-issues");
37
- _componentIssues = function () {
38
- return data;
39
- };
40
- return data;
41
- }
42
- function _bitError() {
43
- const data = require("@teambit/bit-error");
44
- _bitError = function () {
45
- return data;
46
- };
47
- return data;
48
- }
49
28
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
50
29
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
51
30
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
52
31
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
53
- const RELEASE_TYPES = ['major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease'];
32
+ const excludeOptions = ['unmodified', 'editor [editor]', 'snapped', 'unmerged', 'soft', 'persist [skip-build]'];
54
33
  class TagFromScopeCmd {
55
34
  // In case a compiler / tester is not installed
56
35
 
@@ -74,73 +53,39 @@ an example of the final data: '[{"componentId":"ci.remote2/comp-b","dependencies
74
53
  `);
75
54
  _defineProperty(this, "alias", '');
76
55
  _defineProperty(this, "loader", true);
77
- _defineProperty(this, "options", [['', 'push', 'export the updated objects to the original scopes once done'], ['m', 'message <message>', 'a log message describing latest changes'], ['v', 'ver <version>', 'tag with the given version'], ['l', 'increment <level>', `options are: [${RELEASE_TYPES.join(', ')}], default to patch`], ['', 'prerelease-id <id>', 'prerelease identifier (e.g. "dev" to get "1.0.0-dev.1")'], ['p', 'patch', 'syntactic sugar for "--increment patch"'], ['', 'minor', 'syntactic sugar for "--increment minor"'], ['', 'major', 'syntactic sugar for "--increment major"'], ['', 'pre-release [identifier]', 'syntactic sugar for "--increment prerelease" and `--prerelease-id <identifier>`'], ['', 'skip-tests', 'skip running component tests during tag process'], ['', 'disable-tag-pipeline', 'skip the tag pipeline to avoid publishing the components'], ['', 'ignore-build-errors', 'run the tag pipeline although the build pipeline failed'], ['', 'rebuild-artifacts', 'run the full build pipeline. do not use the saved artifacts from the last snap'], ['', 'rebuild-deps-graph', 'do not reuse the saved dependencies graph, instead build it from scratch'], ['', 'increment-by <number>', '(default to 1) increment semver flag (patch/minor/major) by. e.g. incrementing patch by 2: 0.0.1 -> 0.0.3.'], ['i', 'ignore-issues [issues]', `ignore component issues (shown in "bit status" as "issues found"), issues to ignore:
78
- [${Object.keys(_componentIssues().IssuesClasses).join(', ')}]
79
- to ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify "*".`], ['I', 'ignore-newest-version', 'ignore existing of newer versions (default = false)']]);
56
+ _defineProperty(this, "options", [['', 'push', 'export the updated objects to the original scopes once done'], ['', 'rebuild-artifacts', 'run the full build pipeline. do not use the saved artifacts from the last snap'], ..._tagCmd().tagCmdOptions.filter(o => !excludeOptions.includes(o[1]))]);
80
57
  _defineProperty(this, "remoteOp", true);
81
58
  }
82
59
 
83
60
  // eslint-disable-next-line complexity
84
- async report([data], {
85
- push,
86
- message = '',
87
- ver,
88
- patch,
89
- minor,
90
- major,
91
- preRelease,
92
- increment,
93
- prereleaseId,
94
- ignoreIssues,
95
- ignoreNewestVersion = false,
96
- skipTests = false,
97
- disableTagPipeline = false,
98
- ignoreBuildErrors = false,
99
- rebuildArtifacts,
100
- rebuildDepsGraph,
101
- incrementBy = 1
102
- }) {
103
- if (ignoreIssues && typeof ignoreIssues === 'boolean') {
104
- throw new (_bitError().BitError)(`--ignore-issues expects issues to be ignored, please run "bit tag -h" for the issues list`);
105
- }
106
- if (prereleaseId && (!increment || increment === 'major' || increment === 'minor' || increment === 'patch')) {
107
- throw new (_bitError().BitError)(`--prerelease-id should be entered along with --increment flag, while --increment must be one of the following: [prepatch, prerelease, preminor, premajor]`);
108
- }
109
- const releaseFlags = [patch, minor, major, preRelease].filter(x => x);
110
- if (releaseFlags.length > 1) {
111
- throw new (_bitError().BitError)('you can use only one of the following - patch, minor, major, pre-release');
112
- }
113
- const getReleaseType = () => {
114
- if (increment) {
115
- if (!RELEASE_TYPES.includes(increment)) {
116
- throw new (_bitError().BitError)(`invalid increment-level "${increment}".
117
- semver allows the following options only: ${RELEASE_TYPES.join(', ')}`);
118
- }
119
- return increment;
120
- }
121
- if (major) return 'major';
122
- if (minor) return 'minor';
123
- if (patch) return 'patch';
124
- if (preRelease) return 'prerelease';
125
- return _constants().DEFAULT_BIT_RELEASE_TYPE;
126
- };
127
- const getPreReleaseId = () => {
128
- if (prereleaseId) {
129
- return prereleaseId;
130
- }
131
- if (preRelease && typeof preRelease === 'string') {
132
- return preRelease;
133
- }
134
- return undefined;
135
- };
61
+ async report([data], options) {
62
+ const {
63
+ releaseType,
64
+ preReleaseId
65
+ } = (0, _tagCmd().validateOptions)(options);
66
+ const {
67
+ push,
68
+ message = '',
69
+ ver,
70
+ ignoreIssues,
71
+ ignoreNewestVersion = false,
72
+ skipTests = false,
73
+ skipTasks,
74
+ disableTagPipeline = false,
75
+ ignoreBuildErrors = false,
76
+ rebuildArtifacts,
77
+ rebuildDepsGraph,
78
+ incrementBy = 1
79
+ } = options;
136
80
  const params = {
137
81
  push,
138
82
  message,
139
- releaseType: getReleaseType(),
140
- preReleaseId: getPreReleaseId(),
83
+ releaseType,
84
+ preReleaseId,
141
85
  ignoreIssues,
142
86
  ignoreNewestVersion,
143
87
  skipTests,
88
+ skipTasks,
144
89
  build: true,
145
90
  persist: true,
146
91
  disableTagAndSnapPipelines: disableTagPipeline,
@@ -154,52 +99,7 @@ to ignore multiple issues, separate them by a comma and wrap with quotes. to ign
154
99
  this.logger.console(`tagging using ${(0, _bit().getBitVersion)()} version`);
155
100
  const results = await this.snapping.tagFromScope(tagDataPerCompRaw, params);
156
101
  if (!results) return _chalk().default.yellow(_tagCmd().NOTHING_TO_TAG_MSG);
157
- const {
158
- taggedComponents,
159
- autoTaggedResults,
160
- warnings,
161
- newComponents
162
- } = results;
163
- const changedComponents = taggedComponents.filter(component => !newComponents.searchWithoutVersion(component.id));
164
- const addedComponents = taggedComponents.filter(component => newComponents.searchWithoutVersion(component.id));
165
- const autoTaggedCount = autoTaggedResults ? autoTaggedResults.length : 0;
166
- const warningsOutput = warnings && warnings.length ? `${_chalk().default.yellow(warnings.join('\n'))}\n\n` : '';
167
- const tagExplanationPersist = `\n(use "bit export [collection]" to push these components to a remote")
168
- (use "bit reset" to unstage versions)\n`;
169
- const tagExplanationSoft = `\n(use "bit tag --persist" to persist the changes")
170
- (use "bit reset --soft" to remove the soft-tags)\n`;
171
- const tagExplanation = results.isSoftTag ? tagExplanationSoft : tagExplanationPersist;
172
- const outputComponents = comps => {
173
- return comps.map(component => {
174
- let componentOutput = ` > ${component.id.toString()}`;
175
- const autoTag = autoTaggedResults.filter(result => result.triggeredBy.searchWithoutVersion(component.id));
176
- if (autoTag.length) {
177
- const autoTagComp = autoTag.map(a => a.component.id.toString());
178
- componentOutput += `\n ${_tagCmd().AUTO_TAGGED_MSG}:
179
- ${autoTagComp.join('\n ')}`;
180
- }
181
- return componentOutput;
182
- }).join('\n');
183
- };
184
- const publishOutput = () => {
185
- const {
186
- publishedPackages
187
- } = results;
188
- if (!publishedPackages || !publishedPackages.length) return '';
189
- const successTitle = `\n\n${_chalk().default.green(`published the following ${publishedPackages.length} component(s) successfully\n`)}`;
190
- const successCompsStr = publishedPackages.join('\n');
191
- const successOutput = successCompsStr ? successTitle + successCompsStr : '';
192
- return successOutput;
193
- };
194
- const softTagPrefix = results.isSoftTag ? 'soft-tagged ' : '';
195
- const outputIfExists = (label, explanation, components) => {
196
- if (!components.length) return '';
197
- return `\n${_chalk().default.underline(softTagPrefix + label)}\n(${explanation})\n${outputComponents(components)}\n`;
198
- };
199
- const newDesc = results.isSoftTag ? 'set to be tagged first version for components' : 'first version for components';
200
- const changedDesc = results.isSoftTag ? 'components that set to get a version bump' : 'components that got a version bump';
201
- const softTagClarification = results.isSoftTag ? _chalk().default.bold('keep in mind that this is a soft-tag (changes recorded to be tagged), to persist the changes use --persist flag') : '';
202
- return warningsOutput + _chalk().default.green(`${taggedComponents.length + autoTaggedCount} component(s) ${results.isSoftTag ? 'soft-' : ''}tagged`) + tagExplanation + outputIfExists('new components', newDesc, addedComponents) + outputIfExists('changed components', changedDesc, changedComponents) + publishOutput() + softTagClarification;
102
+ return (0, _tagCmd().tagResultOutput)(results);
203
103
  }
204
104
  parseData(data) {
205
105
  let dataParsed;
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_tagCmd","_constants","_bit","_componentIssues","_bitError","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","RELEASE_TYPES","TagFromScopeCmd","constructor","snapping","logger","join","keys","IssuesClasses","report","push","message","ver","patch","minor","major","preRelease","increment","prereleaseId","ignoreIssues","ignoreNewestVersion","skipTests","disableTagPipeline","ignoreBuildErrors","rebuildArtifacts","rebuildDepsGraph","incrementBy","BitError","releaseFlags","filter","x","length","getReleaseType","includes","DEFAULT_BIT_RELEASE_TYPE","getPreReleaseId","undefined","params","releaseType","preReleaseId","build","persist","disableTagAndSnapPipelines","version","tagDataPerCompRaw","parseData","console","getBitVersion","results","tagFromScope","chalk","yellow","NOTHING_TO_TAG_MSG","taggedComponents","autoTaggedResults","warnings","newComponents","changedComponents","component","searchWithoutVersion","id","addedComponents","autoTaggedCount","warningsOutput","tagExplanationPersist","tagExplanationSoft","tagExplanation","isSoftTag","outputComponents","comps","map","componentOutput","toString","autoTag","result","triggeredBy","autoTagComp","a","AUTO_TAGGED_MSG","publishOutput","publishedPackages","successTitle","green","successCompsStr","successOutput","softTagPrefix","outputIfExists","label","explanation","components","underline","newDesc","changedDesc","softTagClarification","bold","dataParsed","JSON","parse","err","Error","Array","isArray","forEach","dataItem","componentId","exports"],"sources":["tag-from-scope.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { NOTHING_TO_TAG_MSG, AUTO_TAGGED_MSG } from './tag-cmd';\nimport { DEFAULT_BIT_RELEASE_TYPE } from '@teambit/legacy/dist/constants';\nimport { getBitVersion } from '@teambit/bit.get-bit-version';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { ReleaseType } from 'semver';\nimport { BitError } from '@teambit/bit-error';\nimport { Logger } from '@teambit/logger';\nimport { SnappingMain, TagResults } from './snapping.main.runtime';\nimport { BasicTagParams } from './tag-model-component';\n\nconst RELEASE_TYPES = ['major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease'];\n\nexport type TagDataPerCompRaw = {\n componentId: string;\n dependencies?: string[];\n versionToTag?: string;\n prereleaseId?: string;\n message?: string;\n};\n\nexport class TagFromScopeCmd implements Command {\n name = '_tag <data>';\n group = 'development';\n private = true;\n description =\n 'tag components from a bare-scope by using build artifacts from previous snap and running the deploy-pipeline only';\n extendedDescription = `this command should be running from a new bare scope, it first imports the components it needs and then processes the tag.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // e.g. [teambit/compiler@1.0.0, teambit/tester^@1.0.0, teambit/linter~@0.0.1]\n versionToTag?: string; // specific version (e.g. '1.0.0') or semver (e.g. 'minor', 'patch')\n prereleaseId?: string; // applicable when versionToTag is a pre-release. (e.g. \"dev\", for 1.0.0-dev.1)\n message?: string; // tag-message.\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"dependencies\":[\"ci.remote/comp1@0.0.2\"]}]'\n`;\n alias = '';\n loader = true;\n options = [\n ['', 'push', 'export the updated objects to the original scopes once done'],\n ['m', 'message <message>', 'a log message describing latest changes'],\n ['v', 'ver <version>', 'tag with the given version'],\n ['l', 'increment <level>', `options are: [${RELEASE_TYPES.join(', ')}], default to patch`],\n ['', 'prerelease-id <id>', 'prerelease identifier (e.g. \"dev\" to get \"1.0.0-dev.1\")'],\n ['p', 'patch', 'syntactic sugar for \"--increment patch\"'],\n ['', 'minor', 'syntactic sugar for \"--increment minor\"'],\n ['', 'major', 'syntactic sugar for \"--increment major\"'],\n ['', 'pre-release [identifier]', 'syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`'],\n ['', 'skip-tests', 'skip running component tests during tag process'],\n ['', 'disable-tag-pipeline', 'skip the tag pipeline to avoid publishing the components'],\n ['', 'ignore-build-errors', 'run the tag pipeline although the build pipeline failed'],\n ['', 'rebuild-artifacts', 'run the full build pipeline. do not use the saved artifacts from the last snap'],\n ['', 'rebuild-deps-graph', 'do not reuse the saved dependencies graph, instead build it from scratch'],\n [\n '',\n 'increment-by <number>',\n '(default to 1) increment semver flag (patch/minor/major) by. e.g. incrementing patch by 2: 0.0.1 -> 0.0.3.',\n ],\n [\n 'i',\n 'ignore-issues [issues]',\n `ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[${Object.keys(IssuesClasses).join(', ')}]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\".`,\n ],\n ['I', 'ignore-newest-version', 'ignore existing of newer versions (default = false)'],\n ] as CommandOptions;\n remoteOp = true; // In case a compiler / tester is not installed\n\n constructor(private snapping: SnappingMain, private logger: Logger) {}\n\n // eslint-disable-next-line complexity\n async report(\n [data]: [string],\n {\n push,\n message = '',\n ver,\n patch,\n minor,\n major,\n preRelease,\n increment,\n prereleaseId,\n ignoreIssues,\n ignoreNewestVersion = false,\n skipTests = false,\n disableTagPipeline = false,\n ignoreBuildErrors = false,\n rebuildArtifacts,\n rebuildDepsGraph,\n incrementBy = 1,\n }: {\n push?: boolean;\n ver?: string;\n patch?: boolean;\n minor?: boolean;\n major?: boolean;\n increment?: ReleaseType;\n preRelease?: string;\n prereleaseId?: string;\n ignoreIssues?: string;\n incrementBy?: number;\n rebuildArtifacts?: boolean;\n disableTagPipeline?: boolean;\n } & Partial<BasicTagParams>\n ): Promise<string> {\n if (ignoreIssues && typeof ignoreIssues === 'boolean') {\n throw new BitError(`--ignore-issues expects issues to be ignored, please run \"bit tag -h\" for the issues list`);\n }\n if (prereleaseId && (!increment || increment === 'major' || increment === 'minor' || increment === 'patch')) {\n throw new BitError(\n `--prerelease-id should be entered along with --increment flag, while --increment must be one of the following: [prepatch, prerelease, preminor, premajor]`\n );\n }\n\n const releaseFlags = [patch, minor, major, preRelease].filter((x) => x);\n if (releaseFlags.length > 1) {\n throw new BitError('you can use only one of the following - patch, minor, major, pre-release');\n }\n\n const getReleaseType = (): ReleaseType => {\n if (increment) {\n if (!RELEASE_TYPES.includes(increment)) {\n throw new BitError(`invalid increment-level \"${increment}\".\n semver allows the following options only: ${RELEASE_TYPES.join(', ')}`);\n }\n return increment;\n }\n if (major) return 'major';\n if (minor) return 'minor';\n if (patch) return 'patch';\n if (preRelease) return 'prerelease';\n return DEFAULT_BIT_RELEASE_TYPE;\n };\n const getPreReleaseId = (): string | undefined => {\n if (prereleaseId) {\n return prereleaseId;\n }\n if (preRelease && typeof preRelease === 'string') {\n return preRelease;\n }\n return undefined;\n };\n\n const params = {\n push,\n message,\n releaseType: getReleaseType(),\n preReleaseId: getPreReleaseId(),\n ignoreIssues,\n ignoreNewestVersion,\n skipTests,\n build: true,\n persist: true,\n disableTagAndSnapPipelines: disableTagPipeline,\n ignoreBuildErrors,\n rebuildDepsGraph,\n incrementBy,\n version: ver,\n rebuildArtifacts,\n };\n\n const tagDataPerCompRaw = this.parseData(data);\n this.logger.console(`tagging using ${getBitVersion()} version`);\n const results = await this.snapping.tagFromScope(tagDataPerCompRaw, params);\n if (!results) return chalk.yellow(NOTHING_TO_TAG_MSG);\n const { taggedComponents, autoTaggedResults, warnings, newComponents }: TagResults = results;\n const changedComponents = taggedComponents.filter((component) => !newComponents.searchWithoutVersion(component.id));\n const addedComponents = taggedComponents.filter((component) => newComponents.searchWithoutVersion(component.id));\n const autoTaggedCount = autoTaggedResults ? autoTaggedResults.length : 0;\n\n const warningsOutput = warnings && warnings.length ? `${chalk.yellow(warnings.join('\\n'))}\\n\\n` : '';\n const tagExplanationPersist = `\\n(use \"bit export [collection]\" to push these components to a remote\")\n(use \"bit reset\" to unstage versions)\\n`;\n const tagExplanationSoft = `\\n(use \"bit tag --persist\" to persist the changes\")\n(use \"bit reset --soft\" to remove the soft-tags)\\n`;\n\n const tagExplanation = results.isSoftTag ? tagExplanationSoft : tagExplanationPersist;\n\n const outputComponents = (comps) => {\n return comps\n .map((component) => {\n let componentOutput = ` > ${component.id.toString()}`;\n const autoTag = autoTaggedResults.filter((result) => result.triggeredBy.searchWithoutVersion(component.id));\n if (autoTag.length) {\n const autoTagComp = autoTag.map((a) => a.component.id.toString());\n componentOutput += `\\n ${AUTO_TAGGED_MSG}:\n ${autoTagComp.join('\\n ')}`;\n }\n return componentOutput;\n })\n .join('\\n');\n };\n\n const publishOutput = () => {\n const { publishedPackages } = results;\n if (!publishedPackages || !publishedPackages.length) return '';\n const successTitle = `\\n\\n${chalk.green(\n `published the following ${publishedPackages.length} component(s) successfully\\n`\n )}`;\n const successCompsStr = publishedPackages.join('\\n');\n const successOutput = successCompsStr ? successTitle + successCompsStr : '';\n return successOutput;\n };\n\n const softTagPrefix = results.isSoftTag ? 'soft-tagged ' : '';\n const outputIfExists = (label, explanation, components) => {\n if (!components.length) return '';\n return `\\n${chalk.underline(softTagPrefix + label)}\\n(${explanation})\\n${outputComponents(components)}\\n`;\n };\n\n const newDesc = results.isSoftTag\n ? 'set to be tagged first version for components'\n : 'first version for components';\n const changedDesc = results.isSoftTag\n ? 'components that set to get a version bump'\n : 'components that got a version bump';\n const softTagClarification = results.isSoftTag\n ? chalk.bold(\n 'keep in mind that this is a soft-tag (changes recorded to be tagged), to persist the changes use --persist flag'\n )\n : '';\n return (\n warningsOutput +\n chalk.green(\n `${taggedComponents.length + autoTaggedCount} component(s) ${results.isSoftTag ? 'soft-' : ''}tagged`\n ) +\n tagExplanation +\n outputIfExists('new components', newDesc, addedComponents) +\n outputIfExists('changed components', changedDesc, changedComponents) +\n publishOutput() +\n softTagClarification\n );\n }\n private parseData(data: string): TagDataPerCompRaw[] {\n let dataParsed: unknown;\n try {\n dataParsed = JSON.parse(data);\n } catch (err: any) {\n throw new Error(`failed parsing the data entered as JSON. err ${err.message}`);\n }\n if (!Array.isArray(dataParsed)) {\n throw new Error('expect data to be an array');\n }\n dataParsed.forEach((dataItem) => {\n if (!dataItem.componentId) throw new Error('expect data item to have \"componentId\" prop');\n });\n return dataParsed;\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;AAEA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,KAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,IAAA,YAAAA,CAAA;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HACF,CAAC,GACD,EAAE;IACN,OACE/B,cAAc,GACdb,gBAAK,CAACgC,KAAK,CACT,GAAG7B,gBAAgB,CAACtB,MAAM,GAAG+B,eAAe,iBAAiBd,OAAO,CAACmB,SAAS,GAAG,OAAO,GAAG,EAAE,QAC/F,CAAC,GACDD,cAAc,GACdoB,cAAc,CAAC,gBAAgB,EAAEK,OAAO,EAAE9B,eAAe,CAAC,GAC1DyB,cAAc,CAAC,oBAAoB,EAAEM,WAAW,EAAEnC,iBAAiB,CAAC,GACpEsB,aAAa,CAAC,CAAC,GACfc,oBAAoB;EAExB;EACQhD,SAASA,CAACzE,IAAY,EAAuB;IACnD,IAAI2H,UAAmB;IACvB,IAAI;MACFA,UAAU,GAAGC,IAAI,CAACC,KAAK,CAAC7H,IAAI,CAAC;IAC/B,CAAC,CAAC,OAAO8H,GAAQ,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,gDAAgDD,GAAG,CAACvF,OAAO,EAAE,CAAC;IAChF;IACA,IAAI,CAACyF,KAAK,CAACC,OAAO,CAACN,UAAU,CAAC,EAAE;MAC9B,MAAM,IAAII,KAAK,CAAC,4BAA4B,CAAC;IAC/C;IACAJ,UAAU,CAACO,OAAO,CAAEC,QAAQ,IAAK;MAC/B,IAAI,CAACA,QAAQ,CAACC,WAAW,EAAE,MAAM,IAAIL,KAAK,CAAC,6CAA6C,CAAC;IAC3F,CAAC,CAAC;IACF,OAAOJ,UAAU;EACnB;AACF;AAACU,OAAA,CAAAvG,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_tagCmd","_bit","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","excludeOptions","TagFromScopeCmd","constructor","snapping","logger","tagCmdOptions","filter","o","includes","report","options","releaseType","preReleaseId","validateOptions","push","message","ver","ignoreIssues","ignoreNewestVersion","skipTests","skipTasks","disableTagPipeline","ignoreBuildErrors","rebuildArtifacts","rebuildDepsGraph","incrementBy","params","build","persist","disableTagAndSnapPipelines","version","tagDataPerCompRaw","parseData","console","getBitVersion","results","tagFromScope","chalk","yellow","NOTHING_TO_TAG_MSG","tagResultOutput","dataParsed","JSON","parse","err","Error","Array","isArray","forEach","dataItem","componentId","exports"],"sources":["tag-from-scope.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { NOTHING_TO_TAG_MSG, tagCmdOptions, TagParams, validateOptions, tagResultOutput } from './tag-cmd';\nimport { getBitVersion } from '@teambit/bit.get-bit-version';\nimport { Logger } from '@teambit/logger';\nimport { SnappingMain } from './snapping.main.runtime';\n\nconst excludeOptions = ['unmodified', 'editor [editor]', 'snapped', 'unmerged', 'soft', 'persist [skip-build]'];\n\nexport type TagDataPerCompRaw = {\n componentId: string;\n dependencies?: string[];\n versionToTag?: string;\n prereleaseId?: string;\n message?: string;\n};\n\nexport class TagFromScopeCmd implements Command {\n name = '_tag <data>';\n group = 'development';\n private = true;\n description =\n 'tag components from a bare-scope by using build artifacts from previous snap and running the deploy-pipeline only';\n extendedDescription = `this command should be running from a new bare scope, it first imports the components it needs and then processes the tag.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // e.g. [teambit/compiler@1.0.0, teambit/tester^@1.0.0, teambit/linter~@0.0.1]\n versionToTag?: string; // specific version (e.g. '1.0.0') or semver (e.g. 'minor', 'patch')\n prereleaseId?: string; // applicable when versionToTag is a pre-release. (e.g. \"dev\", for 1.0.0-dev.1)\n message?: string; // tag-message.\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"dependencies\":[\"ci.remote/comp1@0.0.2\"]}]'\n`;\n alias = '';\n loader = true;\n options = [\n ['', 'push', 'export the updated objects to the original scopes once done'],\n ['', 'rebuild-artifacts', 'run the full build pipeline. do not use the saved artifacts from the last snap'],\n ...tagCmdOptions.filter((o) => !excludeOptions.includes(o[1])),\n ] as CommandOptions;\n remoteOp = true; // In case a compiler / tester is not installed\n\n constructor(private snapping: SnappingMain, private logger: Logger) {}\n\n // eslint-disable-next-line complexity\n async report(\n [data]: [string],\n options: {\n push?: boolean;\n rebuildArtifacts?: boolean;\n } & Partial<TagParams>\n ): Promise<string> {\n const { releaseType, preReleaseId } = validateOptions(options);\n\n const {\n push,\n message = '',\n ver,\n ignoreIssues,\n ignoreNewestVersion = false,\n skipTests = false,\n skipTasks,\n disableTagPipeline = false,\n ignoreBuildErrors = false,\n rebuildArtifacts,\n rebuildDepsGraph,\n incrementBy = 1,\n } = options;\n\n const params = {\n push,\n message,\n releaseType,\n preReleaseId,\n ignoreIssues,\n ignoreNewestVersion,\n skipTests,\n skipTasks,\n build: true,\n persist: true,\n disableTagAndSnapPipelines: disableTagPipeline,\n ignoreBuildErrors,\n rebuildDepsGraph,\n incrementBy,\n version: ver,\n rebuildArtifacts,\n };\n\n const tagDataPerCompRaw = this.parseData(data);\n this.logger.console(`tagging using ${getBitVersion()} version`);\n const results = await this.snapping.tagFromScope(tagDataPerCompRaw, params);\n if (!results) return chalk.yellow(NOTHING_TO_TAG_MSG);\n return tagResultOutput(results);\n }\n private parseData(data: string): TagDataPerCompRaw[] {\n let dataParsed: unknown;\n try {\n dataParsed = JSON.parse(data);\n } catch (err: any) {\n throw new Error(`failed parsing the data entered as JSON. err ${err.message}`);\n }\n if (!Array.isArray(dataParsed)) {\n throw new Error('expect data to be an array');\n }\n dataParsed.forEach((dataItem) => {\n if (!dataItem.componentId) throw new Error('expect data item to have \"componentId\" prop');\n });\n return dataParsed;\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;AAEA,SAAAG,QAAA;EAAA,M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kB;MAC9CC,iBAAiB;MACjBE,gBAAgB;MAChBC,WAAW;MACXK,OAAO,EAAEd,GAAG;MACZO;IACF,CAAC;IAED,MAAMQ,iBAAiB,GAAG,IAAI,CAACC,SAAS,CAAC1D,IAAI,CAAC;IAC9C,IAAI,CAAC8B,MAAM,CAAC6B,OAAO,CAAC,iBAAiB,IAAAC,oBAAa,EAAC,CAAC,UAAU,CAAC;IAC/D,MAAMC,OAAO,GAAG,MAAM,IAAI,CAAChC,QAAQ,CAACiC,YAAY,CAACL,iBAAiB,EAAEL,MAAM,CAAC;IAC3E,IAAI,CAACS,OAAO,EAAE,OAAOE,gBAAK,CAACC,MAAM,CAACC,4BAAkB,CAAC;IACrD,OAAO,IAAAC,yBAAe,EAACL,OAAO,CAAC;EACjC;EACQH,SAASA,CAAC1D,IAAY,EAAuB;IACnD,IAAImE,UAAmB;IACvB,IAAI;MACFA,UAAU,GAAGC,IAAI,CAACC,KAAK,CAACrE,IAAI,CAAC;IAC/B,CAAC,CAAC,OAAOsE,GAAQ,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,gDAAgDD,GAAG,CAAC7B,OAAO,EAAE,CAAC;IAChF;IACA,IAAI,CAAC+B,KAAK,CAACC,OAAO,CAACN,UAAU,CAAC,EAAE;MAC9B,MAAM,IAAII,KAAK,CAAC,4BAA4B,CAAC;IAC/C;IACAJ,UAAU,CAACO,OAAO,CAAEC,QAAQ,IAAK;MAC/B,IAAI,CAACA,QAAQ,CAACC,WAAW,EAAE,MAAM,IAAIL,KAAK,CAAC,6CAA6C,CAAC;IAC3F,CAAC,CAAC;IACF,OAAOJ,UAAU;EACnB;AACF;AAACU,OAAA,CAAAlD,eAAA,GAAAA,eAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/snapping",
3
- "version": "1.0.395",
3
+ "version": "1.0.397",
4
4
  "homepage": "https://bit.cloud/teambit/component/snapping",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "snapping",
9
- "version": "1.0.395"
9
+ "version": "1.0.397"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -21,34 +21,34 @@
21
21
  "@teambit/harmony": "0.4.6",
22
22
  "@teambit/component-version": "1.0.3",
23
23
  "@teambit/lane-id": "0.0.311",
24
- "@teambit/graph": "1.0.395",
25
- "@teambit/logger": "0.0.1065",
26
- "@teambit/scope": "1.0.395",
24
+ "@teambit/graph": "1.0.397",
25
+ "@teambit/logger": "0.0.1067",
26
+ "@teambit/scope": "1.0.397",
27
27
  "@teambit/toolbox.promise.map-pool": "0.0.1",
28
- "@teambit/component.sources": "0.0.22",
29
- "@teambit/component": "1.0.395",
30
- "@teambit/dependencies": "1.0.395",
31
- "@teambit/dependency-resolver": "1.0.395",
32
- "@teambit/cli": "0.0.972",
33
- "@teambit/legacy.component-list": "0.0.23",
28
+ "@teambit/component.sources": "0.0.23",
29
+ "@teambit/component": "1.0.397",
30
+ "@teambit/dependencies": "1.0.397",
31
+ "@teambit/dependency-resolver": "1.0.397",
32
+ "@teambit/cli": "0.0.974",
33
+ "@teambit/legacy.component-list": "0.0.24",
34
34
  "@teambit/component-issues": "0.0.150",
35
- "@teambit/global-config": "0.0.975",
36
- "@teambit/application": "1.0.395",
37
- "@teambit/builder": "1.0.395",
38
- "@teambit/export": "1.0.395",
35
+ "@teambit/global-config": "0.0.977",
36
+ "@teambit/application": "1.0.397",
37
+ "@teambit/builder": "1.0.397",
38
+ "@teambit/export": "1.0.397",
39
39
  "@teambit/harmony.modules.concurrency": "0.0.1",
40
- "@teambit/importer": "1.0.395",
41
- "@teambit/insights": "1.0.395",
42
- "@teambit/issues": "1.0.395",
43
- "@teambit/lanes.modules.create-lane": "0.0.3",
44
- "@teambit/legacy.scope-api": "0.0.25",
40
+ "@teambit/importer": "1.0.397",
41
+ "@teambit/insights": "1.0.397",
42
+ "@teambit/issues": "1.0.397",
43
+ "@teambit/lanes.modules.create-lane": "0.0.4",
44
+ "@teambit/legacy.scope-api": "0.0.26",
45
45
  "@teambit/pkg.modules.semver-helper": "0.0.1",
46
- "@teambit/workspace": "1.0.395",
46
+ "@teambit/workspace": "1.0.397",
47
47
  "@teambit/bit.get-bit-version": "0.0.1",
48
48
  "@teambit/harmony.modules.get-basic-log": "0.0.1",
49
- "@teambit/remove": "1.0.395",
49
+ "@teambit/remove": "1.0.397",
50
50
  "@teambit/toolbox.crypto.sha1": "0.0.1",
51
- "@teambit/workspace.modules.node-modules-linker": "0.0.197"
51
+ "@teambit/workspace.modules.node-modules-linker": "0.0.198"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/lodash": "4.14.165",
@@ -60,9 +60,9 @@
60
60
  "@types/uuid": "8.3.4",
61
61
  "@types/mocha": "9.1.0",
62
62
  "@teambit/harmony.envs.core-aspect-env": "0.0.47",
63
- "@teambit/compiler": "1.0.395",
64
- "@teambit/component.testing.mock-components": "0.0.228",
65
- "@teambit/harmony.testing.load-aspect": "0.0.223",
63
+ "@teambit/compiler": "1.0.397",
64
+ "@teambit/component.testing.mock-components": "0.0.229",
65
+ "@teambit/harmony.testing.load-aspect": "0.0.224",
66
66
  "@teambit/workspace.testing.mock-workspace": "0.0.27"
67
67
  },
68
68
  "peerDependencies": {