@teambit/component-issues 0.0.41 → 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 +9 -36
  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.41.tgz +0 -0
@@ -0,0 +1,63 @@
1
+ import chalk from 'chalk';
2
+ import { BitId } from '@teambit/legacy-bit-id';
3
+
4
+ export type StringsPerFilePath = { [filePath: string]: string[] };
5
+
6
+ export const ISSUE_FORMAT_SPACE_COUNT = 10;
7
+ export const ISSUE_FORMAT_SPACE = ' '.repeat(ISSUE_FORMAT_SPACE_COUNT);
8
+
9
+ export class ComponentIssue {
10
+ description: string; // issue description
11
+ solution: string; // suggest how to fix the issue
12
+ data: any;
13
+ isTagBlocker = true; // if true, it stops the tag process and shows the issue
14
+ isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
15
+ formatDataFunction: FormatIssueFunc = componentIssueToString;
16
+ get descriptionWithSolution() {
17
+ const solution = this.solution ? ` (${this.solution})` : '';
18
+ return `${this.description}${solution}`;
19
+ }
20
+ outputForCLI(): string {
21
+ return formatTitle(this.descriptionWithSolution) + chalk.white(this.dataToString());
22
+ }
23
+ dataToString(): string {
24
+ return Object.keys(this.data)
25
+ .map((k) => {
26
+ return `${ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`;
27
+ })
28
+ .join('\n');
29
+ }
30
+ toObject() {
31
+ return {
32
+ type: this.constructor.name,
33
+ description: this.description,
34
+ solution: this.solution,
35
+ data: this.data,
36
+ };
37
+ }
38
+ serialize(): string {
39
+ return JSON.stringify(this.data);
40
+ }
41
+ deserialize(data: string) {
42
+ return JSON.parse(data);
43
+ }
44
+ }
45
+
46
+ export function formatTitle(issueTitle: string, hasMoreData = true): string {
47
+ const colon = hasMoreData ? ':' : '';
48
+ return chalk.yellow(`\n ${issueTitle}${colon} \n`);
49
+ }
50
+
51
+ type FormatIssueFunc = (value: any) => string;
52
+
53
+ export function componentIssueToString(value: string[] | string) {
54
+ return Array.isArray(value) ? value.join(', ') : value;
55
+ }
56
+
57
+ export function deserializeWithBitId(dataStr: string) {
58
+ const data = JSON.parse(dataStr);
59
+ Object.keys(data).forEach((filePath) => {
60
+ data[filePath] = data[filePath].map((id) => new BitId(id));
61
+ });
62
+ return data;
63
+ }
@@ -0,0 +1,7 @@
1
+ import { ComponentIssue, StringsPerFilePath } from './component-issue';
2
+
3
+ export class CustomModuleResolutionUsed extends ComponentIssue {
4
+ description = 'component is using an unsupported resolve-modules (aka aliases) feature';
5
+ solution = 'replace to module paths';
6
+ data: StringsPerFilePath = {};
7
+ }
@@ -1,113 +1,64 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- require("core-js/modules/es.symbol.description.js");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.ISSUE_FORMAT_SPACE_COUNT = exports.ISSUE_FORMAT_SPACE = exports.ComponentIssue = void 0;
11
- exports.componentIssueToString = componentIssueToString;
12
- exports.deserializeWithBitId = deserializeWithBitId;
13
- exports.formatTitle = formatTitle;
14
-
15
- function _defineProperty2() {
16
- const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
-
18
- _defineProperty2 = function () {
19
- return data;
20
- };
21
-
22
- return data;
23
- }
24
-
25
- function _chalk() {
26
- const data = _interopRequireDefault(require("chalk"));
27
-
28
- _chalk = function () {
29
- return data;
30
- };
31
-
32
- return data;
33
- }
34
-
35
- function _legacyBitId() {
36
- const data = require("@teambit/legacy-bit-id");
37
-
38
- _legacyBitId = function () {
39
- return data;
40
- };
41
-
42
- return data;
43
- }
44
-
45
- const ISSUE_FORMAT_SPACE_COUNT = 10;
46
- exports.ISSUE_FORMAT_SPACE_COUNT = ISSUE_FORMAT_SPACE_COUNT;
47
- const ISSUE_FORMAT_SPACE = ' '.repeat(ISSUE_FORMAT_SPACE_COUNT);
48
- exports.ISSUE_FORMAT_SPACE = ISSUE_FORMAT_SPACE;
49
-
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.deserializeWithBitId = exports.componentIssueToString = exports.formatTitle = exports.ComponentIssue = exports.ISSUE_FORMAT_SPACE = exports.ISSUE_FORMAT_SPACE_COUNT = void 0;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const legacy_bit_id_1 = require("@teambit/legacy-bit-id");
9
+ exports.ISSUE_FORMAT_SPACE_COUNT = 10;
10
+ exports.ISSUE_FORMAT_SPACE = ' '.repeat(exports.ISSUE_FORMAT_SPACE_COUNT);
50
11
  class ComponentIssue {
51
- constructor() {
52
- (0, _defineProperty2().default)(this, "description", void 0);
53
- (0, _defineProperty2().default)(this, "solution", void 0);
54
- (0, _defineProperty2().default)(this, "data", void 0);
55
- (0, _defineProperty2().default)(this, "isTagBlocker", true);
56
- (0, _defineProperty2().default)(this, "isCacheBlocker", true);
57
- (0, _defineProperty2().default)(this, "formatDataFunction", componentIssueToString);
58
- }
59
-
60
- get descriptionWithSolution() {
61
- const solution = this.solution ? ` (${this.solution})` : '';
62
- return `${this.description}${solution}`;
63
- }
64
-
65
- outputForCLI() {
66
- return formatTitle(this.descriptionWithSolution) + _chalk().default.white(this.dataToString());
67
- }
68
-
69
- dataToString() {
70
- return Object.keys(this.data).map(k => {
71
- return `${ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`;
72
- }).join('\n');
73
- }
74
-
75
- toObject() {
76
- return {
77
- type: this.constructor.name,
78
- description: this.description,
79
- solution: this.solution,
80
- data: this.data
81
- };
82
- }
83
-
84
- serialize() {
85
- return JSON.stringify(this.data);
86
- }
87
-
88
- deserialize(data) {
89
- return JSON.parse(data);
90
- }
91
-
12
+ constructor() {
13
+ this.isTagBlocker = true; // if true, it stops the tag process and shows the issue
14
+ this.isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
15
+ this.formatDataFunction = componentIssueToString;
16
+ }
17
+ get descriptionWithSolution() {
18
+ const solution = this.solution ? ` (${this.solution})` : '';
19
+ return `${this.description}${solution}`;
20
+ }
21
+ outputForCLI() {
22
+ return formatTitle(this.descriptionWithSolution) + chalk_1.default.white(this.dataToString());
23
+ }
24
+ dataToString() {
25
+ return Object.keys(this.data)
26
+ .map((k) => {
27
+ return `${exports.ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`;
28
+ })
29
+ .join('\n');
30
+ }
31
+ toObject() {
32
+ return {
33
+ type: this.constructor.name,
34
+ description: this.description,
35
+ solution: this.solution,
36
+ data: this.data,
37
+ };
38
+ }
39
+ serialize() {
40
+ return JSON.stringify(this.data);
41
+ }
42
+ deserialize(data) {
43
+ return JSON.parse(data);
44
+ }
92
45
  }
93
-
94
46
  exports.ComponentIssue = ComponentIssue;
95
-
96
47
  function formatTitle(issueTitle, hasMoreData = true) {
97
- const colon = hasMoreData ? ':' : '';
98
- return _chalk().default.yellow(`\n ${issueTitle}${colon} \n`);
48
+ const colon = hasMoreData ? ':' : '';
49
+ return chalk_1.default.yellow(`\n ${issueTitle}${colon} \n`);
99
50
  }
100
-
51
+ exports.formatTitle = formatTitle;
101
52
  function componentIssueToString(value) {
102
- return Array.isArray(value) ? value.join(', ') : value;
53
+ return Array.isArray(value) ? value.join(', ') : value;
103
54
  }
104
-
55
+ exports.componentIssueToString = componentIssueToString;
105
56
  function deserializeWithBitId(dataStr) {
106
- const data = JSON.parse(dataStr);
107
- Object.keys(data).forEach(filePath => {
108
- data[filePath] = data[filePath].map(id => new (_legacyBitId().BitId)(id));
109
- });
110
- return data;
57
+ const data = JSON.parse(dataStr);
58
+ Object.keys(data).forEach((filePath) => {
59
+ data[filePath] = data[filePath].map((id) => new legacy_bit_id_1.BitId(id));
60
+ });
61
+ return data;
111
62
  }
112
-
63
+ exports.deserializeWithBitId = deserializeWithBitId;
113
64
  //# sourceMappingURL=component-issue.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["component-issue.ts"],"names":["ISSUE_FORMAT_SPACE_COUNT","ISSUE_FORMAT_SPACE","repeat","ComponentIssue","componentIssueToString","descriptionWithSolution","solution","description","outputForCLI","formatTitle","chalk","white","dataToString","Object","keys","data","map","k","formatDataFunction","join","toObject","type","constructor","name","serialize","JSON","stringify","deserialize","parse","issueTitle","hasMoreData","colon","yellow","value","Array","isArray","deserializeWithBitId","dataStr","forEach","filePath","id","BitId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIO,MAAMA,wBAAwB,GAAG,EAAjC;;AACA,MAAMC,kBAAkB,GAAG,IAAIC,MAAJ,CAAWF,wBAAX,CAA3B;;;AAEA,MAAMG,cAAN,CAAqB;AAAA;AAAA;AAAA;AAAA;AAAA,0DAIX,IAJW;AAAA,4DAKT,IALS;AAAA,gEAMYC,sBANZ;AAAA;;AAOC,MAAvBC,uBAAuB,GAAG;AAC5B,UAAMC,QAAQ,GAAG,KAAKA,QAAL,GAAiB,KAAI,KAAKA,QAAS,GAAnC,GAAwC,EAAzD;AACA,WAAQ,GAAE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ACD;;AAEM,SAASG,oBAAT,CAA8BC,OAA9B,EAA+C;AACpD,QAAMtB,IAAI,GAAGU,IAAI,CAACG,KAAL,CAAWS,OAAX,CAAb;AACAxB,EAAAA,MAAM,CAACC,IAAP,CAAYC,IAAZ,EAAkBuB,OAAlB,CAA2BC,QAAD,IAAc;AACtCxB,IAAAA,IAAI,CAACwB,QAAD,CAAJ,GAAiBxB,IAAI,CAACwB,QAAD,CAAJ,CAAevB,GAAf,CAAoBwB,EAAD,IAAQ,KAAIC,oBAAJ,EAAUD,EAAV,CAA3B,CAAjB;AACD,GAFD;AAGA,SAAOzB,IAAP;AACD","sourcesContent":["import chalk from 'chalk';\nimport { BitId } from '@teambit/legacy-bit-id';\n\nexport type StringsPerFilePath = { [filePath: string]: string[] };\n\nexport const ISSUE_FORMAT_SPACE_COUNT = 10;\nexport const ISSUE_FORMAT_SPACE = ' '.repeat(ISSUE_FORMAT_SPACE_COUNT);\n\nexport class ComponentIssue {\n description: string; // issue description\n solution: string; // suggest how to fix the issue\n data: any;\n isTagBlocker = true; // if true, it stops the tag process and shows the issue\n isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem\n formatDataFunction: FormatIssueFunc = componentIssueToString;\n get descriptionWithSolution() {\n const solution = this.solution ? ` (${this.solution})` : '';\n return `${this.description}${solution}`;\n }\n outputForCLI(): string {\n return formatTitle(this.descriptionWithSolution) + chalk.white(this.dataToString());\n }\n dataToString(): string {\n return Object.keys(this.data)\n .map((k) => {\n return `${ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`;\n })\n .join('\\n');\n }\n toObject() {\n return {\n type: this.constructor.name,\n description: this.description,\n solution: this.solution,\n data: this.data,\n };\n }\n serialize(): string {\n return JSON.stringify(this.data);\n }\n deserialize(data: string) {\n return JSON.parse(data);\n }\n}\n\nexport function formatTitle(issueTitle: string, hasMoreData = true): string {\n const colon = hasMoreData ? ':' : '';\n return chalk.yellow(`\\n ${issueTitle}${colon} \\n`);\n}\n\ntype FormatIssueFunc = (value: any) => string;\n\nexport function componentIssueToString(value: string[] | string) {\n return Array.isArray(value) ? value.join(', ') : value;\n}\n\nexport function deserializeWithBitId(dataStr: string) {\n const data = JSON.parse(dataStr);\n Object.keys(data).forEach((filePath) => {\n data[filePath] = data[filePath].map((id) => new BitId(id));\n });\n return data;\n}\n"]}
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,uBAAkB,GAAoB,sBAAsB,CAAC;IA6B/D,CAAC;IA5BC,IAAI,uBAAuB;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,OAAO,GAAG,IAAI,CAAC,WAAW,GAAG,QAAQ,EAAE,CAAC;IAC1C,CAAC;IACD,YAAY;QACV,OAAO,WAAW,CAAC,IAAI,CAAC,uBAAuB,CAAC,GAAG,eAAK,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;IACtF,CAAC;IACD,YAAY;QACV,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;aAC1B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,OAAO,GAAG,0BAAkB,GAAG,CAAC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACjF,CAAC,CAAC;aACD,IAAI,CAAC,IA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;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAND,oDAMC"}
@@ -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.CustomModuleResolutionUsed = 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 CustomModuleResolutionUsed extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'component is using an unsupported resolve-modules (aka aliases) feature';
9
+ this.solution = 'replace to module paths';
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 CustomModuleResolutionUsed extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'component is using an unsupported resolve-modules (aka aliases) feature');
36
- (0, _defineProperty2().default)(this, "solution", 'replace to module paths');
37
- (0, _defineProperty2().default)(this, "data", {});
38
- }
39
-
40
- }
41
-
42
13
  exports.CustomModuleResolutionUsed = CustomModuleResolutionUsed;
43
-
44
14
  //# sourceMappingURL=custom-module-resolution-used.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["custom-module-resolution-used.ts"],"names":["CustomModuleResolutionUsed","ComponentIssue"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,0BAAN,SAAyCC,gCAAzC,CAAwD;AAAA;AAAA;AAAA,yDAC/C,yEAD+C;AAAA,sDAElD,yBAFkD;AAAA,kDAGlC,EAHkC;AAAA;;AAAA","sourcesContent":["import { ComponentIssue, StringsPerFilePath } from './component-issue';\n\nexport class CustomModuleResolutionUsed extends ComponentIssue {\n description = 'component is using an unsupported resolve-modules (aka aliases) feature';\n solution = 'replace to module paths';\n data: StringsPerFilePath = {};\n}\n"]}
1
+ {"version":3,"file":"custom-module-resolution-used.js","sourceRoot":"","sources":["../custom-module-resolution-used.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,0BAA2B,SAAQ,gCAAc;IAA9D;;QACE,gBAAW,GAAG,yEAAyE,CAAC;QACxF,aAAQ,GAAG,yBAAyB,CAAC;QACrC,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,gEAIC"}
@@ -1,45 +1,15 @@
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.ImportNonMainFiles = 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 ImportNonMainFiles extends component_issue_1.ComponentIssue {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.description = 'importing non-main files';
9
+ this.solution = 'the dependency should expose its API from the main file';
10
+ this.data = {};
11
+ this.isCacheBlocker = false;
12
+ }
20
13
  }
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 ImportNonMainFiles extends _componentIssue().ComponentIssue {
33
- constructor(...args) {
34
- super(...args);
35
- (0, _defineProperty2().default)(this, "description", 'importing non-main files');
36
- (0, _defineProperty2().default)(this, "solution", 'the dependency should expose its API from the main file');
37
- (0, _defineProperty2().default)(this, "data", {});
38
- (0, _defineProperty2().default)(this, "isCacheBlocker", false);
39
- }
40
-
41
- }
42
-
43
14
  exports.ImportNonMainFiles = ImportNonMainFiles;
44
-
45
15
  //# sourceMappingURL=import-non-main-files.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["import-non-main-files.ts"],"names":["ImportNonMainFiles","ComponentIssue"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,kBAAN,SAAiCC,gCAAjC,CAAgD;AAAA;AAAA;AAAA,yDACvC,0BADuC;AAAA,sDAE1C,yDAF0C;AAAA,kDAG1B,EAH0B;AAAA,4DAIpC,KAJoC;AAAA;;AAAA","sourcesContent":["import { ComponentIssue, StringsPerFilePath } from './component-issue';\n\nexport class ImportNonMainFiles extends ComponentIssue {\n description = 'importing non-main files';\n solution = 'the dependency should expose its API from the main file';\n data: StringsPerFilePath = {};\n isCacheBlocker = false;\n}\n"]}
1
+ {"version":3,"file":"import-non-main-files.js","sourceRoot":"","sources":["../import-non-main-files.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,kBAAmB,SAAQ,gCAAc;IAAtD;;QACE,gBAAW,GAAG,0BAA0B,CAAC;QACzC,aAAQ,GAAG,yDAAyD,CAAC;QACrE,SAAI,GAAuB,EAAE,CAAC;QAC9B,mBAAc,GAAG,KAAK,CAAC;IACzB,CAAC;CAAA;AALD,gDAKC"}
package/dist/index.js CHANGED
@@ -1,89 +1,11 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "IssuesClasses", {
7
- enumerable: true,
8
- get: function () {
9
- return _issuesList().IssuesClasses;
10
- }
11
- });
12
- Object.defineProperty(exports, "IssuesList", {
13
- enumerable: true,
14
- get: function () {
15
- return _issuesList().IssuesList;
16
- }
17
- });
18
- Object.defineProperty(exports, "IssuesNames", {
19
- enumerable: true,
20
- get: function () {
21
- return _issuesList().IssuesNames;
22
- }
23
- });
24
- Object.defineProperty(exports, "MISSING_DEPS_SPACE", {
25
- enumerable: true,
26
- get: function () {
27
- return _componentIssue().ISSUE_FORMAT_SPACE;
28
- }
29
- });
30
- Object.defineProperty(exports, "MISSING_NESTED_DEPS_SPACE", {
31
- enumerable: true,
32
- get: function () {
33
- return _untrackedDependencies().MISSING_NESTED_DEPS_SPACE;
34
- }
35
- });
36
- Object.defineProperty(exports, "RelativeComponentsAuthoredEntry", {
37
- enumerable: true,
38
- get: function () {
39
- return _relativeComponentsAuthored().RelativeComponentsAuthoredEntry;
40
- }
41
- });
42
- Object.defineProperty(exports, "UntrackedFileDependencyEntry", {
43
- enumerable: true,
44
- get: function () {
45
- return _untrackedDependencies().UntrackedFileDependencyEntry;
46
- }
47
- });
48
-
49
- function _issuesList() {
50
- const data = require("./issues-list");
51
-
52
- _issuesList = function () {
53
- return data;
54
- };
55
-
56
- return data;
57
- }
58
-
59
- function _componentIssue() {
60
- const data = require("./component-issue");
61
-
62
- _componentIssue = function () {
63
- return data;
64
- };
65
-
66
- return data;
67
- }
68
-
69
- function _untrackedDependencies() {
70
- const data = require("./untracked-dependencies");
71
-
72
- _untrackedDependencies = function () {
73
- return data;
74
- };
75
-
76
- return data;
77
- }
78
-
79
- function _relativeComponentsAuthored() {
80
- const data = require("./relative-components-authored");
81
-
82
- _relativeComponentsAuthored = function () {
83
- return data;
84
- };
85
-
86
- return data;
87
- }
88
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MISSING_NESTED_DEPS_SPACE = exports.MISSING_DEPS_SPACE = exports.IssuesClasses = exports.IssuesList = void 0;
4
+ var issues_list_1 = require("./issues-list");
5
+ Object.defineProperty(exports, "IssuesList", { enumerable: true, get: function () { return issues_list_1.IssuesList; } });
6
+ Object.defineProperty(exports, "IssuesClasses", { enumerable: true, get: function () { return issues_list_1.IssuesClasses; } });
7
+ var component_issue_1 = require("./component-issue");
8
+ Object.defineProperty(exports, "MISSING_DEPS_SPACE", { enumerable: true, get: function () { return component_issue_1.ISSUE_FORMAT_SPACE; } });
9
+ var untracked_dependencies_1 = require("./untracked-dependencies");
10
+ Object.defineProperty(exports, "MISSING_NESTED_DEPS_SPACE", { enumerable: true, get: function () { return untracked_dependencies_1.MISSING_NESTED_DEPS_SPACE; } });
89
11
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA","sourcesContent":["export { IssuesList, IssuesClasses, IssuesNames } from './issues-list';\nexport { ISSUE_FORMAT_SPACE as MISSING_DEPS_SPACE } from './component-issue';\nexport { UntrackedFileDependencyEntry, MISSING_NESTED_DEPS_SPACE } from './untracked-dependencies';\nexport { RelativeComponentsAuthoredEntry } from './relative-components-authored';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,6CAAuE;AAA9D,yGAAA,UAAU,OAAA;AAAE,4GAAA,aAAa,OAAA;AAClC,qDAA6E;AAApE,qHAAA,kBAAkB,OAAsB;AACjD,mEAAmG;AAA5D,mIAAA,yBAAyB,OAAA"}