@teambit/component-issues 0.0.44 → 0.0.45

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.
Files changed (61) hide show
  1. package/component-issue.ts +63 -0
  2. package/custom-module-resolution-used.ts +7 -0
  3. package/dist/component-issue.js +53 -102
  4. package/dist/component-issue.js.map +1 -1
  5. package/dist/custom-module-resolution-used.js +9 -39
  6. package/dist/custom-module-resolution-used.js.map +1 -1
  7. package/dist/import-non-main-files.js +10 -40
  8. package/dist/import-non-main-files.js.map +1 -1
  9. package/dist/index.js +9 -87
  10. package/dist/index.js.map +1 -1
  11. package/dist/issues-list.js +100 -295
  12. package/dist/issues-list.js.map +1 -1
  13. package/dist/legacy-inside-harmony.js +12 -44
  14. package/dist/legacy-inside-harmony.js.map +1 -1
  15. package/dist/missing-components.js +12 -43
  16. package/dist/missing-components.js.map +1 -1
  17. package/dist/missing-custom-module-resolution-links.js +9 -39
  18. package/dist/missing-custom-module-resolution-links.js.map +1 -1
  19. package/dist/missing-dependencies-on-fs.js +9 -39
  20. package/dist/missing-dependencies-on-fs.js.map +1 -1
  21. package/dist/missing-dists.js +12 -44
  22. package/dist/missing-dists.js.map +1 -1
  23. package/dist/missing-links-from-nm-to-src.js +12 -44
  24. package/dist/missing-links-from-nm-to-src.js.map +1 -1
  25. package/dist/missing-links.js +12 -43
  26. package/dist/missing-links.js.map +1 -1
  27. package/dist/missing-packages-dependencies-on-fs.js +9 -39
  28. package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
  29. package/dist/multiple-envs.js +12 -44
  30. package/dist/multiple-envs.js.map +1 -1
  31. package/dist/parse-errors.js +9 -39
  32. package/dist/parse-errors.js.map +1 -1
  33. package/dist/relative-components-authored.js +25 -67
  34. package/dist/relative-components-authored.js.map +1 -1
  35. package/dist/relative-components.js +13 -44
  36. package/dist/relative-components.js.map +1 -1
  37. package/dist/resolve-errors.js +9 -39
  38. package/dist/resolve-errors.js.map +1 -1
  39. package/dist/untracked-dependencies.js +32 -73
  40. package/dist/untracked-dependencies.js.map +1 -1
  41. package/import-non-main-files.ts +8 -0
  42. package/index.ts +4 -0
  43. package/issues-list.ts +124 -0
  44. package/legacy-inside-harmony.ts +11 -0
  45. package/missing-components.ts +11 -0
  46. package/missing-custom-module-resolution-links.ts +7 -0
  47. package/missing-dependencies-on-fs.ts +7 -0
  48. package/missing-dists.ts +11 -0
  49. package/missing-links-from-nm-to-src.ts +11 -0
  50. package/missing-links.ts +11 -0
  51. package/missing-packages-dependencies-on-fs.ts +7 -0
  52. package/multiple-envs.ts +12 -0
  53. package/package-tar/teambit-component-issues-0.0.45.tgz +0 -0
  54. package/package.json +8 -35
  55. package/parse-errors.ts +7 -0
  56. package/relative-components-authored.ts +37 -0
  57. package/relative-components.ts +12 -0
  58. package/resolve-errors.ts +7 -0
  59. package/tsconfig.json +5 -13
  60. package/untracked-dependencies.ts +41 -0
  61. package/package-tar/teambit-component-issues-0.0.44.tgz +0 -0
@@ -1,44 +1,14 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.MissingDependenciesOnFs = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class MissingDependenciesOnFs extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'non-existing dependency files';
9
+ this.solution = 'make sure all files exists on your workspace';
10
+ this.data = {};
11
+ }
20
12
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class MissingDependenciesOnFs extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'non-existing dependency files');
36
- (0, _defineProperty2().default)(this, "solution", 'make sure all files exists on your workspace');
37
- (0, _defineProperty2().default)(this, "data", {});
38
- }
39
-
40
- }
41
-
42
13
  exports.MissingDependenciesOnFs = MissingDependenciesOnFs;
43
-
44
14
  //# sourceMappingURL=missing-dependencies-on-fs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["missing-dependencies-on-fs.ts"],"names":["MissingDependenciesOnFs","ComponentIssue"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,uBAAN,SAAsCC,gCAAtC,CAAqD;AAAA;AAAA;AAAA,yDAC5C,+BAD4C;AAAA,sDAE/C,8CAF+C;AAAA,kDAG/B,EAH+B;AAAA;;AAAA","sourcesContent":["import { ComponentIssue, StringsPerFilePath } from './component-issue';\n\nexport class MissingDependenciesOnFs extends ComponentIssue {\n description = 'non-existing dependency files';\n solution = 'make sure all files exists on your workspace';\n data: StringsPerFilePath = {};\n}\n"]}
1
+ {"version":3,"file":"missing-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,uBAAwB,SAAQ,gCAAc;IAA3D;;QACE,gBAAW,GAAG,+BAA+B,CAAC;QAC9C,aAAQ,GAAG,8CAA8C,CAAC;QAC1D,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,0DAIC"}
@@ -1,49 +1,17 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.MissingDists = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class MissingDists extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'missing dists';
9
+ this.solution = 'run "bit compile"';
10
+ this.isTagBlocker = false;
11
+ }
12
+ outputForCLI() {
13
+ return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
14
+ }
20
15
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class MissingDists extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'missing dists');
36
- (0, _defineProperty2().default)(this, "solution", 'run "bit compile"');
37
- (0, _defineProperty2().default)(this, "data", void 0);
38
- (0, _defineProperty2().default)(this, "isTagBlocker", false);
39
- }
40
-
41
- outputForCLI() {
42
- return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
43
- }
44
-
45
- }
46
-
47
16
  exports.MissingDists = MissingDists;
48
-
49
17
  //# sourceMappingURL=missing-dists.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["missing-dists.ts"],"names":["MissingDists","ComponentIssue","outputForCLI","descriptionWithSolution"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,YAAN,SAA2BC,gCAA3B,CAA0C;AAAA;AAAA;AAAA,yDACjC,eADiC;AAAA,sDAEpC,mBAFoC;AAAA;AAAA,0DAIhC,KAJgC;AAAA;;AAK/CC,EAAAA,YAAY,GAAG;AACb,WAAO,mCAAY,KAAKC,uBAAjB,EAA0C,KAA1C,CAAP;AACD;;AAP8C","sourcesContent":["import { ComponentIssue, formatTitle } from './component-issue';\n\nexport class MissingDists extends ComponentIssue {\n description = 'missing dists';\n solution = 'run \"bit compile\"';\n data: boolean;\n isTagBlocker = false;\n outputForCLI() {\n return formatTitle(this.descriptionWithSolution, false);\n }\n}\n"]}
1
+ {"version":3,"file":"missing-dists.js","sourceRoot":"","sources":["../missing-dists.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,mBAAmB,CAAC;QAE/B,iBAAY,GAAG,KAAK,CAAC;IAIvB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,oCAQC"}
@@ -1,49 +1,17 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.MissingLinksFromNodeModulesToSrc = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class MissingLinksFromNodeModulesToSrc extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'missing links from node_modules to source';
9
+ this.solution = 'run "bit link"';
10
+ this.isTagBlocker = false;
11
+ }
12
+ outputForCLI() {
13
+ return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
14
+ }
20
15
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class MissingLinksFromNodeModulesToSrc extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'missing links from node_modules to source');
36
- (0, _defineProperty2().default)(this, "solution", 'run "bit link"');
37
- (0, _defineProperty2().default)(this, "data", void 0);
38
- (0, _defineProperty2().default)(this, "isTagBlocker", false);
39
- }
40
-
41
- outputForCLI() {
42
- return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
43
- }
44
-
45
- }
46
-
47
16
  exports.MissingLinksFromNodeModulesToSrc = MissingLinksFromNodeModulesToSrc;
48
-
49
17
  //# sourceMappingURL=missing-links-from-nm-to-src.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["missing-links-from-nm-to-src.ts"],"names":["MissingLinksFromNodeModulesToSrc","ComponentIssue","outputForCLI","descriptionWithSolution"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,gCAAN,SAA+CC,gCAA/C,CAA8D;AAAA;AAAA;AAAA,yDACrD,2CADqD;AAAA,sDAExD,gBAFwD;AAAA;AAAA,0DAIpD,KAJoD;AAAA;;AAKnEC,EAAAA,YAAY,GAAG;AACb,WAAO,mCAAY,KAAKC,uBAAjB,EAA0C,KAA1C,CAAP;AACD;;AAPkE","sourcesContent":["import { ComponentIssue, formatTitle } from './component-issue';\n\nexport class MissingLinksFromNodeModulesToSrc extends ComponentIssue {\n description = 'missing links from node_modules to source';\n solution = 'run \"bit link\"';\n data: boolean;\n isTagBlocker = false;\n outputForCLI() {\n return formatTitle(this.descriptionWithSolution, false);\n }\n}\n"]}
1
+ {"version":3,"file":"missing-links-from-nm-to-src.js","sourceRoot":"","sources":["../missing-links-from-nm-to-src.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,gCAAiC,SAAQ,gCAAc;IAApE;;QACE,gBAAW,GAAG,2CAA2C,CAAC;QAC1D,aAAQ,GAAG,gBAAgB,CAAC;QAE5B,iBAAY,GAAG,KAAK,CAAC;IAIvB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,4EAQC"}
@@ -1,48 +1,17 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.MissingLinks = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
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
+ }
12
+ deserialize(data) {
13
+ return (0, component_issue_1.deserializeWithBitId)(data);
14
+ }
20
15
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class MissingLinks extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'missing links between components');
36
- (0, _defineProperty2().default)(this, "solution", 'use "bit link" to build missing component links');
37
- (0, _defineProperty2().default)(this, "data", {});
38
- }
39
-
40
- deserialize(data) {
41
- return (0, _componentIssue().deserializeWithBitId)(data);
42
- }
43
-
44
- }
45
-
46
16
  exports.MissingLinks = MissingLinks;
47
-
48
17
  //# sourceMappingURL=missing-links.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["missing-links.ts"],"names":["MissingLinks","ComponentIssue","deserialize","data"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,YAAN,SAA2BC,gCAA3B,CAA0C;AAAA;AAAA;AAAA,yDACjC,kCADiC;AAAA,sDAEpC,iDAFoC;AAAA,kDAGP,EAHO;AAAA;;AAI/CC,EAAAA,WAAW,CAACC,IAAD,EAAe;AACxB,WAAO,4CAAqBA,IAArB,CAAP;AACD;;AAN8C","sourcesContent":["import { BitId } from '@teambit/legacy-bit-id';\nimport { ComponentIssue, deserializeWithBitId } from './component-issue';\n\nexport class MissingLinks extends ComponentIssue {\n description = 'missing links between components';\n solution = 'use \"bit link\" to build missing component links';\n data: { [filePath: string]: BitId[] } = {};\n deserialize(data: string) {\n return deserializeWithBitId(data);\n }\n}\n"]}
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;IAI7C,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAPD,oCAOC"}
@@ -1,44 +1,14 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.MissingPackagesDependenciesOnFs = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class MissingPackagesDependenciesOnFs extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = `missing packages or links from node_modules to the source`;
9
+ this.solution = `run "bit install" to fix both issues. if it's an external package, make sure it's added as a package dependency`;
10
+ this.data = {};
11
+ }
20
12
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class MissingPackagesDependenciesOnFs extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", `missing packages or links from node_modules to the source`);
36
- (0, _defineProperty2().default)(this, "solution", `run "bit install" to fix both issues. if it's an external package, make sure it's added as a package dependency`);
37
- (0, _defineProperty2().default)(this, "data", {});
38
- }
39
-
40
- }
41
-
42
13
  exports.MissingPackagesDependenciesOnFs = MissingPackagesDependenciesOnFs;
43
-
44
14
  //# sourceMappingURL=missing-packages-dependencies-on-fs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["missing-packages-dependencies-on-fs.ts"],"names":["MissingPackagesDependenciesOnFs","ComponentIssue"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,+BAAN,SAA8CC,gCAA9C,CAA6D;AAAA;AAAA;AAAA,yDACnD,2DADmD;AAAA,sDAEtD,iHAFsD;AAAA,kDAGvC,EAHuC;AAAA;;AAAA","sourcesContent":["import { ComponentIssue, StringsPerFilePath } from './component-issue';\n\nexport class MissingPackagesDependenciesOnFs extends ComponentIssue {\n description = `missing packages or links from node_modules to the source`;\n solution = `run \"bit install\" to fix both issues. if it's an external package, make sure it's added as a package dependency`;\n data: StringsPerFilePath = {};\n}\n"]}
1
+ {"version":3,"file":"missing-packages-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-packages-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,+BAAgC,SAAQ,gCAAc;IAAnE;;QACE,gBAAW,GAAG,2DAA2D,CAAC;QAC1E,aAAQ,GAAG,iHAAiH,CAAC;QAC7H,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,0EAIC"}
@@ -1,49 +1,17 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.MultipleEnvs = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class MultipleEnvs extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'multiple envs';
9
+ this.solution = 'remove the old envs by setting them with "-" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ';
10
+ this.isTagBlocker = true;
11
+ }
12
+ dataToString() {
13
+ return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
14
+ }
20
15
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class MultipleEnvs extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'multiple envs');
36
- (0, _defineProperty2().default)(this, "solution", 'remove the old envs by setting them with "-" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ');
37
- (0, _defineProperty2().default)(this, "data", void 0);
38
- (0, _defineProperty2().default)(this, "isTagBlocker", true);
39
- }
40
-
41
- dataToString() {
42
- return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
43
- }
44
-
45
- }
46
-
47
16
  exports.MultipleEnvs = MultipleEnvs;
48
-
49
17
  //# sourceMappingURL=multiple-envs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["multiple-envs.ts"],"names":["MultipleEnvs","ComponentIssue","dataToString","ISSUE_FORMAT_SPACE","data","join"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,YAAN,SAA2BC,gCAA3B,CAA0C;AAAA;AAAA;AAAA,yDACjC,eADiC;AAAA,sDAG7C,wIAH6C;AAAA;AAAA,0DAKhC,IALgC;AAAA;;AAM/CC,EAAAA,YAAY,GAAG;AACb,WAAOC,uCAAqB,KAAKC,IAAL,CAAUC,IAAV,CAAe,IAAf,CAA5B;AACD;;AAR8C","sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class MultipleEnvs extends ComponentIssue {\n description = 'multiple envs';\n solution =\n 'remove the old envs by setting them with \"-\" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ';\n data: string[]; // env ids\n isTagBlocker = true;\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data.join(', ');\n }\n}\n"]}
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,wIAAwI,CAAC;QAE3I,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"}
@@ -1,44 +1,14 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.ParseErrors = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class ParseErrors extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'error found while parsing the file';
9
+ this.solution = 'edit the file and fix the parsing error';
10
+ this.data = {};
11
+ }
20
12
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class ParseErrors extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'error found while parsing the file');
36
- (0, _defineProperty2().default)(this, "solution", 'edit the file and fix the parsing error');
37
- (0, _defineProperty2().default)(this, "data", {});
38
- }
39
-
40
- }
41
-
42
13
  exports.ParseErrors = ParseErrors;
43
-
44
14
  //# sourceMappingURL=parse-errors.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["parse-errors.ts"],"names":["ParseErrors","ComponentIssue"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,WAAN,SAA0BC,gCAA1B,CAAyC;AAAA;AAAA;AAAA,yDAChC,oCADgC;AAAA,sDAEnC,yCAFmC;AAAA,kDAGP,EAHO;AAAA;;AAAA","sourcesContent":["import { ComponentIssue } from './component-issue';\n\nexport class ParseErrors extends ComponentIssue {\n description = 'error found while parsing the file';\n solution = 'edit the file and fix the parsing error';\n data: { [filePath: string]: string } = {};\n}\n"]}
1
+ {"version":3,"file":"parse-errors.js","sourceRoot":"","sources":["../parse-errors.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEnD,MAAa,WAAY,SAAQ,gCAAc;IAA/C;;QACE,gBAAW,GAAG,oCAAoC,CAAC;QACnD,aAAQ,GAAG,yCAAyC,CAAC;QACrD,SAAI,GAAmC,EAAE,CAAC;IAC5C,CAAC;CAAA;AAJD,kCAIC"}
@@ -1,74 +1,32 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.relativeComponentsAuthored = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const legacy_bit_id_1 = require("@teambit/legacy-bit-id");
5
+ const component_issue_1 = require("./component-issue");
6
+ class relativeComponentsAuthored extends component_issue_1.ComponentIssue {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.description = 'components with relative import statements found';
10
+ this.solution = 'replace to module paths or use "bit link --rewire" to replace';
11
+ this.data = {};
12
+ this.isCacheBlocker = false;
13
+ this.formatDataFunction = relativeComponentsAuthoredIssuesToString;
14
+ }
15
+ deserialize(dataStr) {
16
+ const data = JSON.parse(dataStr);
17
+ Object.keys(data).forEach((fileName) => {
18
+ data[fileName] = data[fileName].map((record) => ({
19
+ importSource: record.importSource,
20
+ componentId: new legacy_bit_id_1.BitId(record.componentId),
21
+ relativePath: record.relativePath,
22
+ }));
23
+ });
24
+ return data;
25
+ }
20
26
  }
21
-
22
- function _legacyBitId() {
23
- const data = require("@teambit/legacy-bit-id");
24
-
25
- _legacyBitId = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- function _componentIssue() {
33
- const data = require("./component-issue");
34
-
35
- _componentIssue = function () {
36
- return data;
37
- };
38
-
39
- return data;
40
- }
41
-
42
- class relativeComponentsAuthored extends _componentIssue().ComponentIssue {
43
- constructor(...args) {
44
- super(...args);
45
- (0, _defineProperty2().default)(this, "description", 'components with relative import statements found');
46
- (0, _defineProperty2().default)(this, "solution", 'replace to module paths or use "bit link --rewire" to replace');
47
- (0, _defineProperty2().default)(this, "data", {});
48
- (0, _defineProperty2().default)(this, "isCacheBlocker", false);
49
- (0, _defineProperty2().default)(this, "formatDataFunction", relativeComponentsAuthoredIssuesToString);
50
- }
51
-
52
- deserialize(dataStr) {
53
- const data = JSON.parse(dataStr);
54
- Object.keys(data).forEach(fileName => {
55
- data[fileName] = data[fileName].map(record => ({
56
- importSource: record.importSource,
57
- componentId: new (_legacyBitId().BitId)(record.componentId),
58
- relativePath: record.relativePath
59
- }));
60
- });
61
- return data;
62
- }
63
-
64
- }
65
-
66
27
  exports.relativeComponentsAuthored = relativeComponentsAuthored;
67
-
68
28
  function relativeComponentsAuthoredIssuesToString(relativeEntries) {
69
- const stringifyEntry = entry => `"${entry.importSource}" (${entry.componentId.toString()})`;
70
-
71
- return relativeEntries.map(stringifyEntry).join(', ');
29
+ const stringifyEntry = (entry) => `"${entry.importSource}" (${entry.componentId.toString()})`;
30
+ return relativeEntries.map(stringifyEntry).join(', ');
72
31
  }
73
-
74
32
  //# sourceMappingURL=relative-components-authored.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["relative-components-authored.ts"],"names":["relativeComponentsAuthored","ComponentIssue","relativeComponentsAuthoredIssuesToString","deserialize","dataStr","data","JSON","parse","Object","keys","forEach","fileName","map","record","importSource","componentId","BitId","relativePath","relativeEntries","stringifyEntry","entry","toString","join"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAWO,MAAMA,0BAAN,SAAyCC,gCAAzC,CAAwD;AAAA;AAAA;AAAA,yDAC/C,kDAD+C;AAAA,sDAElD,+DAFkD;AAAA,kDAGK,EAHL;AAAA,4DAI5C,KAJ4C;AAAA,gEAKxCC,wCALwC;AAAA;;AAO7DC,EAAAA,WAAW,CAACC,OAAD,EAAkB;AAC3B,UAAMC,IAAI,GAAGC,IAAI,CAACC,KAAL,CAAWH,OAAX,CAAb;AACAI,IAAAA,MAAM,CAACC,IAAP,CAAYJ,IAAZ,EAAkBK,OAAlB,CAA2BC,QAAD,IAAc;AACtCN,MAAAA,IAAI,CAACM,QAAD,CAAJ,GAAiBN,IAAI,CAACM,QAAD,CAAJ,CAAeC,GAAf,CAAoBC,MAAD,KAAa;AAC/CC,QAAAA,YAAY,EAAED,MAAM,CAACC,YAD0B;AAE/CC,QAAAA,WAAW,EAAE,KAAIC,oBAAJ,EAAUH,MAAM,CAACE,WAAjB,CAFkC;AAG/CE,QAAAA,YAAY,EAAEJ,MAAM,CAACI;AAH0B,OAAb,CAAnB,CAAjB;AAKD,KAND;AAOA,WAAOZ,IAAP;AACD;;AAjB4D;;;;AAoB/D,SAASH,wCAAT,CAAkDgB,eAAlD,EAAsG;AACpG,QAAMC,cAAc,GAAIC,KAAD,IACpB,IAAGA,KAAK,CAACN,YAAa,MAAKM,KAAK,CAACL,WAAN,CAAkBM,QAAlB,EAA6B,GAD3D;;AAEA,SAAOH,eAAe,CAACN,GAAhB,CAAoBO,cAApB,EAAoCG,IAApC,CAAyC,IAAzC,CAAP;AACD","sourcesContent":["import { BitId } from '@teambit/legacy-bit-id';\nimport { ComponentIssue } from './component-issue';\n\nexport type RelativeComponentsAuthoredEntry = {\n importSource: string;\n componentId: BitId;\n relativePath: {\n sourceRelativePath: string;\n importSpecifiers?: any[];\n };\n};\n\nexport class relativeComponentsAuthored extends ComponentIssue {\n description = 'components with relative import statements found';\n solution = 'replace to module paths or use \"bit link --rewire\" to replace';\n data: { [fileName: string]: RelativeComponentsAuthoredEntry[] } = {};\n isCacheBlocker = false;\n formatDataFunction = relativeComponentsAuthoredIssuesToString;\n\n deserialize(dataStr: string) {\n const data = JSON.parse(dataStr);\n Object.keys(data).forEach((fileName) => {\n data[fileName] = data[fileName].map((record) => ({\n importSource: record.importSource,\n componentId: new BitId(record.componentId),\n relativePath: record.relativePath,\n }));\n });\n return data;\n }\n}\n\nfunction relativeComponentsAuthoredIssuesToString(relativeEntries: RelativeComponentsAuthoredEntry[]) {\n const stringifyEntry = (entry: RelativeComponentsAuthoredEntry) =>\n `\"${entry.importSource}\" (${entry.componentId.toString()})`;\n return relativeEntries.map(stringifyEntry).join(', ');\n}\n"]}
1
+ {"version":3,"file":"relative-components-authored.js","sourceRoot":"","sources":["../relative-components-authored.ts"],"names":[],"mappings":";;;AAAA,0DAA+C;AAC/C,uDAAmD;AAWnD,MAAa,0BAA2B,SAAQ,gCAAc;IAA9D;;QACE,gBAAW,GAAG,kDAAkD,CAAC;QACjE,aAAQ,GAAG,+DAA+D,CAAC;QAC3E,SAAI,GAA8D,EAAE,CAAC;QACrE,mBAAc,GAAG,KAAK,CAAC;QACvB,uBAAkB,GAAG,wCAAwC,CAAC;IAahE,CAAC;IAXC,WAAW,CAAC,OAAe;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACjC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC/C,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,WAAW,EAAE,IAAI,qBAAK,CAAC,MAAM,CAAC,WAAW,CAAC;gBAC1C,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAC,CAAC,CAAC;QACN,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlBD,gEAkBC;AAED,SAAS,wCAAwC,CAAC,eAAkD;IAClG,MAAM,cAAc,GAAG,CAAC,KAAsC,EAAE,EAAE,CAChE,IAAI,KAAK,CAAC,YAAY,MAAM,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC;IAC9D,OAAO,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC"}
@@ -1,49 +1,18 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
10
3
  exports.relativeComponents = void 0;
11
-
12
- function _defineProperty2() {
13
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
- _defineProperty2 = function () {
16
- return data;
17
- };
18
-
19
- return data;
4
+ const component_issue_1 = require("./component-issue");
5
+ class relativeComponents extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'components with relative import statements found';
9
+ this.solution = 'use module paths for imported components';
10
+ this.data = {};
11
+ this.isCacheBlocker = false;
12
+ }
13
+ deserialize(data) {
14
+ return (0, component_issue_1.deserializeWithBitId)(data);
15
+ }
20
16
  }
21
-
22
- function _componentIssue() {
23
- const data = require("./component-issue");
24
-
25
- _componentIssue = function () {
26
- return data;
27
- };
28
-
29
- return data;
30
- }
31
-
32
- class relativeComponents extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'components with relative import statements found');
36
- (0, _defineProperty2().default)(this, "solution", 'use module paths for imported components');
37
- (0, _defineProperty2().default)(this, "data", {});
38
- (0, _defineProperty2().default)(this, "isCacheBlocker", false);
39
- }
40
-
41
- deserialize(data) {
42
- return (0, _componentIssue().deserializeWithBitId)(data);
43
- }
44
-
45
- }
46
-
47
17
  exports.relativeComponents = relativeComponents;
48
-
49
18
  //# sourceMappingURL=relative-components.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["relative-components.ts"],"names":["relativeComponents","ComponentIssue","deserialize","data"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,kBAAN,SAAiCC,gCAAjC,CAAgD;AAAA;AAAA;AAAA,yDACvC,kDADuC;AAAA,sDAE1C,0CAF0C;AAAA,kDAGb,EAHa;AAAA,4DAIpC,KAJoC;AAAA;;AAKrDC,EAAAA,WAAW,CAACC,IAAD,EAAe;AACxB,WAAO,4CAAqBA,IAArB,CAAP;AACD;;AAPoD","sourcesContent":["import { BitId } from '@teambit/legacy-bit-id';\nimport { ComponentIssue, deserializeWithBitId } from './component-issue';\n\nexport class relativeComponents extends ComponentIssue {\n description = 'components with relative import statements found';\n solution = 'use module paths for imported components';\n data: { [filePath: string]: BitId[] } = {};\n isCacheBlocker = false;\n deserialize(data: string) {\n return deserializeWithBitId(data);\n }\n}\n"]}
1
+ {"version":3,"file":"relative-components.js","sourceRoot":"","sources":["../relative-components.ts"],"names":[],"mappings":";;;AACA,uDAAyE;AAEzE,MAAa,kBAAmB,SAAQ,gCAAc;IAAtD;;QACE,gBAAW,GAAG,kDAAkD,CAAC;QACjE,aAAQ,GAAG,0CAA0C,CAAC;QACtD,SAAI,GAAoC,EAAE,CAAC;QAC3C,mBAAc,GAAG,KAAK,CAAC;IAIzB,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AARD,gDAQC"}