@teambit/issues 1.0.228 → 1.0.230
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +74 -22
- package/dist/index.d.ts +4 -0
- package/dist/issues-cmd.d.ts +20 -0
- package/dist/issues.aspect.d.ts +2 -0
- package/dist/issues.main.runtime.d.ts +38 -0
- package/dist/non-exist-issue-error.d.ts +4 -0
- package/package.json +6 -6
- package/tsconfig.json +1 -10
- /package/dist/{preview-1712805335812.js → preview-1712891953391.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.component/issues@1.0.
|
3
|
+
<testsuite name="teambit.component/issues@1.0.230" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
@@ -48,7 +48,8 @@
|
|
48
48
|
"line": 19,
|
49
49
|
"character": 31
|
50
50
|
},
|
51
|
-
"name": "IssuesConfig"
|
51
|
+
"name": "IssuesConfig",
|
52
|
+
"internalFilePath": "issues.main.runtime.ts"
|
52
53
|
},
|
53
54
|
"isOptional": false,
|
54
55
|
"isSpread": false
|
@@ -68,7 +69,8 @@
|
|
68
69
|
"line": 19,
|
69
70
|
"character": 78
|
70
71
|
},
|
71
|
-
"name": "AddComponentsIssuesSlot"
|
72
|
+
"name": "AddComponentsIssuesSlot",
|
73
|
+
"internalFilePath": "issues.main.runtime.ts"
|
72
74
|
},
|
73
75
|
"isOptional": false,
|
74
76
|
"isSpread": false
|
@@ -139,7 +141,11 @@
|
|
139
141
|
"line": 27,
|
140
142
|
"character": 44
|
141
143
|
},
|
142
|
-
"name": "Component"
|
144
|
+
"name": "Component",
|
145
|
+
"componentId": {
|
146
|
+
"scope": "teambit.component",
|
147
|
+
"name": "component"
|
148
|
+
}
|
143
149
|
},
|
144
150
|
"isOptional": false,
|
145
151
|
"isSpread": false
|
@@ -217,7 +223,11 @@
|
|
217
223
|
"line": 57,
|
218
224
|
"character": 49
|
219
225
|
},
|
220
|
-
"name": "Component"
|
226
|
+
"name": "Component",
|
227
|
+
"componentId": {
|
228
|
+
"scope": "teambit.component",
|
229
|
+
"name": "component"
|
230
|
+
}
|
221
231
|
}
|
222
232
|
},
|
223
233
|
"isOptional": false,
|
@@ -299,7 +309,8 @@
|
|
299
309
|
"line": 74,
|
300
310
|
"character": 52
|
301
311
|
},
|
302
|
-
"name": "AddComponentsIssues"
|
312
|
+
"name": "AddComponentsIssues",
|
313
|
+
"internalFilePath": "issues.main.runtime.ts"
|
303
314
|
},
|
304
315
|
"isOptional": false,
|
305
316
|
"isSpread": false
|
@@ -348,7 +359,11 @@
|
|
348
359
|
"line": 78,
|
349
360
|
"character": 47
|
350
361
|
},
|
351
|
-
"name": "Component"
|
362
|
+
"name": "Component",
|
363
|
+
"componentId": {
|
364
|
+
"scope": "teambit.component",
|
365
|
+
"name": "component"
|
366
|
+
}
|
352
367
|
}
|
353
368
|
},
|
354
369
|
"isOptional": false,
|
@@ -513,7 +528,11 @@
|
|
513
528
|
"line": 89,
|
514
529
|
"character": 33
|
515
530
|
},
|
516
|
-
"name": "CLIMain"
|
531
|
+
"name": "CLIMain",
|
532
|
+
"componentId": {
|
533
|
+
"scope": "teambit.harmony",
|
534
|
+
"name": "cli"
|
535
|
+
}
|
517
536
|
}
|
518
537
|
]
|
519
538
|
},
|
@@ -535,7 +554,8 @@
|
|
535
554
|
"line": 89,
|
536
555
|
"character": 51
|
537
556
|
},
|
538
|
-
"name": "IssuesConfig"
|
557
|
+
"name": "IssuesConfig",
|
558
|
+
"internalFilePath": "issues.main.runtime.ts"
|
539
559
|
},
|
540
560
|
"isOptional": false,
|
541
561
|
"isSpread": false
|
@@ -563,7 +583,8 @@
|
|
563
583
|
"line": 89,
|
564
584
|
"character": 93
|
565
585
|
},
|
566
|
-
"name": "AddComponentsIssuesSlot"
|
586
|
+
"name": "AddComponentsIssuesSlot",
|
587
|
+
"internalFilePath": "issues.main.runtime.ts"
|
567
588
|
}
|
568
589
|
]
|
569
590
|
},
|
@@ -701,7 +722,7 @@
|
|
701
722
|
"line": 14,
|
702
723
|
"character": 35
|
703
724
|
},
|
704
|
-
"signature": "(components: Component[], issuesToIgnore: string[]): Promise<void>",
|
725
|
+
"signature": "(components: \u001b[2m(component: teambit.component/component)\u001b[22m Component[], issuesToIgnore: string[]): Promise<void>",
|
705
726
|
"name": "",
|
706
727
|
"params": [
|
707
728
|
{
|
@@ -726,7 +747,11 @@
|
|
726
747
|
"line": 14,
|
727
748
|
"character": 48
|
728
749
|
},
|
729
|
-
"name": "Component"
|
750
|
+
"name": "Component",
|
751
|
+
"componentId": {
|
752
|
+
"scope": "teambit.component",
|
753
|
+
"name": "component"
|
754
|
+
}
|
730
755
|
}
|
731
756
|
},
|
732
757
|
"isOptional": false,
|
@@ -801,6 +826,11 @@
|
|
801
826
|
"character": 39
|
802
827
|
},
|
803
828
|
"name": "SlotRegistry",
|
829
|
+
"componentId": {
|
830
|
+
"scope": "teambit.harmony",
|
831
|
+
"name": "harmony",
|
832
|
+
"version": "0.4.6"
|
833
|
+
},
|
804
834
|
"typeArgs": [
|
805
835
|
{
|
806
836
|
"__schema": "TypeRefSchema",
|
@@ -809,7 +839,8 @@
|
|
809
839
|
"line": 16,
|
810
840
|
"character": 52
|
811
841
|
},
|
812
|
-
"name": "AddComponentsIssues"
|
842
|
+
"name": "AddComponentsIssues",
|
843
|
+
"internalFilePath": "issues.main.runtime.ts"
|
813
844
|
}
|
814
845
|
]
|
815
846
|
}
|
@@ -849,7 +880,8 @@
|
|
849
880
|
"line": 19,
|
850
881
|
"character": 31
|
851
882
|
},
|
852
|
-
"name": "IssuesConfig"
|
883
|
+
"name": "IssuesConfig",
|
884
|
+
"internalFilePath": "issues.main.runtime.ts"
|
853
885
|
},
|
854
886
|
"isOptional": false,
|
855
887
|
"isSpread": false
|
@@ -869,7 +901,8 @@
|
|
869
901
|
"line": 19,
|
870
902
|
"character": 78
|
871
903
|
},
|
872
|
-
"name": "AddComponentsIssuesSlot"
|
904
|
+
"name": "AddComponentsIssuesSlot",
|
905
|
+
"internalFilePath": "issues.main.runtime.ts"
|
873
906
|
},
|
874
907
|
"isOptional": false,
|
875
908
|
"isSpread": false
|
@@ -940,7 +973,11 @@
|
|
940
973
|
"line": 27,
|
941
974
|
"character": 44
|
942
975
|
},
|
943
|
-
"name": "Component"
|
976
|
+
"name": "Component",
|
977
|
+
"componentId": {
|
978
|
+
"scope": "teambit.component",
|
979
|
+
"name": "component"
|
980
|
+
}
|
944
981
|
},
|
945
982
|
"isOptional": false,
|
946
983
|
"isSpread": false
|
@@ -1018,7 +1055,11 @@
|
|
1018
1055
|
"line": 57,
|
1019
1056
|
"character": 49
|
1020
1057
|
},
|
1021
|
-
"name": "Component"
|
1058
|
+
"name": "Component",
|
1059
|
+
"componentId": {
|
1060
|
+
"scope": "teambit.component",
|
1061
|
+
"name": "component"
|
1062
|
+
}
|
1022
1063
|
}
|
1023
1064
|
},
|
1024
1065
|
"isOptional": false,
|
@@ -1100,7 +1141,8 @@
|
|
1100
1141
|
"line": 74,
|
1101
1142
|
"character": 52
|
1102
1143
|
},
|
1103
|
-
"name": "AddComponentsIssues"
|
1144
|
+
"name": "AddComponentsIssues",
|
1145
|
+
"internalFilePath": "issues.main.runtime.ts"
|
1104
1146
|
},
|
1105
1147
|
"isOptional": false,
|
1106
1148
|
"isSpread": false
|
@@ -1149,7 +1191,11 @@
|
|
1149
1191
|
"line": 78,
|
1150
1192
|
"character": 47
|
1151
1193
|
},
|
1152
|
-
"name": "Component"
|
1194
|
+
"name": "Component",
|
1195
|
+
"componentId": {
|
1196
|
+
"scope": "teambit.component",
|
1197
|
+
"name": "component"
|
1198
|
+
}
|
1153
1199
|
}
|
1154
1200
|
},
|
1155
1201
|
"isOptional": false,
|
@@ -1314,7 +1360,11 @@
|
|
1314
1360
|
"line": 89,
|
1315
1361
|
"character": 33
|
1316
1362
|
},
|
1317
|
-
"name": "CLIMain"
|
1363
|
+
"name": "CLIMain",
|
1364
|
+
"componentId": {
|
1365
|
+
"scope": "teambit.harmony",
|
1366
|
+
"name": "cli"
|
1367
|
+
}
|
1318
1368
|
}
|
1319
1369
|
]
|
1320
1370
|
},
|
@@ -1336,7 +1386,8 @@
|
|
1336
1386
|
"line": 89,
|
1337
1387
|
"character": 51
|
1338
1388
|
},
|
1339
|
-
"name": "IssuesConfig"
|
1389
|
+
"name": "IssuesConfig",
|
1390
|
+
"internalFilePath": "issues.main.runtime.ts"
|
1340
1391
|
},
|
1341
1392
|
"isOptional": false,
|
1342
1393
|
"isSpread": false
|
@@ -1364,7 +1415,8 @@
|
|
1364
1415
|
"line": 89,
|
1365
1416
|
"character": 93
|
1366
1417
|
},
|
1367
|
-
"name": "AddComponentsIssuesSlot"
|
1418
|
+
"name": "AddComponentsIssuesSlot",
|
1419
|
+
"internalFilePath": "issues.main.runtime.ts"
|
1368
1420
|
}
|
1369
1421
|
]
|
1370
1422
|
},
|
@@ -1445,7 +1497,7 @@
|
|
1445
1497
|
"componentId": {
|
1446
1498
|
"scope": "teambit.component",
|
1447
1499
|
"name": "issues",
|
1448
|
-
"version": "1.0.
|
1500
|
+
"version": "1.0.230"
|
1449
1501
|
},
|
1450
1502
|
"taggedModuleExports": []
|
1451
1503
|
}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
+
import { IssuesMain } from './issues.main.runtime';
|
3
|
+
export declare class ComponentIssuesCmd implements Command {
|
4
|
+
private issues;
|
5
|
+
name: string;
|
6
|
+
description: string;
|
7
|
+
alias: string;
|
8
|
+
group: string;
|
9
|
+
options: CommandOptions;
|
10
|
+
loader: boolean;
|
11
|
+
private: boolean;
|
12
|
+
constructor(issues: IssuesMain);
|
13
|
+
report(): Promise<string>;
|
14
|
+
json(): Promise<{
|
15
|
+
name: string;
|
16
|
+
description: string;
|
17
|
+
solution: string;
|
18
|
+
isTagBlocker: boolean;
|
19
|
+
}[]>;
|
20
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { CLIMain } from '@teambit/cli';
|
2
|
+
import { Component } from '@teambit/component';
|
3
|
+
import { SlotRegistry } from '@teambit/harmony';
|
4
|
+
export type IssuesConfig = {
|
5
|
+
ignoreIssues: string[];
|
6
|
+
};
|
7
|
+
export type AddComponentsIssues = (components: Component[], issuesToIgnore: string[]) => Promise<void>;
|
8
|
+
export type AddComponentsIssuesSlot = SlotRegistry<AddComponentsIssues>;
|
9
|
+
export declare class IssuesMain {
|
10
|
+
private config;
|
11
|
+
private addComponentsIssuesSlot;
|
12
|
+
constructor(config: IssuesConfig, addComponentsIssuesSlot: AddComponentsIssuesSlot);
|
13
|
+
getIssuesToIgnoreGlobally(): string[];
|
14
|
+
getIssuesToIgnorePerComponent(component: Component): string[];
|
15
|
+
private validateIssueNames;
|
16
|
+
listIssues(): {
|
17
|
+
name: string;
|
18
|
+
description: string;
|
19
|
+
solution: string;
|
20
|
+
isTagBlocker: boolean;
|
21
|
+
}[];
|
22
|
+
removeIgnoredIssuesFromComponents(components: Component[], extraIssuesToIgnore?: string[]): void;
|
23
|
+
/**
|
24
|
+
* register to this slot in order to add a component-issue in bit-status and bit-snap/tag.
|
25
|
+
* your function gets all components in one param and the issuesToIgnore as a second param, you don't need to check
|
26
|
+
* for issuesToIgnore. if the issue you added is configured to be ignored, it'll be ignored later in the process.
|
27
|
+
* this is useful for optimization, if you don't want to calculate the component issue when it's ignored.
|
28
|
+
*/
|
29
|
+
registerAddComponentsIssues(addComponentsIssues: AddComponentsIssues): void;
|
30
|
+
triggerAddComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>;
|
31
|
+
static slots: ((registerFn: () => string) => SlotRegistry<AddComponentsIssues>)[];
|
32
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
33
|
+
static defaultConfig: {
|
34
|
+
ignoreIssues: never[];
|
35
|
+
};
|
36
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
37
|
+
static provider([cli]: [CLIMain], config: IssuesConfig, [addComponentsIssuesSlot]: [AddComponentsIssuesSlot]): Promise<IssuesMain>;
|
38
|
+
}
|
package/package.json
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/issues",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.230",
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/issues",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "issues",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.230"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"p-map-series": "2.1.0",
|
14
14
|
"@teambit/harmony": "0.4.6",
|
15
15
|
"@teambit/bit-error": "0.0.404",
|
16
|
-
"@teambit/cli": "0.0.
|
17
|
-
"@teambit/component-issues": "0.0.
|
18
|
-
"@teambit/component": "1.0.
|
16
|
+
"@teambit/cli": "0.0.862",
|
17
|
+
"@teambit/component-issues": "0.0.144",
|
18
|
+
"@teambit/component": "1.0.230"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/mocha": "9.1.0",
|
22
22
|
"chai": "4.3.0",
|
23
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
26
26
|
"@teambit/legacy": "1.0.624"
|
package/tsconfig.json
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
24
|
-
"composite": true
|
23
|
+
"noImplicitAny": false
|
25
24
|
},
|
26
25
|
"exclude": [
|
27
26
|
"artifacts",
|
@@ -36,13 +35,5 @@
|
|
36
35
|
"include": [
|
37
36
|
"**/*",
|
38
37
|
"**/*.json"
|
39
|
-
],
|
40
|
-
"references": [
|
41
|
-
{
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
46
|
-
}
|
47
38
|
]
|
48
39
|
}
|
File without changes
|