@teambit/component-issues 0.0.136 → 0.0.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/circular-dependencies.ts +11 -0
- package/component-issue.ts +75 -0
- package/dist/circular-dependencies.js +12 -26
- package/dist/circular-dependencies.js.map +1 -1
- package/dist/component-issue.js +57 -79
- package/dist/component-issue.js.map +1 -1
- package/dist/duplicate-component-and-package.js +12 -26
- package/dist/duplicate-component-and-package.js.map +1 -1
- package/dist/external-env-without-version.js +15 -29
- package/dist/external-env-without-version.js.map +1 -1
- package/dist/import-non-main-files.js +10 -23
- package/dist/import-non-main-files.js.map +1 -1
- package/dist/index.js +10 -81
- package/dist/index.js.map +1 -1
- package/dist/issues-list.js +131 -263
- package/dist/issues-list.js.map +1 -1
- package/dist/legacy-inside-harmony.js +12 -26
- package/dist/legacy-inside-harmony.js.map +1 -1
- package/dist/merge-config-has-conflict.js +12 -26
- package/dist/merge-config-has-conflict.js.map +1 -1
- package/dist/missing-dependencies-on-fs.js +9 -22
- package/dist/missing-dependencies-on-fs.js.map +1 -1
- package/dist/missing-dists.js +12 -26
- package/dist/missing-dists.js.map +1 -1
- package/dist/missing-links-from-nm-to-src.js +12 -26
- package/dist/missing-links-from-nm-to-src.js.map +1 -1
- package/dist/missing-manually-configured-packages.js +12 -26
- package/dist/missing-manually-configured-packages.js.map +1 -1
- package/dist/missing-packages-dependencies-on-fs.js +14 -25
- package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
- package/dist/multiple-envs.js +12 -27
- package/dist/multiple-envs.js.map +1 -1
- package/dist/non-loaded-env.js +12 -26
- package/dist/non-loaded-env.js.map +1 -1
- package/dist/parse-errors.js +9 -22
- package/dist/parse-errors.js.map +1 -1
- package/dist/relative-components-authored.js +36 -55
- package/dist/relative-components-authored.js.map +1 -1
- package/dist/relative-components.js +13 -26
- package/dist/relative-components.js.map +1 -1
- package/dist/removed-dependencies.js +12 -27
- package/dist/removed-dependencies.js.map +1 -1
- package/dist/resolve-errors.js +9 -22
- package/dist/resolve-errors.js.map +1 -1
- package/dist/tsconfig.json +32 -0
- package/dist/untracked-dependencies.js +32 -47
- package/dist/untracked-dependencies.js.map +1 -1
- package/duplicate-component-and-package.ts +11 -0
- package/external-env-without-version.ts +19 -0
- package/import-non-main-files.ts +8 -0
- package/index.ts +5 -0
- package/issues-list.ts +162 -0
- package/legacy-inside-harmony.ts +11 -0
- package/merge-config-has-conflict.ts +11 -0
- package/missing-dependencies-on-fs.ts +7 -0
- package/missing-dists.ts +11 -0
- package/missing-links-from-nm-to-src.ts +11 -0
- package/missing-manually-configured-packages.ts +10 -0
- package/missing-packages-dependencies-on-fs.ts +18 -0
- package/multiple-envs.ts +12 -0
- package/non-loaded-env.ts +11 -0
- package/package.json +7 -39
- package/parse-errors.ts +7 -0
- package/relative-components-authored.ts +49 -0
- package/relative-components.ts +12 -0
- package/removed-dependencies.ts +11 -0
- package/resolve-errors.ts +7 -0
- package/tsconfig.json +2 -11
- package/untracked-dependencies.ts +41 -0
- /package/dist/{preview-1703387662836.js → preview-1703647408454.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentIssue, formatTitle } from './component-issue';
|
|
2
|
+
|
|
3
|
+
export class CircularDependencies extends ComponentIssue {
|
|
4
|
+
description = 'circular dependencies';
|
|
5
|
+
solution = 'run `bit insights "circular"` to get the component-ids participating in the circular';
|
|
6
|
+
data: boolean;
|
|
7
|
+
isTagBlocker = true;
|
|
8
|
+
outputForCLI() {
|
|
9
|
+
return formatTitle(this.descriptionWithSolution, false);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { ComponentID } from '@teambit/component-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 type IssueObject = {
|
|
10
|
+
type: string;
|
|
11
|
+
description: string;
|
|
12
|
+
solution: string;
|
|
13
|
+
isTagBlocker: boolean;
|
|
14
|
+
data: any;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export class ComponentIssue {
|
|
18
|
+
description: string; // issue description
|
|
19
|
+
solution: string; // suggest how to fix the issue
|
|
20
|
+
data: any;
|
|
21
|
+
isTagBlocker = true; // if true, it stops the tag process and shows the issue
|
|
22
|
+
isCacheBlocker = true; // if true, it doesn't cache the component in the filesystem
|
|
23
|
+
formatDataFunction: FormatIssueFunc = componentIssueToString;
|
|
24
|
+
get descriptionWithSolution() {
|
|
25
|
+
const solution = this.formatSolution();
|
|
26
|
+
return `${this.description} ${solution}`;
|
|
27
|
+
}
|
|
28
|
+
formatSolution(): string {
|
|
29
|
+
return this.solution ? ` (${this.solution})` : '';
|
|
30
|
+
}
|
|
31
|
+
outputForCLI(): string {
|
|
32
|
+
return formatTitle(this.descriptionWithSolution) + chalk.white(this.dataToString());
|
|
33
|
+
}
|
|
34
|
+
dataToString(): string {
|
|
35
|
+
return Object.keys(this.data)
|
|
36
|
+
.map((k) => {
|
|
37
|
+
return `${ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`;
|
|
38
|
+
})
|
|
39
|
+
.join('\n');
|
|
40
|
+
}
|
|
41
|
+
toObject(): IssueObject {
|
|
42
|
+
return {
|
|
43
|
+
type: this.constructor.name,
|
|
44
|
+
description: this.description,
|
|
45
|
+
solution: this.solution,
|
|
46
|
+
isTagBlocker: this.isTagBlocker,
|
|
47
|
+
data: this.data,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
serialize(): string {
|
|
51
|
+
return JSON.stringify(this.data);
|
|
52
|
+
}
|
|
53
|
+
deserialize(data: string) {
|
|
54
|
+
return JSON.parse(data);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function formatTitle(issueTitle: string, hasMoreData = true): string {
|
|
59
|
+
const colon = hasMoreData ? ':' : '';
|
|
60
|
+
return chalk.yellow(`\n ${issueTitle}${colon} \n`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type FormatIssueFunc = (value: any) => string;
|
|
64
|
+
|
|
65
|
+
export function componentIssueToString(value: string[] | string) {
|
|
66
|
+
return Array.isArray(value) ? value.join(', ') : value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function deserializeWithBitId(dataStr: string) {
|
|
70
|
+
const data = JSON.parse(dataStr);
|
|
71
|
+
Object.keys(data).forEach((filePath) => {
|
|
72
|
+
data[filePath] = data[filePath].map((id) => new ComponentID(id));
|
|
73
|
+
});
|
|
74
|
+
return data;
|
|
75
|
+
}
|
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.CircularDependencies = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor(...args) {
|
|
19
|
-
super(...args);
|
|
20
|
-
_defineProperty(this, "description", 'circular dependencies');
|
|
21
|
-
_defineProperty(this, "solution", 'run `bit insights "circular"` to get the component-ids participating in the circular');
|
|
22
|
-
_defineProperty(this, "data", void 0);
|
|
23
|
-
_defineProperty(this, "isTagBlocker", true);
|
|
24
|
-
}
|
|
25
|
-
outputForCLI() {
|
|
26
|
-
return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
|
|
27
|
-
}
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class CircularDependencies extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'circular dependencies';
|
|
9
|
+
this.solution = 'run `bit insights "circular"` to get the component-ids participating in the circular';
|
|
10
|
+
this.isTagBlocker = true;
|
|
11
|
+
}
|
|
12
|
+
outputForCLI() {
|
|
13
|
+
return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
|
|
14
|
+
}
|
|
28
15
|
}
|
|
29
16
|
exports.CircularDependencies = CircularDependencies;
|
|
30
|
-
|
|
31
17
|
//# sourceMappingURL=circular-dependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"circular-dependencies.js","sourceRoot":"","sources":["../circular-dependencies.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,oBAAqB,SAAQ,gCAAc;IAAxD;;QACE,gBAAW,GAAG,uBAAuB,CAAC;QACtC,aAAQ,GAAG,sFAAsF,CAAC;QAElG,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,oDAQC"}
|
package/dist/component-issue.js
CHANGED
|
@@ -1,90 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
|
|
11
|
-
const data = _interopRequireDefault(require("chalk"));
|
|
12
|
-
_chalk = function () {
|
|
13
|
-
return data;
|
|
14
|
-
};
|
|
15
|
-
return data;
|
|
16
|
-
}
|
|
17
|
-
function _componentId() {
|
|
18
|
-
const data = require("@teambit/component-id");
|
|
19
|
-
_componentId = function () {
|
|
20
|
-
return data;
|
|
21
|
-
};
|
|
22
|
-
return data;
|
|
23
|
-
}
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
27
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
|
-
const ISSUE_FORMAT_SPACE_COUNT = exports.ISSUE_FORMAT_SPACE_COUNT = 10;
|
|
29
|
-
const ISSUE_FORMAT_SPACE = exports.ISSUE_FORMAT_SPACE = ' '.repeat(ISSUE_FORMAT_SPACE_COUNT);
|
|
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 component_id_1 = require("@teambit/component-id");
|
|
9
|
+
exports.ISSUE_FORMAT_SPACE_COUNT = 10;
|
|
10
|
+
exports.ISSUE_FORMAT_SPACE = ' '.repeat(exports.ISSUE_FORMAT_SPACE_COUNT);
|
|
30
11
|
class ComponentIssue {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return JSON.stringify(this.data);
|
|
69
|
-
}
|
|
70
|
-
deserialize(data) {
|
|
71
|
-
return JSON.parse(data);
|
|
72
|
-
}
|
|
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.formatSolution();
|
|
19
|
+
return `${this.description} ${solution}`;
|
|
20
|
+
}
|
|
21
|
+
formatSolution() {
|
|
22
|
+
return this.solution ? ` (${this.solution})` : '';
|
|
23
|
+
}
|
|
24
|
+
outputForCLI() {
|
|
25
|
+
return formatTitle(this.descriptionWithSolution) + chalk_1.default.white(this.dataToString());
|
|
26
|
+
}
|
|
27
|
+
dataToString() {
|
|
28
|
+
return Object.keys(this.data)
|
|
29
|
+
.map((k) => {
|
|
30
|
+
return `${exports.ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`;
|
|
31
|
+
})
|
|
32
|
+
.join('\n');
|
|
33
|
+
}
|
|
34
|
+
toObject() {
|
|
35
|
+
return {
|
|
36
|
+
type: this.constructor.name,
|
|
37
|
+
description: this.description,
|
|
38
|
+
solution: this.solution,
|
|
39
|
+
isTagBlocker: this.isTagBlocker,
|
|
40
|
+
data: this.data,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
serialize() {
|
|
44
|
+
return JSON.stringify(this.data);
|
|
45
|
+
}
|
|
46
|
+
deserialize(data) {
|
|
47
|
+
return JSON.parse(data);
|
|
48
|
+
}
|
|
73
49
|
}
|
|
74
50
|
exports.ComponentIssue = ComponentIssue;
|
|
75
51
|
function formatTitle(issueTitle, hasMoreData = true) {
|
|
76
|
-
|
|
77
|
-
|
|
52
|
+
const colon = hasMoreData ? ':' : '';
|
|
53
|
+
return chalk_1.default.yellow(`\n ${issueTitle}${colon} \n`);
|
|
78
54
|
}
|
|
55
|
+
exports.formatTitle = formatTitle;
|
|
79
56
|
function componentIssueToString(value) {
|
|
80
|
-
|
|
57
|
+
return Array.isArray(value) ? value.join(', ') : value;
|
|
81
58
|
}
|
|
59
|
+
exports.componentIssueToString = componentIssueToString;
|
|
82
60
|
function deserializeWithBitId(dataStr) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
61
|
+
const data = JSON.parse(dataStr);
|
|
62
|
+
Object.keys(data).forEach((filePath) => {
|
|
63
|
+
data[filePath] = data[filePath].map((id) => new component_id_1.ComponentID(id));
|
|
64
|
+
});
|
|
65
|
+
return data;
|
|
88
66
|
}
|
|
89
|
-
|
|
67
|
+
exports.deserializeWithBitId = deserializeWithBitId;
|
|
90
68
|
//# sourceMappingURL=component-issue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"component-issue.js","sourceRoot":"","sources":["../component-issue.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,wDAAoD;AAIvC,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC9B,QAAA,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,gCAAwB,CAAC,CAAC;AAUvE,MAAa,cAAc;IAA3B;QAIE,iBAAY,GAAG,IAAI,CAAC,CAAC,wDAAwD;QAC7E,mBAAc,GAAG,IAAI,CAAC,CAAC,4DAA4D;QACnF,uBAAkB,GAAoB,sBAAsB,CAAC;IAiC/D,CAAC;IAhCC,IAAI,uBAAuB;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACvC,OAAO,GAAG,IAAI,CAAC,WAAW,IAAI,QAAQ,EAAE,CAAC;IAC3C,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,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,IAAI,CAAC,CAAC;IAChB,CAAC;IACD,QAAQ;QACN,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IACD,WAAW,CAAC,IAAY;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAvCD,wCAuCC;AAED,SAAgB,WAAW,CAAC,UAAkB,EAAE,WAAW,GAAG,IAAI;IAChE,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACrC,OAAO,eAAK,CAAC,MAAM,CAAC,YAAY,UAAU,GAAG,KAAK,KAAK,CAAC,CAAC;AAC3D,CAAC;AAHD,kCAGC;AAID,SAAgB,sBAAsB,CAAC,KAAwB;IAC7D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACzD,CAAC;AAFD,wDAEC;AAED,SAAgB,oBAAoB,CAAC,OAAe;IAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QACrC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,0BAAW,CAAC,EAAE,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAND,oDAMC"}
|
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.DuplicateComponentAndPackage = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor(...args) {
|
|
19
|
-
super(...args);
|
|
20
|
-
_defineProperty(this, "description", 'tracked component added as a package');
|
|
21
|
-
_defineProperty(this, "solution", 'either remove the package from the workspace.jsonc (bit uninstall) or remove the component (bit remove)');
|
|
22
|
-
_defineProperty(this, "data", void 0);
|
|
23
|
-
_defineProperty(this, "isTagBlocker", true);
|
|
24
|
-
}
|
|
25
|
-
dataToString() {
|
|
26
|
-
return _componentIssue().ISSUE_FORMAT_SPACE + this.data;
|
|
27
|
-
}
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class DuplicateComponentAndPackage extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'tracked component added as a package';
|
|
9
|
+
this.solution = 'either remove the package from the workspace.jsonc (bit uninstall) or remove the component (bit remove)';
|
|
10
|
+
this.isTagBlocker = true;
|
|
11
|
+
}
|
|
12
|
+
dataToString() {
|
|
13
|
+
return component_issue_1.ISSUE_FORMAT_SPACE + this.data;
|
|
14
|
+
}
|
|
28
15
|
}
|
|
29
16
|
exports.DuplicateComponentAndPackage = DuplicateComponentAndPackage;
|
|
30
|
-
|
|
31
17
|
//# sourceMappingURL=duplicate-component-and-package.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"duplicate-component-and-package.js","sourceRoot":"","sources":["../duplicate-component-and-package.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,4BAA6B,SAAQ,gCAAc;IAAhE;;QACE,gBAAW,GAAG,sCAAsC,CAAC;QACrD,aAAQ,GAAG,yGAAyG,CAAC;QAErH,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC;IACxC,CAAC;CACF;AARD,oEAQC"}
|
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExternalEnvWithoutVersion = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_defineProperty(this, "data", void 0);
|
|
22
|
-
_defineProperty(this, "solution", '');
|
|
23
|
-
_defineProperty(this, "isTagBlocker", true);
|
|
24
|
-
}
|
|
25
|
-
formatSolution() {
|
|
26
|
-
return `(run "bit env set ${this.data.componentId} ${this.data.envId}")`;
|
|
27
|
-
}
|
|
28
|
-
dataToString() {
|
|
29
|
-
return _componentIssue().ISSUE_FORMAT_SPACE + this.data.envId;
|
|
30
|
-
}
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class ExternalEnvWithoutVersion extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'failed loading env - external env without a version';
|
|
9
|
+
this.solution = '';
|
|
10
|
+
this.isTagBlocker = true;
|
|
11
|
+
}
|
|
12
|
+
formatSolution() {
|
|
13
|
+
return `(run "bit env set ${this.data.componentId} ${this.data.envId}")`;
|
|
14
|
+
}
|
|
15
|
+
dataToString() {
|
|
16
|
+
return component_issue_1.ISSUE_FORMAT_SPACE + this.data.envId;
|
|
17
|
+
}
|
|
31
18
|
}
|
|
32
19
|
exports.ExternalEnvWithoutVersion = ExternalEnvWithoutVersion;
|
|
33
|
-
|
|
34
20
|
//# sourceMappingURL=external-env-without-version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"external-env-without-version.js","sourceRoot":"","sources":["../external-env-without-version.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAOvE,MAAa,yBAA0B,SAAQ,gCAAc;IAA7D;;QACE,gBAAW,GAAG,qDAAqD,CAAC;QAEpE,aAAQ,GAAG,EAAE,CAAC;QACd,iBAAY,GAAG,IAAI,CAAC;IAOtB,CAAC;IANC,cAAc;QACZ,OAAO,qBAAqB,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC3E,CAAC;IACD,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAC9C,CAAC;CACF;AAXD,8DAWC"}
|
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ImportNonMainFiles = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
-
class ImportNonMainFiles extends _componentIssue().ComponentIssue {
|
|
18
|
-
constructor(...args) {
|
|
19
|
-
super(...args);
|
|
20
|
-
_defineProperty(this, "description", 'importing non-main files');
|
|
21
|
-
_defineProperty(this, "solution", 'the dependency should expose its API from the main file');
|
|
22
|
-
_defineProperty(this, "data", {});
|
|
23
|
-
_defineProperty(this, "isCacheBlocker", false);
|
|
24
|
-
}
|
|
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
|
+
}
|
|
25
13
|
}
|
|
26
14
|
exports.ImportNonMainFiles = ImportNonMainFiles;
|
|
27
|
-
|
|
28
15
|
//# sourceMappingURL=import-non-main-files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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,83 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "IssuesClasses", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _issuesList().IssuesClasses;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "IssuesList", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _issuesList().IssuesList;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "IssuesNames", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _issuesList().IssuesNames;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "MISSING_DEPS_SPACE", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _componentIssue().ISSUE_FORMAT_SPACE;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "MISSING_NESTED_DEPS_SPACE", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _untrackedDependencies().MISSING_NESTED_DEPS_SPACE;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "RelativeComponentsAuthoredEntry", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _relativeComponentsAuthored().RelativeComponentsAuthoredEntry;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "UntrackedFileDependencyEntry", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _untrackedDependencies().UntrackedFileDependencyEntry;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
function _issuesList() {
|
|
55
|
-
const data = require("./issues-list");
|
|
56
|
-
_issuesList = function () {
|
|
57
|
-
return data;
|
|
58
|
-
};
|
|
59
|
-
return data;
|
|
60
|
-
}
|
|
61
|
-
function _componentIssue() {
|
|
62
|
-
const data = require("./component-issue");
|
|
63
|
-
_componentIssue = function () {
|
|
64
|
-
return data;
|
|
65
|
-
};
|
|
66
|
-
return data;
|
|
67
|
-
}
|
|
68
|
-
function _untrackedDependencies() {
|
|
69
|
-
const data = require("./untracked-dependencies");
|
|
70
|
-
_untrackedDependencies = function () {
|
|
71
|
-
return data;
|
|
72
|
-
};
|
|
73
|
-
return data;
|
|
74
|
-
}
|
|
75
|
-
function _relativeComponentsAuthored() {
|
|
76
|
-
const data = require("./relative-components-authored");
|
|
77
|
-
_relativeComponentsAuthored = function () {
|
|
78
|
-
return data;
|
|
79
|
-
};
|
|
80
|
-
return data;
|
|
81
|
-
}
|
|
82
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MISSING_NESTED_DEPS_SPACE = exports.ComponentIssue = 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
|
+
Object.defineProperty(exports, "ComponentIssue", { enumerable: true, get: function () { return component_issue_1.ComponentIssue; } });
|
|
10
|
+
var untracked_dependencies_1 = require("./untracked-dependencies");
|
|
11
|
+
Object.defineProperty(exports, "MISSING_NESTED_DEPS_SPACE", { enumerable: true, get: function () { return untracked_dependencies_1.MISSING_NESTED_DEPS_SPACE; } });
|
|
83
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,6CAAuE;AAA9D,yGAAA,UAAU,OAAA;AAAE,4GAAA,aAAa,OAAA;AAClC,qDAA6F;AAApF,qHAAA,kBAAkB,OAAsB;AAAE,iHAAA,cAAc,OAAA;AACjE,mEAAmG;AAA5D,mIAAA,yBAAyB,OAAA"}
|