@teambit/component-issues 0.0.153 → 0.0.155

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 (55) hide show
  1. package/dist/circular-dependencies.js +19 -12
  2. package/dist/circular-dependencies.js.map +1 -1
  3. package/dist/component-issue.js +68 -55
  4. package/dist/component-issue.js.map +1 -1
  5. package/dist/deprecated-dependencies.js +20 -12
  6. package/dist/deprecated-dependencies.js.map +1 -1
  7. package/dist/duplicate-component-and-package.js +19 -12
  8. package/dist/duplicate-component-and-package.js.map +1 -1
  9. package/dist/external-env-without-version.js +22 -15
  10. package/dist/external-env-without-version.js.map +1 -1
  11. package/dist/import-from-directory.js +18 -11
  12. package/dist/import-from-directory.js.map +1 -1
  13. package/dist/import-non-main-files.js +17 -10
  14. package/dist/import-non-main-files.js.map +1 -1
  15. package/dist/index.js +81 -10
  16. package/dist/index.js.map +1 -1
  17. package/dist/issues-list.js +292 -140
  18. package/dist/issues-list.js.map +1 -1
  19. package/dist/legacy-inside-harmony.js +19 -12
  20. package/dist/legacy-inside-harmony.js.map +1 -1
  21. package/dist/merge-config-has-conflict.js +19 -12
  22. package/dist/merge-config-has-conflict.js.map +1 -1
  23. package/dist/missing-dependencies-on-fs.js +16 -9
  24. package/dist/missing-dependencies-on-fs.js.map +1 -1
  25. package/dist/missing-dists.js +19 -12
  26. package/dist/missing-dists.js.map +1 -1
  27. package/dist/missing-links-from-nm-to-src.js +19 -12
  28. package/dist/missing-links-from-nm-to-src.js.map +1 -1
  29. package/dist/missing-manually-configured-packages.js +19 -12
  30. package/dist/missing-manually-configured-packages.js.map +1 -1
  31. package/dist/missing-packages-dependencies-on-fs.js +19 -14
  32. package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
  33. package/dist/multiple-envs.js +20 -12
  34. package/dist/multiple-envs.js.map +1 -1
  35. package/dist/non-loaded-env.js +19 -12
  36. package/dist/non-loaded-env.js.map +1 -1
  37. package/dist/parse-errors.js +16 -9
  38. package/dist/parse-errors.js.map +1 -1
  39. package/dist/relative-components-authored.js +49 -36
  40. package/dist/relative-components-authored.js.map +1 -1
  41. package/dist/relative-components.js +20 -13
  42. package/dist/relative-components.js.map +1 -1
  43. package/dist/removed-dependencies.js +20 -12
  44. package/dist/removed-dependencies.js.map +1 -1
  45. package/dist/removed-env.js +20 -12
  46. package/dist/removed-env.js.map +1 -1
  47. package/dist/resolve-errors.js +16 -9
  48. package/dist/resolve-errors.js.map +1 -1
  49. package/dist/self-reference.js +17 -10
  50. package/dist/self-reference.js.map +1 -1
  51. package/dist/untracked-dependencies.js +41 -32
  52. package/dist/untracked-dependencies.js.map +1 -1
  53. package/package.json +20 -6
  54. package/types/asset.d.ts +15 -3
  55. package/dist/preview-1736711473672.js +0 -7
@@ -1,17 +1,24 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingDists = void 0;
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
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class MissingDists extends _componentIssue().ComponentIssue {
15
+ description = 'missing dists';
16
+ solution = 'run "bit compile"';
17
+ isTagBlocker = false;
18
+ outputForCLI() {
19
+ return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
20
+ }
15
21
  }
16
22
  exports.MissingDists = MissingDists;
23
+
17
24
  //# sourceMappingURL=missing-dists.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["_componentIssue","data","require","MissingDists","ComponentIssue","description","solution","isTagBlocker","outputForCLI","formatTitle","descriptionWithSolution","exports"],"sources":["missing-dists.ts"],"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"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,YAAY,SAASC,gCAAc,CAAC;EAC/CC,WAAW,GAAG,eAAe;EAC7BC,QAAQ,GAAG,mBAAmB;EAE9BC,YAAY,GAAG,KAAK;EACpBC,YAAYA,CAAA,EAAG;IACb,OAAO,IAAAC,6BAAW,EAAC,IAAI,CAACC,uBAAuB,EAAE,KAAK,CAAC;EACzD;AACF;AAACC,OAAA,CAAAR,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1,17 +1,24 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingLinksFromNodeModulesToSrc = void 0;
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
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class MissingLinksFromNodeModulesToSrc extends _componentIssue().ComponentIssue {
15
+ description = 'missing links from node_modules to source';
16
+ solution = 'run "bit link"';
17
+ isTagBlocker = false;
18
+ outputForCLI() {
19
+ return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
20
+ }
15
21
  }
16
22
  exports.MissingLinksFromNodeModulesToSrc = MissingLinksFromNodeModulesToSrc;
23
+
17
24
  //# sourceMappingURL=missing-links-from-nm-to-src.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["_componentIssue","data","require","MissingLinksFromNodeModulesToSrc","ComponentIssue","description","solution","isTagBlocker","outputForCLI","formatTitle","descriptionWithSolution","exports"],"sources":["missing-links-from-nm-to-src.ts"],"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"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,gCAAgC,SAASC,gCAAc,CAAC;EACnEC,WAAW,GAAG,2CAA2C;EACzDC,QAAQ,GAAG,gBAAgB;EAE3BC,YAAY,GAAG,KAAK;EACpBC,YAAYA,CAAA,EAAG;IACb,OAAO,IAAAC,6BAAW,EAAC,IAAI,CAACC,uBAAuB,EAAE,KAAK,CAAC;EACzD;AACF;AAACC,OAAA,CAAAR,gCAAA,GAAAA,gCAAA","ignoreList":[]}
@@ -1,17 +1,24 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingManuallyConfiguredPackages = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingManuallyConfiguredPackages extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = `missing packages that were manually set`;
9
- this.solution = `run "bit install"`;
10
- this.data = []; // package names
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class MissingManuallyConfiguredPackages extends _componentIssue().ComponentIssue {
15
+ description = `missing packages that were manually set`;
16
+ solution = `run "bit install"`;
17
+ data = []; // package names
18
+ dataToString() {
19
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
20
+ }
15
21
  }
16
22
  exports.MissingManuallyConfiguredPackages = MissingManuallyConfiguredPackages;
23
+
17
24
  //# sourceMappingURL=missing-manually-configured-packages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-manually-configured-packages.js","sourceRoot":"","sources":["../missing-manually-configured-packages.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,iCAAkC,SAAQ,gCAAc;IAArE;;QACE,gBAAW,GAAG,yCAAyC,CAAC;QACxD,aAAQ,GAAG,mBAAmB,CAAC;QAC/B,SAAI,GAAa,EAAE,CAAC,CAAC,gBAAgB;IAIvC,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AAPD,8EAOC"}
1
+ {"version":3,"names":["_componentIssue","data","require","MissingManuallyConfiguredPackages","ComponentIssue","description","solution","dataToString","ISSUE_FORMAT_SPACE","join","exports"],"sources":["missing-manually-configured-packages.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class MissingManuallyConfiguredPackages extends ComponentIssue {\n description = `missing packages that were manually set`;\n solution = `run \"bit install\"`;\n data: string[] = []; // package names\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data.join(', ');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,iCAAiC,SAASC,gCAAc,CAAC;EACpEC,WAAW,GAAG,yCAAyC;EACvDC,QAAQ,GAAG,mBAAmB;EAC9BL,IAAI,GAAa,EAAE,CAAC,CAAC;EACrBM,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAACP,IAAI,CAACQ,IAAI,CAAC,IAAI,CAAC;EAClD;AACF;AAACC,OAAA,CAAAP,iCAAA,GAAAA,iCAAA","ignoreList":[]}
@@ -1,19 +1,24 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingPackagesDependenciesOnFs = void 0;
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 --add-missing-deps" to fix both issues`;
10
- this.data = [];
11
- }
12
- dataToString() {
13
- return this.data
14
- .map((d) => `${component_issue_1.ISSUE_FORMAT_SPACE}${d.filePath} -> ${this.formatDataFunction(d.missingPackages)}`)
15
- .join('\n');
16
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class MissingPackagesDependenciesOnFs extends _componentIssue().ComponentIssue {
15
+ description = `missing packages or links from node_modules to the source`;
16
+ solution = `run "bit install --add-missing-deps" to fix both issues`;
17
+ data = [];
18
+ dataToString() {
19
+ return this.data.map(d => `${_componentIssue().ISSUE_FORMAT_SPACE}${d.filePath} -> ${this.formatDataFunction(d.missingPackages)}`).join('\n');
20
+ }
17
21
  }
18
22
  exports.MissingPackagesDependenciesOnFs = MissingPackagesDependenciesOnFs;
23
+
19
24
  //# sourceMappingURL=missing-packages-dependencies-on-fs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-packages-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-packages-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAQvE,MAAa,+BAAgC,SAAQ,gCAAc;IAAnE;;QACE,gBAAW,GAAG,2DAA2D,CAAC;QAC1E,aAAQ,GAAG,yDAAyD,CAAC;QACrE,SAAI,GAA0B,EAAE,CAAC;IAMnC,CAAC;IALC,YAAY;QACV,OAAO,IAAI,CAAC,IAAI;aACb,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,oCAAkB,GAAG,CAAC,CAAC,QAAQ,OAAO,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;aACjG,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;CACF;AATD,0EASC"}
1
+ {"version":3,"names":["_componentIssue","data","require","MissingPackagesDependenciesOnFs","ComponentIssue","description","solution","dataToString","map","d","ISSUE_FORMAT_SPACE","filePath","formatDataFunction","missingPackages","join","exports"],"sources":["missing-packages-dependencies-on-fs.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport type MissingPackagesData = {\n filePath: string;\n isDevFile: boolean;\n missingPackages: string[];\n};\n\nexport class MissingPackagesDependenciesOnFs extends ComponentIssue {\n description = `missing packages or links from node_modules to the source`;\n solution = `run \"bit install --add-missing-deps\" to fix both issues`;\n data: MissingPackagesData[] = [];\n dataToString(): string {\n return this.data\n .map((d) => `${ISSUE_FORMAT_SPACE}${d.filePath} -> ${this.formatDataFunction(d.missingPackages)}`)\n .join('\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQO,MAAME,+BAA+B,SAASC,gCAAc,CAAC;EAClEC,WAAW,GAAG,2DAA2D;EACzEC,QAAQ,GAAG,yDAAyD;EACpEL,IAAI,GAA0B,EAAE;EAChCM,YAAYA,CAAA,EAAW;IACrB,OAAO,IAAI,CAACN,IAAI,CACbO,GAAG,CAAEC,CAAC,IAAK,GAAGC,oCAAkB,GAAGD,CAAC,CAACE,QAAQ,OAAO,IAAI,CAACC,kBAAkB,CAACH,CAAC,CAACI,eAAe,CAAC,EAAE,CAAC,CACjGC,IAAI,CAAC,IAAI,CAAC;EACf;AACF;AAACC,OAAA,CAAAZ,+BAAA,GAAAA,+BAAA","ignoreList":[]}
@@ -1,17 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MultipleEnvs = void 0;
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 = '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
- this.isTagBlocker = true;
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class MultipleEnvs extends _componentIssue().ComponentIssue {
15
+ description = 'multiple envs';
16
+ 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>"';
17
+ // env ids
18
+ isTagBlocker = true;
19
+ dataToString() {
20
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
21
+ }
15
22
  }
16
23
  exports.MultipleEnvs = MultipleEnvs;
24
+
17
25
  //# sourceMappingURL=multiple-envs.js.map
@@ -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,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"}
1
+ {"version":3,"names":["_componentIssue","data","require","MultipleEnvs","ComponentIssue","description","solution","isTagBlocker","dataToString","ISSUE_FORMAT_SPACE","join","exports"],"sources":["multiple-envs.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class MultipleEnvs extends ComponentIssue {\n description = 'multiple envs';\n solution =\n '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>\"';\n data: string[]; // env ids\n isTagBlocker = true;\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data.join(', ');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,YAAY,SAASC,gCAAc,CAAC;EAC/CC,WAAW,GAAG,eAAe;EAC7BC,QAAQ,GACN,yMAAyM;EAC3L;EAChBC,YAAY,GAAG,IAAI;EACnBC,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAACR,IAAI,CAACS,IAAI,CAAC,IAAI,CAAC;EAClD;AACF;AAACC,OAAA,CAAAR,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1,17 +1,24 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.NonLoadedEnv = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class NonLoadedEnv extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'failed loading env';
9
- this.solution = `run "bit install"`;
10
- this.isTagBlocker = true;
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data;
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class NonLoadedEnv extends _componentIssue().ComponentIssue {
15
+ description = 'failed loading env';
16
+ solution = `run "bit install"`;
17
+ isTagBlocker = true;
18
+ dataToString() {
19
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data;
20
+ }
15
21
  }
16
22
  exports.NonLoadedEnv = NonLoadedEnv;
23
+
17
24
  //# sourceMappingURL=non-loaded-env.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"non-loaded-env.js","sourceRoot":"","sources":["../non-loaded-env.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,oBAAoB,CAAC;QACnC,aAAQ,GAAG,mBAAmB,CAAC;QAE/B,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC;IACxC,CAAC;CACF;AARD,oCAQC"}
1
+ {"version":3,"names":["_componentIssue","data","require","NonLoadedEnv","ComponentIssue","description","solution","isTagBlocker","dataToString","ISSUE_FORMAT_SPACE","exports"],"sources":["non-loaded-env.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class NonLoadedEnv extends ComponentIssue {\n description = 'failed loading env';\n solution = `run \"bit install\"`;\n data: string;\n isTagBlocker = true;\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,YAAY,SAASC,gCAAc,CAAC;EAC/CC,WAAW,GAAG,oBAAoB;EAClCC,QAAQ,GAAG,mBAAmB;EAE9BC,YAAY,GAAG,IAAI;EACnBC,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAACR,IAAI;EACvC;AACF;AAACS,OAAA,CAAAP,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1,14 +1,21 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.ParseErrors = void 0;
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
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class ParseErrors extends _componentIssue().ComponentIssue {
15
+ description = 'error found while parsing the file';
16
+ solution = 'edit the file and fix the parsing error';
17
+ data = {};
12
18
  }
13
19
  exports.ParseErrors = ParseErrors;
20
+
14
21
  //# sourceMappingURL=parse-errors.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["_componentIssue","data","require","ParseErrors","ComponentIssue","description","solution","exports"],"sources":["parse-errors.ts"],"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"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,WAAW,SAASC,gCAAc,CAAC;EAC9CC,WAAW,GAAG,oCAAoC;EAClDC,QAAQ,GAAG,yCAAyC;EACpDL,IAAI,GAAmC,CAAC,CAAC;AAC3C;AAACM,OAAA,CAAAJ,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -1,43 +1,56 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.RelativeComponentsAuthored = void 0;
4
- const component_id_1 = require("@teambit/component-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
- serialize() {
16
- const obj = Object.keys(this.data).reduce((acc, fileName) => {
17
- acc[fileName] = this.data[fileName].map((record) => ({
18
- importSource: record.importSource,
19
- componentId: record.componentId.serialize(),
20
- relativePath: record.relativePath,
21
- }));
22
- return acc;
23
- }, {});
24
- return JSON.stringify(obj);
25
- }
26
- deserialize(dataStr) {
27
- const data = JSON.parse(dataStr);
28
- Object.keys(data).forEach((fileName) => {
29
- data[fileName] = data[fileName].map((record) => ({
30
- importSource: record.importSource,
31
- componentId: component_id_1.ComponentID.deserialize(record.componentId),
32
- relativePath: record.relativePath,
33
- }));
34
- });
35
- return data;
36
- }
7
+ function _componentId() {
8
+ const data = require("@teambit/component-id");
9
+ _componentId = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _componentIssue() {
15
+ const data = require("./component-issue");
16
+ _componentIssue = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
21
+ class RelativeComponentsAuthored extends _componentIssue().ComponentIssue {
22
+ description = 'components with relative import statements found';
23
+ solution = 'replace to module paths or use "bit link --rewire" to replace';
24
+ data = {};
25
+ isCacheBlocker = false;
26
+ formatDataFunction = relativeComponentsAuthoredIssuesToString;
27
+ serialize() {
28
+ const obj = Object.keys(this.data).reduce((acc, fileName) => {
29
+ acc[fileName] = this.data[fileName].map(record => ({
30
+ importSource: record.importSource,
31
+ componentId: record.componentId.serialize(),
32
+ relativePath: record.relativePath
33
+ }));
34
+ return acc;
35
+ }, {});
36
+ return JSON.stringify(obj);
37
+ }
38
+ deserialize(dataStr) {
39
+ const data = JSON.parse(dataStr);
40
+ Object.keys(data).forEach(fileName => {
41
+ data[fileName] = data[fileName].map(record => ({
42
+ importSource: record.importSource,
43
+ componentId: _componentId().ComponentID.deserialize(record.componentId),
44
+ relativePath: record.relativePath
45
+ }));
46
+ });
47
+ return data;
48
+ }
37
49
  }
38
50
  exports.RelativeComponentsAuthored = RelativeComponentsAuthored;
39
51
  function relativeComponentsAuthoredIssuesToString(relativeEntries) {
40
- const stringifyEntry = (entry) => `"${entry.importSource}" (${entry.componentId.toString()})`;
41
- return relativeEntries.map(stringifyEntry).join(', ');
52
+ const stringifyEntry = entry => `"${entry.importSource}" (${entry.componentId.toString()})`;
53
+ return relativeEntries.map(stringifyEntry).join(', ');
42
54
  }
55
+
43
56
  //# sourceMappingURL=relative-components-authored.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"relative-components-authored.js","sourceRoot":"","sources":["../relative-components-authored.ts"],"names":[],"mappings":";;;AAAA,wDAAoD;AACpD,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;IAyBhE,CAAC;IAvBC,SAAS;QACP,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;YAC1D,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACnD,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE;gBAC3C,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAC,CAAC,CAAC;YACJ,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,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,0BAAW,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;gBACxD,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAC,CAAC,CAAC;QACN,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA9BD,gEA8BC;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
+ {"version":3,"names":["_componentId","data","require","_componentIssue","RelativeComponentsAuthored","ComponentIssue","description","solution","isCacheBlocker","formatDataFunction","relativeComponentsAuthoredIssuesToString","serialize","obj","Object","keys","reduce","acc","fileName","map","record","importSource","componentId","relativePath","JSON","stringify","deserialize","dataStr","parse","forEach","ComponentID","exports","relativeEntries","stringifyEntry","entry","toString","join"],"sources":["relative-components-authored.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { ComponentIssue } from './component-issue';\n\nexport type RelativeComponentsAuthoredEntry = {\n importSource: string;\n componentId: ComponentID;\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 serialize(): string {\n const obj = Object.keys(this.data).reduce((acc, fileName) => {\n acc[fileName] = this.data[fileName].map((record) => ({\n importSource: record.importSource,\n componentId: record.componentId.serialize(),\n relativePath: record.relativePath,\n }));\n return acc;\n }, {});\n return JSON.stringify(obj);\n }\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: ComponentID.deserialize(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"],"mappings":";;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,gBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAWO,MAAMG,0BAA0B,SAASC,gCAAc,CAAC;EAC7DC,WAAW,GAAG,kDAAkD;EAChEC,QAAQ,GAAG,+DAA+D;EAC1EN,IAAI,GAA8D,CAAC,CAAC;EACpEO,cAAc,GAAG,KAAK;EACtBC,kBAAkB,GAAGC,wCAAwC;EAE7DC,SAASA,CAAA,EAAW;IAClB,MAAMC,GAAG,GAAGC,MAAM,CAACC,IAAI,CAAC,IAAI,CAACb,IAAI,CAAC,CAACc,MAAM,CAAC,CAACC,GAAG,EAAEC,QAAQ,KAAK;MAC3DD,GAAG,CAACC,QAAQ,CAAC,GAAG,IAAI,CAAChB,IAAI,CAACgB,QAAQ,CAAC,CAACC,GAAG,CAAEC,MAAM,KAAM;QACnDC,YAAY,EAAED,MAAM,CAACC,YAAY;QACjCC,WAAW,EAAEF,MAAM,CAACE,WAAW,CAACV,SAAS,CAAC,CAAC;QAC3CW,YAAY,EAAEH,MAAM,CAACG;MACvB,CAAC,CAAC,CAAC;MACH,OAAON,GAAG;IACZ,CAAC,EAAE,CAAC,CAAC,CAAC;IACN,OAAOO,IAAI,CAACC,SAAS,CAACZ,GAAG,CAAC;EAC5B;EAEAa,WAAWA,CAACC,OAAe,EAAE;IAC3B,MAAMzB,IAAI,GAAGsB,IAAI,CAACI,KAAK,CAACD,OAAO,CAAC;IAChCb,MAAM,CAACC,IAAI,CAACb,IAAI,CAAC,CAAC2B,OAAO,CAAEX,QAAQ,IAAK;MACtChB,IAAI,CAACgB,QAAQ,CAAC,GAAGhB,IAAI,CAACgB,QAAQ,CAAC,CAACC,GAAG,CAAEC,MAAM,KAAM;QAC/CC,YAAY,EAAED,MAAM,CAACC,YAAY;QACjCC,WAAW,EAAEQ,0BAAW,CAACJ,WAAW,CAACN,MAAM,CAACE,WAAW,CAAC;QACxDC,YAAY,EAAEH,MAAM,CAACG;MACvB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IACF,OAAOrB,IAAI;EACb;AACF;AAAC6B,OAAA,CAAA1B,0BAAA,GAAAA,0BAAA;AAED,SAASM,wCAAwCA,CAACqB,eAAkD,EAAE;EACpG,MAAMC,cAAc,GAAIC,KAAsC,IAC5D,IAAIA,KAAK,CAACb,YAAY,MAAMa,KAAK,CAACZ,WAAW,CAACa,QAAQ,CAAC,CAAC,GAAG;EAC7D,OAAOH,eAAe,CAACb,GAAG,CAACc,cAAc,CAAC,CAACG,IAAI,CAAC,IAAI,CAAC;AACvD","ignoreList":[]}
@@ -1,18 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.RelativeComponents = void 0;
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
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class RelativeComponents extends _componentIssue().ComponentIssue {
15
+ description = 'components with relative import statements found';
16
+ solution = 'use module paths for imported components';
17
+ data = {};
18
+ isCacheBlocker = false;
19
+ deserialize(data) {
20
+ return (0, _componentIssue().deserializeWithBitId)(data);
21
+ }
16
22
  }
17
23
  exports.RelativeComponents = RelativeComponents;
24
+
18
25
  //# sourceMappingURL=relative-components.js.map
@@ -1 +1 @@
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,GAA0C,EAAE,CAAC;QACjD,mBAAc,GAAG,KAAK,CAAC;IAIzB,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AARD,gDAQC"}
1
+ {"version":3,"names":["_componentIssue","data","require","RelativeComponents","ComponentIssue","description","solution","isCacheBlocker","deserialize","deserializeWithBitId","exports"],"sources":["relative-components.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-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]: ComponentID[] } = {};\n isCacheBlocker = false;\n deserialize(data: string) {\n return deserializeWithBitId(data);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,kBAAkB,SAASC,gCAAc,CAAC;EACrDC,WAAW,GAAG,kDAAkD;EAChEC,QAAQ,GAAG,0CAA0C;EACrDL,IAAI,GAA0C,CAAC,CAAC;EAChDM,cAAc,GAAG,KAAK;EACtBC,WAAWA,CAACP,IAAY,EAAE;IACxB,OAAO,IAAAQ,sCAAoB,EAACR,IAAI,CAAC;EACnC;AACF;AAACS,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1,17 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.RemovedDependencies = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class RemovedDependencies extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'dependencies used in the code were deleted';
9
- this.solution = 'if the dependencies are no longer needed, remove them from the code. otherwise, to get it installed from main run "bit install <missing dep>". to undo the delete, run "bit recover"';
10
- this.isTagBlocker = true;
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class RemovedDependencies extends _componentIssue().ComponentIssue {
15
+ description = 'dependencies used in the code were deleted';
16
+ solution = 'if the dependencies are no longer needed, remove them from the code. otherwise, to get it installed from main run "bit install <missing dep>". to undo the delete, run "bit recover"';
17
+ // deps ids
18
+ isTagBlocker = true;
19
+ dataToString() {
20
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
21
+ }
15
22
  }
16
23
  exports.RemovedDependencies = RemovedDependencies;
24
+
17
25
  //# sourceMappingURL=removed-dependencies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removed-dependencies.js","sourceRoot":"","sources":["../removed-dependencies.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,mBAAoB,SAAQ,gCAAc;IAAvD;;QACE,gBAAW,GAAG,4CAA4C,CAAC;QAC3D,aAAQ,GACN,sLAAsL,CAAC;QAEzL,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,kDASC"}
1
+ {"version":3,"names":["_componentIssue","data","require","RemovedDependencies","ComponentIssue","description","solution","isTagBlocker","dataToString","ISSUE_FORMAT_SPACE","join","exports"],"sources":["removed-dependencies.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class RemovedDependencies extends ComponentIssue {\n description = 'dependencies used in the code were deleted';\n solution =\n 'if the dependencies are no longer needed, remove them from the code. otherwise, to get it installed from main run \"bit install <missing dep>\". to undo the delete, run \"bit recover\"';\n data: string[]; // deps ids\n isTagBlocker = true;\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data.join(', ');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,mBAAmB,SAASC,gCAAc,CAAC;EACtDC,WAAW,GAAG,4CAA4C;EAC1DC,QAAQ,GACN,sLAAsL;EACxK;EAChBC,YAAY,GAAG,IAAI;EACnBC,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAACR,IAAI,CAACS,IAAI,CAAC,IAAI,CAAC;EAClD;AACF;AAACC,OAAA,CAAAR,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1,17 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.RemovedEnv = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class RemovedEnv extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'the env of this component is deleted';
9
- this.solution = 'use "bit env set/replace" to set a new env or a different version of this env. to undo the delete, run "bit recover"';
10
- this.isTagBlocker = true;
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data;
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class RemovedEnv extends _componentIssue().ComponentIssue {
15
+ description = 'the env of this component is deleted';
16
+ solution = 'use "bit env set/replace" to set a new env or a different version of this env. to undo the delete, run "bit recover"';
17
+ // env id
18
+ isTagBlocker = true;
19
+ dataToString() {
20
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data;
21
+ }
15
22
  }
16
23
  exports.RemovedEnv = RemovedEnv;
24
+
17
25
  //# sourceMappingURL=removed-env.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removed-env.js","sourceRoot":"","sources":["../removed-env.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,UAAW,SAAQ,gCAAc;IAA9C;;QACE,gBAAW,GAAG,sCAAsC,CAAC;QACrD,aAAQ,GACN,sHAAsH,CAAC;QAEzH,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC;IACxC,CAAC;CACF;AATD,gCASC"}
1
+ {"version":3,"names":["_componentIssue","data","require","RemovedEnv","ComponentIssue","description","solution","isTagBlocker","dataToString","ISSUE_FORMAT_SPACE","exports"],"sources":["removed-env.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class RemovedEnv extends ComponentIssue {\n description = 'the env of this component is deleted';\n solution =\n 'use \"bit env set/replace\" to set a new env or a different version of this env. to undo the delete, run \"bit recover\"';\n data: string; // env id\n isTagBlocker = true;\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,UAAU,SAASC,gCAAc,CAAC;EAC7CC,WAAW,GAAG,sCAAsC;EACpDC,QAAQ,GACN,sHAAsH;EAC1G;EACdC,YAAY,GAAG,IAAI;EACnBC,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAACR,IAAI;EACvC;AACF;AAACS,OAAA,CAAAP,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -1,14 +1,21 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.ResolveErrors = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class ResolveErrors extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'error found while resolving the file dependencies';
9
- this.solution = 'see the log for the full error';
10
- this.data = {};
11
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ class ResolveErrors extends _componentIssue().ComponentIssue {
15
+ description = 'error found while resolving the file dependencies';
16
+ solution = 'see the log for the full error';
17
+ data = {};
12
18
  }
13
19
  exports.ResolveErrors = ResolveErrors;
20
+
14
21
  //# sourceMappingURL=resolve-errors.js.map