@teambit/builder 1.0.784 → 1.0.785
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.
|
@@ -11,13 +11,6 @@ function _bitError() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
function _issues() {
|
|
15
|
-
const data = require("@teambit/issues");
|
|
16
|
-
_issues = function () {
|
|
17
|
-
return data;
|
|
18
|
-
};
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
14
|
function _chalk() {
|
|
22
15
|
const data = _interopRequireDefault(require("chalk"));
|
|
23
16
|
_chalk = function () {
|
|
@@ -25,32 +18,17 @@ function _chalk() {
|
|
|
25
18
|
};
|
|
26
19
|
return data;
|
|
27
20
|
}
|
|
28
|
-
function _lodash() {
|
|
29
|
-
const data = require("lodash");
|
|
30
|
-
_lodash = function () {
|
|
31
|
-
return data;
|
|
32
|
-
};
|
|
33
|
-
return data;
|
|
34
|
-
}
|
|
35
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
36
22
|
class ComponentsHaveIssues extends _bitError().BitError {
|
|
37
23
|
constructor(components) {
|
|
38
24
|
components.forEach(component => {
|
|
39
25
|
component.issues = component.issues.filterNonTagBlocking();
|
|
40
26
|
});
|
|
41
|
-
const allIssueNames = (0, _lodash().uniq)(components.map(comp => comp.issues.getAllIssueNames()).flat());
|
|
42
27
|
const issuesColored = componentIssuesTemplate(components);
|
|
43
28
|
super(`error: issues found with the following components
|
|
44
29
|
${issuesColored}
|
|
45
30
|
|
|
46
31
|
to get the list of component-issues names and suggestions how to resolve them, run "bit component-issues".
|
|
47
|
-
|
|
48
|
-
while highly not recommended, it's possible to ignore issues in two ways:
|
|
49
|
-
1) temporarily ignore for this tag/snap/build command by entering "--ignore-issues" flag, e.g. \`bit tag --ignore-issues "${allIssueNames.join(', ')}" \`
|
|
50
|
-
2) ignore the issue completely by configuring it in the workspace.jsonc file. e.g:
|
|
51
|
-
"${_issues().IssuesAspect.id}": {
|
|
52
|
-
"ignoreIssues": [${allIssueNames.map(issue => `"${issue}"`).join(', ')}]
|
|
53
|
-
}
|
|
54
32
|
`);
|
|
55
33
|
}
|
|
56
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","_chalk","_interopRequireDefault","e","__esModule","default","ComponentsHaveIssues","BitError","constructor","components","forEach","component","issues","filterNonTagBlocking","issuesColored","componentIssuesTemplate","exports","formatIssues","compWithIssues","outputForCLI","format","chalk","underline","cyan","id","toString","result","map","join"],"sources":["components-have-issues.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport type { ConsumerComponent } from '@teambit/legacy.consumer-component';\nimport chalk from 'chalk';\n\nexport class ComponentsHaveIssues extends BitError {\n constructor(components: ConsumerComponent[]) {\n components.forEach((component) => {\n component.issues = component.issues.filterNonTagBlocking();\n });\n const issuesColored = componentIssuesTemplate(components);\n super(`error: issues found with the following components\n${issuesColored}\n\nto get the list of component-issues names and suggestions how to resolve them, run \"bit component-issues\".\n`);\n }\n}\n\nfunction formatIssues(compWithIssues: ConsumerComponent) {\n return ` ${compWithIssues.issues?.outputForCLI()}\\n`;\n}\n\nfunction componentIssuesTemplate(components: ConsumerComponent[]) {\n function format(component: ConsumerComponent) {\n return `${chalk.underline(chalk.cyan(component.id.toString()))}\\n${formatIssues(component)}`;\n }\n\n const result = `\\n${components.map(format).join('\\n')}`;\n return result;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnB,MAAMG,oBAAoB,SAASC,oBAAQ,CAAC;EACjDC,WAAWA,CAACC,UAA+B,EAAE;IAC3CA,UAAU,CAACC,OAAO,CAAEC,SAAS,IAAK;MAChCA,SAAS,CAACC,MAAM,GAAGD,SAAS,CAACC,MAAM,CAACC,oBAAoB,CAAC,CAAC;IAC5D,CAAC,CAAC;IACF,MAAMC,aAAa,GAAGC,uBAAuB,CAACN,UAAU,CAAC;IACzD,KAAK,CAAC;AACV,EAAEK,aAAa;AACf;AACA;AACA,CAAC,CAAC;EACA;AACF;AAACE,OAAA,CAAAV,oBAAA,GAAAA,oBAAA;AAED,SAASW,YAAYA,CAACC,cAAiC,EAAE;EACvD,OAAO,UAAUA,cAAc,CAACN,MAAM,EAAEO,YAAY,CAAC,CAAC,IAAI;AAC5D;AAEA,SAASJ,uBAAuBA,CAACN,UAA+B,EAAE;EAChE,SAASW,MAAMA,CAACT,SAA4B,EAAE;IAC5C,OAAO,GAAGU,gBAAK,CAACC,SAAS,CAACD,gBAAK,CAACE,IAAI,CAACZ,SAAS,CAACa,EAAE,CAACC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAKR,YAAY,CAACN,SAAS,CAAC,EAAE;EAC9F;EAEA,MAAMe,MAAM,GAAG,KAAKjB,UAAU,CAACkB,GAAG,CAACP,MAAM,CAAC,CAACQ,IAAI,CAAC,IAAI,CAAC,EAAE;EACvD,OAAOF,MAAM;AACf","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pipelines_builder@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pipelines_builder@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pipelines_builder@1.0.785/dist/builder.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.pipelines_builder@1.0.785/dist/builder.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
import { BitError } from '@teambit/bit-error';
|
|
2
|
-
import { IssuesAspect } from '@teambit/issues';
|
|
3
2
|
import type { ConsumerComponent } from '@teambit/legacy.consumer-component';
|
|
4
3
|
import chalk from 'chalk';
|
|
5
|
-
import { uniq } from 'lodash';
|
|
6
4
|
|
|
7
5
|
export class ComponentsHaveIssues extends BitError {
|
|
8
6
|
constructor(components: ConsumerComponent[]) {
|
|
9
7
|
components.forEach((component) => {
|
|
10
8
|
component.issues = component.issues.filterNonTagBlocking();
|
|
11
9
|
});
|
|
12
|
-
const allIssueNames = uniq(components.map((comp) => comp.issues.getAllIssueNames()).flat());
|
|
13
10
|
const issuesColored = componentIssuesTemplate(components);
|
|
14
11
|
super(`error: issues found with the following components
|
|
15
12
|
${issuesColored}
|
|
16
13
|
|
|
17
14
|
to get the list of component-issues names and suggestions how to resolve them, run "bit component-issues".
|
|
18
|
-
|
|
19
|
-
while highly not recommended, it's possible to ignore issues in two ways:
|
|
20
|
-
1) temporarily ignore for this tag/snap/build command by entering "--ignore-issues" flag, e.g. \`bit tag --ignore-issues "${allIssueNames.join(
|
|
21
|
-
', '
|
|
22
|
-
)}" \`
|
|
23
|
-
2) ignore the issue completely by configuring it in the workspace.jsonc file. e.g:
|
|
24
|
-
"${IssuesAspect.id}": {
|
|
25
|
-
"ignoreIssues": [${allIssueNames.map((issue) => `"${issue}"`).join(', ')}]
|
|
26
|
-
}
|
|
27
15
|
`);
|
|
28
16
|
}
|
|
29
17
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.785",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/pipelines/builder",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.pipelines",
|
|
8
8
|
"name": "builder",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.785"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"@teambit/component-id": "1.2.4",
|
|
41
41
|
"@teambit/legacy.utils": "0.0.28",
|
|
42
42
|
"@teambit/legacy.scope": "0.0.83",
|
|
43
|
-
"@teambit/component": "1.0.
|
|
44
|
-
"@teambit/envs": "1.0.
|
|
45
|
-
"@teambit/isolator": "1.0.
|
|
46
|
-
"@teambit/workspace": "1.0.
|
|
47
|
-
"@teambit/aspect-loader": "1.0.
|
|
48
|
-
"@teambit/generator": "1.0.
|
|
49
|
-
"@teambit/graphql": "1.0.
|
|
50
|
-
"@teambit/issues": "1.0.
|
|
51
|
-
"@teambit/scope": "1.0.
|
|
52
|
-
"@teambit/ui": "1.0.
|
|
43
|
+
"@teambit/component": "1.0.785",
|
|
44
|
+
"@teambit/envs": "1.0.785",
|
|
45
|
+
"@teambit/isolator": "1.0.785",
|
|
46
|
+
"@teambit/workspace": "1.0.785",
|
|
47
|
+
"@teambit/aspect-loader": "1.0.785",
|
|
48
|
+
"@teambit/generator": "1.0.786",
|
|
49
|
+
"@teambit/graphql": "1.0.785",
|
|
50
|
+
"@teambit/issues": "1.0.785",
|
|
51
|
+
"@teambit/scope": "1.0.785",
|
|
52
|
+
"@teambit/ui": "1.0.785"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/pretty-time": "^1.1.5",
|