@teambit/component-issues 0.0.54 → 0.0.57

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.
@@ -2,7 +2,7 @@ import { ComponentIssue, formatTitle } from './component-issue';
2
2
 
3
3
  export class CircularDependencies extends ComponentIssue {
4
4
  description = 'circular dependencies';
5
- solution = 'run `bit insights "circular dependencies"` to get the component-ids participating in the circular';
5
+ solution = 'run `bit insights "circular"` to get the component-ids participating in the circular';
6
6
  data: boolean;
7
7
  isTagBlocker = true;
8
8
  outputForCLI() {
@@ -12,7 +12,6 @@ export class ComponentIssue {
12
12
  data: any;
13
13
  isTagBlocker = true; // if true, it stops the tag process and shows the issue
14
14
  isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
15
- isLegacyIssue = false;
16
15
  formatDataFunction: FormatIssueFunc = componentIssueToString;
17
16
  get descriptionWithSolution() {
18
17
  const solution = this.solution ? ` (${this.solution})` : '';
@@ -6,7 +6,7 @@ class CircularDependencies extends component_issue_1.ComponentIssue {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.description = 'circular dependencies';
9
- this.solution = 'run `bit insights "circular dependencies"` to get the component-ids participating in the circular';
9
+ this.solution = 'run `bit insights "circular"` to get the component-ids participating in the circular';
10
10
  this.isTagBlocker = true;
11
11
  }
12
12
  outputForCLI() {
@@ -1 +1 @@
1
- {"version":3,"file":"circular-dependencies.js","sourceRoot":"","sources":["../circular-dependencies.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,oBAAqB,SAAQ,gCAAc;IAAxD;;QACE,gBAAW,GAAG,uBAAuB,CAAC;QACtC,aAAQ,GAAG,mGAAmG,CAAC;QAE/G,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,oDAQC"}
1
+ {"version":3,"file":"circular-dependencies.js","sourceRoot":"","sources":["../circular-dependencies.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,oBAAqB,SAAQ,gCAAc;IAAxD;;QACE,gBAAW,GAAG,uBAAuB,CAAC;QACtC,aAAQ,GAAG,sFAAsF,CAAC;QAElG,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,oDAQC"}
@@ -9,7 +9,6 @@ export declare class ComponentIssue {
9
9
  data: any;
10
10
  isTagBlocker: boolean;
11
11
  isCacheBlocker: boolean;
12
- isLegacyIssue: boolean;
13
12
  formatDataFunction: FormatIssueFunc;
14
13
  get descriptionWithSolution(): string;
15
14
  outputForCLI(): string;
@@ -12,7 +12,6 @@ class ComponentIssue {
12
12
  constructor() {
13
13
  this.isTagBlocker = true; // if true, it stops the tag process and shows the issue
14
14
  this.isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
15
- this.isLegacyIssue = false;
16
15
  this.formatDataFunction = componentIssueToString;
17
16
  }
18
17
  get descriptionWithSolution() {
@@ -1 +1 @@
1
- {"version":3,"file":"component-issue.js","sourceRoot":"","sources":["../component-issue.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,0DAA+C;AAIlC,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC9B,QAAA,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,gCAAwB,CAAC,CAAC;AAEvE,MAAa,cAAc;IAA3B;QAIE,iBAAY,GAAG,IAAI,CAAC,CAAC,wDAAwD;QAC7E,mBAAc,GAAG,IAAI,CAAC,CAAC,4DAA4D;QACnF,kBAAa,GAAG,KAAK,CAAC;QACtB,uBAAkB,GAAoB,sBAAsB,CAAC;IA6B/D,CAAC;IA5BC,IAAI,uBAAuB;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,Q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C,CAAC,KAAK,CAAC;AACzD,CAAC;AAFD,wDAEC;AAED,SAAgB,oBAAoB,CAAC,OAAe;IAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QACrC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,qBAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAND,oDAMC"}
@@ -2,10 +2,8 @@ import { ComponentIssue } from './component-issue';
2
2
  import { CustomModuleResolutionUsed } from './custom-module-resolution-used';
3
3
  import { ImportNonMainFiles } from './import-non-main-files';
4
4
  import { MissingComponents } from './missing-components';
5
- import { MissingCustomModuleResolutionLinks } from './missing-custom-module-resolution-links';
6
5
  import { MissingDependenciesOnFs } from './missing-dependencies-on-fs';
7
6
  import { MissingDists } from './missing-dists';
8
- import { MissingLinks } from './missing-links';
9
7
  import { MissingPackagesDependenciesOnFs } from './missing-packages-dependencies-on-fs';
10
8
  import { ParseErrors } from './parse-errors';
11
9
  import { RelativeComponents } from './relative-components';
@@ -24,11 +22,9 @@ export declare const IssuesClasses: {
24
22
  RelativeComponents: typeof RelativeComponents;
25
23
  RelativeComponentsAuthored: typeof RelativeComponentsAuthored;
26
24
  ParseErrors: typeof ParseErrors;
27
- MissingLinks: typeof MissingLinks;
28
25
  MissingDists: typeof MissingDists;
29
26
  LegacyInsideHarmony: typeof LegacyInsideHarmony;
30
27
  MissingDependenciesOnFs: typeof MissingDependenciesOnFs;
31
- MissingCustomModuleResolutionLinks: typeof MissingCustomModuleResolutionLinks;
32
28
  ImportNonMainFiles: typeof ImportNonMainFiles;
33
29
  CustomModuleResolutionUsed: typeof CustomModuleResolutionUsed;
34
30
  MultipleEnvs: typeof MultipleEnvs;
@@ -52,7 +48,6 @@ export declare class IssuesList {
52
48
  description: string;
53
49
  data: string;
54
50
  }[];
55
- getHarmonyIssues(): ComponentIssue[];
56
51
  add(issue: ComponentIssue): void;
57
52
  delete(IssueClass: typeof ComponentIssue): void;
58
53
  getIssue<T extends ComponentIssue>(IssueClass: {
@@ -4,10 +4,8 @@ exports.IssuesList = exports.IssuesClasses = void 0;
4
4
  const custom_module_resolution_used_1 = require("./custom-module-resolution-used");
5
5
  const import_non_main_files_1 = require("./import-non-main-files");
6
6
  const missing_components_1 = require("./missing-components");
7
- const missing_custom_module_resolution_links_1 = require("./missing-custom-module-resolution-links");
8
7
  const missing_dependencies_on_fs_1 = require("./missing-dependencies-on-fs");
9
8
  const missing_dists_1 = require("./missing-dists");
10
- const missing_links_1 = require("./missing-links");
11
9
  const missing_packages_dependencies_on_fs_1 = require("./missing-packages-dependencies-on-fs");
12
10
  const parse_errors_1 = require("./parse-errors");
13
11
  const relative_components_1 = require("./relative-components");
@@ -26,11 +24,9 @@ exports.IssuesClasses = {
26
24
  RelativeComponents: relative_components_1.RelativeComponents,
27
25
  RelativeComponentsAuthored: relative_components_authored_1.RelativeComponentsAuthored,
28
26
  ParseErrors: parse_errors_1.ParseErrors,
29
- MissingLinks: missing_links_1.MissingLinks,
30
27
  MissingDists: missing_dists_1.MissingDists,
31
28
  LegacyInsideHarmony: legacy_inside_harmony_1.LegacyInsideHarmony,
32
29
  MissingDependenciesOnFs: missing_dependencies_on_fs_1.MissingDependenciesOnFs,
33
- MissingCustomModuleResolutionLinks: missing_custom_module_resolution_links_1.MissingCustomModuleResolutionLinks,
34
30
  ImportNonMainFiles: import_non_main_files_1.ImportNonMainFiles,
35
31
  CustomModuleResolutionUsed: custom_module_resolution_used_1.CustomModuleResolutionUsed,
36
32
  MultipleEnvs: multiple_envs_1.MultipleEnvs,
@@ -56,9 +52,6 @@ class IssuesList {
56
52
  toObjectWithDataAsString() {
57
53
  return this.issues.map((issue) => (Object.assign(Object.assign({}, issue.toObject()), { data: issue.dataToString().trim() })));
58
54
  }
59
- getHarmonyIssues() {
60
- return this.issues.filter((issue) => !issue.isLegacyIssue);
61
- }
62
55
  add(issue) {
63
56
  this.issues.push(issue);
64
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"issues-list.js","sourceRoot":"","sources":["../issues-list.ts"],"names":[],"mappings":";;;AACA,mFAA6E;AAC7E,mEAA6D;AAC7D,6DAAyD;AACzD,qGAA8F;AAC9F,6EAAuE;AACvE,mDAA+C;AAC/C,mDAA+C;AAC/C,+FAAwF;AACxF,iDAA6C;AAC7C,+DAA2D;AAC3D,iFAA4E;AAC5E,qDAAiD;AACjD,qEAAiE;AACjE,mEAA8D;AAC9D,mDAA+C;AAC/C,iFAAkF;AAClF,mEAA+D;AAElD,QAAA,aAAa,GAAG;IAC3B,+BAA+B,EAA/B,qEAA+B;IAC/B,iBAAiB,EAAjB,sCAAiB;IACjB,qBAAqB,EAArB,8CAAqB;IACrB,aAAa,EAAb,8BAAa;IACb,kBAAkB,EAAlB,wCAAkB;IAClB,0BAA0B,EAA1B,yDAA0B;IAC1B,WAAW,EAAX,0BAAW;IACX,YAAY,EAAZ,4BAAY;IACZ,YAAY,EAAZ,4BAAY;IACZ,mBAAmB,EAAnB,2CAAmB;IACnB,uBAAuB,EAAvB,oDAAuB;IACvB,kCAAkC,EAAlC,2EAAkC;IAClC,kBAAkB,EAAlB,0CAAkB;IAClB,0BAA0B,EAA1B,0DAA0B;IAC1B,YAAY,EAAZ,4BAAY;IACZ,gCAAgC,EAAhC,+DAAgC;IAChC,oBAAoB,EAApB,4CAAoB;CACrB,CAAC;AAGF,MAAa,UAAU;IACrB,YAAoB,SAA2B,EAAE;QAA7B,WAAM,GAAN,MAAM,CAAuB;IAAG,CAAC;IAErD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5B,CAAC;IAED,OAAO;QACL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
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.description = 'multiple envs';
9
- this.solution = 'set the desired env by running "bit env set <component> <env>"';
9
+ this.solution = 'set the desired env by running "bit env set <component> <env>", if it doesn\'t work, run "bit aspect unset <component> <unwanted-env-id>". to keep troubleshooting run "bit aspect list <component-id>"';
10
10
  this.isTagBlocker = true;
11
11
  }
12
12
  dataToString() {
@@ -1 +1 @@
1
- {"version":3,"file":"multiple-envs.js","sourceRoot":"","sources":["../multiple-envs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,gEAAgE,CAAC;QAE5E,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AARD,oCAQC"}
1
+ {"version":3,"file":"multiple-envs.js","sourceRoot":"","sources":["../multiple-envs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GACN,yMAAyM,CAAC;QAE5M,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AATD,oCASC"}
package/issues-list.ts CHANGED
@@ -2,10 +2,8 @@ import { ComponentIssue } from './component-issue';
2
2
  import { CustomModuleResolutionUsed } from './custom-module-resolution-used';
3
3
  import { ImportNonMainFiles } from './import-non-main-files';
4
4
  import { MissingComponents } from './missing-components';
5
- import { MissingCustomModuleResolutionLinks } from './missing-custom-module-resolution-links';
6
5
  import { MissingDependenciesOnFs } from './missing-dependencies-on-fs';
7
6
  import { MissingDists } from './missing-dists';
8
- import { MissingLinks } from './missing-links';
9
7
  import { MissingPackagesDependenciesOnFs } from './missing-packages-dependencies-on-fs';
10
8
  import { ParseErrors } from './parse-errors';
11
9
  import { RelativeComponents } from './relative-components';
@@ -25,11 +23,9 @@ export const IssuesClasses = {
25
23
  RelativeComponents,
26
24
  RelativeComponentsAuthored,
27
25
  ParseErrors,
28
- MissingLinks,
29
26
  MissingDists,
30
27
  LegacyInsideHarmony,
31
28
  MissingDependenciesOnFs,
32
- MissingCustomModuleResolutionLinks,
33
29
  ImportNonMainFiles,
34
30
  CustomModuleResolutionUsed,
35
31
  MultipleEnvs,
@@ -64,10 +60,6 @@ export class IssuesList {
64
60
  }));
65
61
  }
66
62
 
67
- getHarmonyIssues() {
68
- return this.issues.filter((issue) => !issue.isLegacyIssue);
69
- }
70
-
71
63
  add(issue: ComponentIssue) {
72
64
  this.issues.push(issue);
73
65
  }
package/multiple-envs.ts CHANGED
@@ -2,7 +2,8 @@ import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';
2
2
 
3
3
  export class MultipleEnvs extends ComponentIssue {
4
4
  description = 'multiple envs';
5
- solution = 'set the desired env by running "bit env set <component> <env>"';
5
+ solution =
6
+ 'set the desired env by running "bit env set <component> <env>", if it doesn\'t work, run "bit aspect unset <component> <unwanted-env-id>". to keep troubleshooting run "bit aspect list <component-id>"';
6
7
  data: string[]; // env ids
7
8
  isTagBlocker = true;
8
9
  dataToString() {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component-issues",
3
- "version": "0.0.54",
3
+ "version": "0.0.57",
4
4
  "homepage": "https://bit.dev/teambit/component/component-issues",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component-issues",
9
- "version": "0.0.54"
9
+ "version": "0.0.57"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -19,17 +19,6 @@
19
19
  },
20
20
  "peerDependencies": {},
21
21
  "license": "Apache-2.0",
22
- "bit": {
23
- "bindingPrefix": "@teambit",
24
- "env": {},
25
- "overrides": {
26
- "devDependencies": {
27
- "@babel/runtime": "7.12.18",
28
- "@types/node": "12.20.4",
29
- "@types/jest": "26.0.20"
30
- }
31
- }
32
- },
33
22
  "private": false,
34
23
  "engines": {
35
24
  "node": ">=12.22.0"
@@ -0,0 +1,5 @@
1
+ ;
2
+ ;
3
+
4
+ export const compositions = [];
5
+ export const overview = [];
@@ -1,7 +0,0 @@
1
- import { ComponentIssue, StringsPerFilePath } from './component-issue';
2
- export declare class MissingCustomModuleResolutionLinks extends ComponentIssue {
3
- isLegacyIssue: boolean;
4
- description: string;
5
- solution: string;
6
- data: StringsPerFilePath;
7
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MissingCustomModuleResolutionLinks = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingCustomModuleResolutionLinks extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.isLegacyIssue = true;
9
- this.description = 'missing links';
10
- this.solution = 'use "bit link" to build missing component links';
11
- this.data = {};
12
- }
13
- }
14
- exports.MissingCustomModuleResolutionLinks = MissingCustomModuleResolutionLinks;
15
- //# sourceMappingURL=missing-custom-module-resolution-links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"missing-custom-module-resolution-links.js","sourceRoot":"","sources":["../missing-custom-module-resolution-links.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,kCAAmC,SAAQ,gCAAc;IAAtE;;QACE,kBAAa,GAAG,IAAI,CAAC;QACrB,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AALD,gFAKC"}
@@ -1,11 +0,0 @@
1
- import { BitId } from '@teambit/legacy-bit-id';
2
- import { ComponentIssue } from './component-issue';
3
- export declare class MissingLinks extends ComponentIssue {
4
- description: string;
5
- solution: string;
6
- data: {
7
- [filePath: string]: BitId[];
8
- };
9
- isLegacyIssue: boolean;
10
- deserialize(data: string): any;
11
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MissingLinks = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingLinks extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'missing links between components';
9
- this.solution = 'use "bit link" to build missing component links';
10
- this.data = {};
11
- this.isLegacyIssue = true;
12
- }
13
- deserialize(data) {
14
- return (0, component_issue_1.deserializeWithBitId)(data);
15
- }
16
- }
17
- exports.MissingLinks = MissingLinks;
18
- //# sourceMappingURL=missing-links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"missing-links.js","sourceRoot":"","sources":["../missing-links.ts"],"names":[],"mappings":";;;AACA,uDAAyE;AAEzE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,kCAAkC,CAAC;QACjD,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAoC,EAAE,CAAC;QAC3C,kBAAa,GAAG,IAAI,CAAC;IAIvB,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AARD,oCAQC"}
@@ -1,8 +0,0 @@
1
- import { ComponentIssue, StringsPerFilePath } from './component-issue';
2
-
3
- export class MissingCustomModuleResolutionLinks extends ComponentIssue {
4
- isLegacyIssue = true;
5
- description = 'missing links';
6
- solution = 'use "bit link" to build missing component links';
7
- data: StringsPerFilePath = {};
8
- }
package/missing-links.ts DELETED
@@ -1,12 +0,0 @@
1
- import { BitId } from '@teambit/legacy-bit-id';
2
- import { ComponentIssue, deserializeWithBitId } from './component-issue';
3
-
4
- export class MissingLinks extends ComponentIssue {
5
- description = 'missing links between components';
6
- solution = 'use "bit link" to build missing component links';
7
- data: { [filePath: string]: BitId[] } = {};
8
- isLegacyIssue = true;
9
- deserialize(data: string) {
10
- return deserializeWithBitId(data);
11
- }
12
- }
@@ -1 +0,0 @@
1
-