@teambit/component-issues 0.0.44 → 0.0.47
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/component-issue.ts +63 -0
- package/custom-module-resolution-used.ts +7 -0
- package/dist/component-issue.js +53 -102
- package/dist/component-issue.js.map +1 -1
- package/dist/custom-module-resolution-used.js +9 -39
- package/dist/custom-module-resolution-used.js.map +1 -1
- package/dist/import-non-main-files.js +10 -40
- package/dist/import-non-main-files.js.map +1 -1
- package/dist/index.js +9 -87
- package/dist/index.js.map +1 -1
- package/dist/issues-list.js +100 -295
- package/dist/issues-list.js.map +1 -1
- package/dist/legacy-inside-harmony.js +12 -44
- package/dist/legacy-inside-harmony.js.map +1 -1
- package/dist/missing-components.js +12 -43
- package/dist/missing-components.js.map +1 -1
- package/dist/missing-custom-module-resolution-links.js +9 -39
- package/dist/missing-custom-module-resolution-links.js.map +1 -1
- package/dist/missing-dependencies-on-fs.js +9 -39
- package/dist/missing-dependencies-on-fs.js.map +1 -1
- package/dist/missing-dists.js +12 -44
- package/dist/missing-dists.js.map +1 -1
- package/dist/missing-links-from-nm-to-src.js +12 -44
- package/dist/missing-links-from-nm-to-src.js.map +1 -1
- package/dist/missing-links.js +12 -43
- package/dist/missing-links.js.map +1 -1
- package/dist/missing-packages-dependencies-on-fs.js +9 -39
- package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
- package/dist/multiple-envs.js +13 -44
- package/dist/multiple-envs.js.map +1 -1
- package/dist/parse-errors.js +9 -39
- package/dist/parse-errors.js.map +1 -1
- package/dist/relative-components-authored.js +25 -67
- package/dist/relative-components-authored.js.map +1 -1
- package/dist/relative-components.js +13 -44
- package/dist/relative-components.js.map +1 -1
- package/dist/resolve-errors.js +9 -39
- package/dist/resolve-errors.js.map +1 -1
- package/dist/untracked-dependencies.js +32 -73
- package/dist/untracked-dependencies.js.map +1 -1
- package/import-non-main-files.ts +8 -0
- package/index.ts +4 -0
- package/issues-list.ts +124 -0
- package/legacy-inside-harmony.ts +11 -0
- package/missing-components.ts +11 -0
- package/missing-custom-module-resolution-links.ts +7 -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-links.ts +11 -0
- package/missing-packages-dependencies-on-fs.ts +7 -0
- package/multiple-envs.ts +12 -0
- package/package-tar/teambit-component-issues-0.0.47.tgz +0 -0
- package/package.json +9 -36
- package/parse-errors.ts +7 -0
- package/preview-1647509820722.js +1 -0
- package/relative-components-authored.ts +37 -0
- package/relative-components.ts +12 -0
- package/resolve-errors.ts +7 -0
- package/tsconfig.json +5 -13
- package/untracked-dependencies.ts +41 -0
- package/package-tar/teambit-component-issues-0.0.44.tgz +0 -0
|
@@ -1,44 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.MissingDependenciesOnFs = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return data;
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class MissingDependenciesOnFs extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'non-existing dependency files';
|
|
9
|
+
this.solution = 'make sure all files exists on your workspace';
|
|
10
|
+
this.data = {};
|
|
11
|
+
}
|
|
20
12
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class MissingDependenciesOnFs extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'non-existing dependency files');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'make sure all files exists on your workspace');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", {});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
13
|
exports.MissingDependenciesOnFs = MissingDependenciesOnFs;
|
|
43
|
-
|
|
44
14
|
//# sourceMappingURL=missing-dependencies-on-fs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["missing-dependencies-on-fs.ts"],"names":[
|
|
1
|
+
{"version":3,"file":"missing-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,uBAAwB,SAAQ,gCAAc;IAA3D;;QACE,gBAAW,GAAG,+BAA+B,CAAC;QAC9C,aAAQ,GAAG,8CAA8C,CAAC;QAC1D,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,0DAIC"}
|
package/dist/missing-dists.js
CHANGED
|
@@ -1,49 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.MissingDists = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class MissingDists extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'missing dists';
|
|
9
|
+
this.solution = 'run "bit compile"';
|
|
10
|
+
this.isTagBlocker = false;
|
|
11
|
+
}
|
|
12
|
+
outputForCLI() {
|
|
13
|
+
return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
|
|
14
|
+
}
|
|
20
15
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class MissingDists extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'missing dists');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'run "bit compile"');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", void 0);
|
|
38
|
-
(0, _defineProperty2().default)(this, "isTagBlocker", false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
outputForCLI() {
|
|
42
|
-
return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
16
|
exports.MissingDists = MissingDists;
|
|
48
|
-
|
|
49
17
|
//# sourceMappingURL=missing-dists.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"missing-dists.js","sourceRoot":"","sources":["../missing-dists.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,mBAAmB,CAAC;QAE/B,iBAAY,GAAG,KAAK,CAAC;IAIvB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,oCAQC"}
|
|
@@ -1,49 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.MissingLinksFromNodeModulesToSrc = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class MissingLinksFromNodeModulesToSrc extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'missing links from node_modules to source';
|
|
9
|
+
this.solution = 'run "bit link"';
|
|
10
|
+
this.isTagBlocker = false;
|
|
11
|
+
}
|
|
12
|
+
outputForCLI() {
|
|
13
|
+
return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
|
|
14
|
+
}
|
|
20
15
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class MissingLinksFromNodeModulesToSrc extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'missing links from node_modules to source');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'run "bit link"');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", void 0);
|
|
38
|
-
(0, _defineProperty2().default)(this, "isTagBlocker", false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
outputForCLI() {
|
|
42
|
-
return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
16
|
exports.MissingLinksFromNodeModulesToSrc = MissingLinksFromNodeModulesToSrc;
|
|
48
|
-
|
|
49
17
|
//# sourceMappingURL=missing-links-from-nm-to-src.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
package/dist/missing-links.js
CHANGED
|
@@ -1,48 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.MissingLinks = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class MissingLinks extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'missing links between components';
|
|
9
|
+
this.solution = 'use "bit link" to build missing component links';
|
|
10
|
+
this.data = {};
|
|
11
|
+
}
|
|
12
|
+
deserialize(data) {
|
|
13
|
+
return (0, component_issue_1.deserializeWithBitId)(data);
|
|
14
|
+
}
|
|
20
15
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class MissingLinks extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'missing links between components');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'use "bit link" to build missing component links');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", {});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
deserialize(data) {
|
|
41
|
-
return (0, _componentIssue().deserializeWithBitId)(data);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
16
|
exports.MissingLinks = MissingLinks;
|
|
47
|
-
|
|
48
17
|
//# sourceMappingURL=missing-links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"missing-links.js","sourceRoot":"","sources":["../missing-links.ts"],"names":[],"mappings":";;;AACA,uDAAyE;AAEzE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,kCAAkC,CAAC;QACjD,aAAQ,GAAG,iDAAiD,CAAC;QAC7D,SAAI,GAAoC,EAAE,CAAC;IAI7C,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAPD,oCAOC"}
|
|
@@ -1,44 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.MissingPackagesDependenciesOnFs = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return data;
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class MissingPackagesDependenciesOnFs extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = `missing packages or links from node_modules to the source`;
|
|
9
|
+
this.solution = `run "bit install" to fix both issues. if it's an external package, make sure it's added as a package dependency`;
|
|
10
|
+
this.data = {};
|
|
11
|
+
}
|
|
20
12
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class MissingPackagesDependenciesOnFs extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", `missing packages or links from node_modules to the source`);
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", `run "bit install" to fix both issues. if it's an external package, make sure it's added as a package dependency`);
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", {});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
13
|
exports.MissingPackagesDependenciesOnFs = MissingPackagesDependenciesOnFs;
|
|
43
|
-
|
|
44
14
|
//# sourceMappingURL=missing-packages-dependencies-on-fs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["missing-packages-dependencies-on-fs.ts"],"names":[
|
|
1
|
+
{"version":3,"file":"missing-packages-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-packages-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,+BAAgC,SAAQ,gCAAc;IAAnE;;QACE,gBAAW,GAAG,2DAA2D,CAAC;QAC1E,aAAQ,GAAG,iHAAiH,CAAC;QAC7H,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,0EAIC"}
|
package/dist/multiple-envs.js
CHANGED
|
@@ -1,49 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.MultipleEnvs = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
// TODO: pass the docs url into here after fetch it from the community aspect
|
|
10
|
+
this.solution = `remove the old envs by setting them with "-" sign in the variants. see https://bit.dev/docs/envs/using-envs#component-must-have-a-single-env`;
|
|
11
|
+
this.isTagBlocker = true;
|
|
12
|
+
}
|
|
13
|
+
dataToString() {
|
|
14
|
+
return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
|
|
15
|
+
}
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class MultipleEnvs extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'multiple envs');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'remove the old envs by setting them with "-" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", void 0);
|
|
38
|
-
(0, _defineProperty2().default)(this, "isTagBlocker", true);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
dataToString() {
|
|
42
|
-
return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
17
|
exports.MultipleEnvs = MultipleEnvs;
|
|
48
|
-
|
|
49
18
|
//# sourceMappingURL=multiple-envs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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,6EAA6E;QAC7E,aAAQ,GAAG,8IAA8I,CAAC;QAE1J,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AATD,oCASC"}
|
package/dist/parse-errors.js
CHANGED
|
@@ -1,44 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.ParseErrors = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return data;
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class ParseErrors extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'error found while parsing the file';
|
|
9
|
+
this.solution = 'edit the file and fix the parsing error';
|
|
10
|
+
this.data = {};
|
|
11
|
+
}
|
|
20
12
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class ParseErrors extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'error found while parsing the file');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'edit the file and fix the parsing error');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", {});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
13
|
exports.ParseErrors = ParseErrors;
|
|
43
|
-
|
|
44
14
|
//# sourceMappingURL=parse-errors.js.map
|
package/dist/parse-errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["parse-errors.ts"],"names":[
|
|
1
|
+
{"version":3,"file":"parse-errors.js","sourceRoot":"","sources":["../parse-errors.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEnD,MAAa,WAAY,SAAQ,gCAAc;IAA/C;;QACE,gBAAW,GAAG,oCAAoC,CAAC;QACnD,aAAQ,GAAG,yCAAyC,CAAC;QACrD,SAAI,GAAmC,EAAE,CAAC;IAC5C,CAAC;CAAA;AAJD,kCAIC"}
|
|
@@ -1,74 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.relativeComponentsAuthored = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
const legacy_bit_id_1 = require("@teambit/legacy-bit-id");
|
|
5
|
+
const component_issue_1 = require("./component-issue");
|
|
6
|
+
class relativeComponentsAuthored extends component_issue_1.ComponentIssue {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.description = 'components with relative import statements found';
|
|
10
|
+
this.solution = 'replace to module paths or use "bit link --rewire" to replace';
|
|
11
|
+
this.data = {};
|
|
12
|
+
this.isCacheBlocker = false;
|
|
13
|
+
this.formatDataFunction = relativeComponentsAuthoredIssuesToString;
|
|
14
|
+
}
|
|
15
|
+
deserialize(dataStr) {
|
|
16
|
+
const data = JSON.parse(dataStr);
|
|
17
|
+
Object.keys(data).forEach((fileName) => {
|
|
18
|
+
data[fileName] = data[fileName].map((record) => ({
|
|
19
|
+
importSource: record.importSource,
|
|
20
|
+
componentId: new legacy_bit_id_1.BitId(record.componentId),
|
|
21
|
+
relativePath: record.relativePath,
|
|
22
|
+
}));
|
|
23
|
+
});
|
|
24
|
+
return data;
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
|
-
|
|
22
|
-
function _legacyBitId() {
|
|
23
|
-
const data = require("@teambit/legacy-bit-id");
|
|
24
|
-
|
|
25
|
-
_legacyBitId = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function _componentIssue() {
|
|
33
|
-
const data = require("./component-issue");
|
|
34
|
-
|
|
35
|
-
_componentIssue = function () {
|
|
36
|
-
return data;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return data;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
class relativeComponentsAuthored extends _componentIssue().ComponentIssue {
|
|
43
|
-
constructor(...args) {
|
|
44
|
-
super(...args);
|
|
45
|
-
(0, _defineProperty2().default)(this, "description", 'components with relative import statements found');
|
|
46
|
-
(0, _defineProperty2().default)(this, "solution", 'replace to module paths or use "bit link --rewire" to replace');
|
|
47
|
-
(0, _defineProperty2().default)(this, "data", {});
|
|
48
|
-
(0, _defineProperty2().default)(this, "isCacheBlocker", false);
|
|
49
|
-
(0, _defineProperty2().default)(this, "formatDataFunction", relativeComponentsAuthoredIssuesToString);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
deserialize(dataStr) {
|
|
53
|
-
const data = JSON.parse(dataStr);
|
|
54
|
-
Object.keys(data).forEach(fileName => {
|
|
55
|
-
data[fileName] = data[fileName].map(record => ({
|
|
56
|
-
importSource: record.importSource,
|
|
57
|
-
componentId: new (_legacyBitId().BitId)(record.componentId),
|
|
58
|
-
relativePath: record.relativePath
|
|
59
|
-
}));
|
|
60
|
-
});
|
|
61
|
-
return data;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
27
|
exports.relativeComponentsAuthored = relativeComponentsAuthored;
|
|
67
|
-
|
|
68
28
|
function relativeComponentsAuthoredIssuesToString(relativeEntries) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return relativeEntries.map(stringifyEntry).join(', ');
|
|
29
|
+
const stringifyEntry = (entry) => `"${entry.importSource}" (${entry.componentId.toString()})`;
|
|
30
|
+
return relativeEntries.map(stringifyEntry).join(', ');
|
|
72
31
|
}
|
|
73
|
-
|
|
74
32
|
//# sourceMappingURL=relative-components-authored.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"relative-components-authored.js","sourceRoot":"","sources":["../relative-components-authored.ts"],"names":[],"mappings":";;;AAAA,0DAA+C;AAC/C,uDAAmD;AAWnD,MAAa,0BAA2B,SAAQ,gCAAc;IAA9D;;QACE,gBAAW,GAAG,kDAAkD,CAAC;QACjE,aAAQ,GAAG,+DAA+D,CAAC;QAC3E,SAAI,GAA8D,EAAE,CAAC;QACrE,mBAAc,GAAG,KAAK,CAAC;QACvB,uBAAkB,GAAG,wCAAwC,CAAC;IAahE,CAAC;IAXC,WAAW,CAAC,OAAe;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACjC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC/C,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,WAAW,EAAE,IAAI,qBAAK,CAAC,MAAM,CAAC,WAAW,CAAC;gBAC1C,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAC,CAAC,CAAC;QACN,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlBD,gEAkBC;AAED,SAAS,wCAAwC,CAAC,eAAkD;IAClG,MAAM,cAAc,GAAG,CAAC,KAAsC,EAAE,EAAE,CAChE,IAAI,KAAK,CAAC,YAAY,MAAM,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC;IAC9D,OAAO,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1,49 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
3
|
exports.relativeComponents = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
const component_issue_1 = require("./component-issue");
|
|
5
|
+
class relativeComponents extends component_issue_1.ComponentIssue {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.description = 'components with relative import statements found';
|
|
9
|
+
this.solution = 'use module paths for imported components';
|
|
10
|
+
this.data = {};
|
|
11
|
+
this.isCacheBlocker = false;
|
|
12
|
+
}
|
|
13
|
+
deserialize(data) {
|
|
14
|
+
return (0, component_issue_1.deserializeWithBitId)(data);
|
|
15
|
+
}
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
function _componentIssue() {
|
|
23
|
-
const data = require("./component-issue");
|
|
24
|
-
|
|
25
|
-
_componentIssue = function () {
|
|
26
|
-
return data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class relativeComponents extends _componentIssue().ComponentIssue {
|
|
33
|
-
constructor(...args) {
|
|
34
|
-
super(...args);
|
|
35
|
-
(0, _defineProperty2().default)(this, "description", 'components with relative import statements found');
|
|
36
|
-
(0, _defineProperty2().default)(this, "solution", 'use module paths for imported components');
|
|
37
|
-
(0, _defineProperty2().default)(this, "data", {});
|
|
38
|
-
(0, _defineProperty2().default)(this, "isCacheBlocker", false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
deserialize(data) {
|
|
42
|
-
return (0, _componentIssue().deserializeWithBitId)(data);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
17
|
exports.relativeComponents = relativeComponents;
|
|
48
|
-
|
|
49
18
|
//# sourceMappingURL=relative-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"relative-components.js","sourceRoot":"","sources":["../relative-components.ts"],"names":[],"mappings":";;;AACA,uDAAyE;AAEzE,MAAa,kBAAmB,SAAQ,gCAAc;IAAtD;;QACE,gBAAW,GAAG,kDAAkD,CAAC;QACjE,aAAQ,GAAG,0CAA0C,CAAC;QACtD,SAAI,GAAoC,EAAE,CAAC;QAC3C,mBAAc,GAAG,KAAK,CAAC;IAIzB,CAAC;IAHC,WAAW,CAAC,IAAY;QACtB,OAAO,IAAA,sCAAoB,EAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AARD,gDAQC"}
|