@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.
- package/dist/circular-dependencies.js +19 -12
- package/dist/circular-dependencies.js.map +1 -1
- package/dist/component-issue.js +68 -55
- package/dist/component-issue.js.map +1 -1
- package/dist/deprecated-dependencies.js +20 -12
- package/dist/deprecated-dependencies.js.map +1 -1
- package/dist/duplicate-component-and-package.js +19 -12
- package/dist/duplicate-component-and-package.js.map +1 -1
- package/dist/external-env-without-version.js +22 -15
- package/dist/external-env-without-version.js.map +1 -1
- package/dist/import-from-directory.js +18 -11
- package/dist/import-from-directory.js.map +1 -1
- package/dist/import-non-main-files.js +17 -10
- package/dist/import-non-main-files.js.map +1 -1
- package/dist/index.js +81 -10
- package/dist/index.js.map +1 -1
- package/dist/issues-list.js +292 -140
- package/dist/issues-list.js.map +1 -1
- package/dist/legacy-inside-harmony.js +19 -12
- package/dist/legacy-inside-harmony.js.map +1 -1
- package/dist/merge-config-has-conflict.js +19 -12
- package/dist/merge-config-has-conflict.js.map +1 -1
- package/dist/missing-dependencies-on-fs.js +16 -9
- package/dist/missing-dependencies-on-fs.js.map +1 -1
- package/dist/missing-dists.js +19 -12
- package/dist/missing-dists.js.map +1 -1
- package/dist/missing-links-from-nm-to-src.js +19 -12
- package/dist/missing-links-from-nm-to-src.js.map +1 -1
- package/dist/missing-manually-configured-packages.js +19 -12
- package/dist/missing-manually-configured-packages.js.map +1 -1
- package/dist/missing-packages-dependencies-on-fs.js +19 -14
- package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
- package/dist/multiple-envs.js +20 -12
- package/dist/multiple-envs.js.map +1 -1
- package/dist/non-loaded-env.js +19 -12
- package/dist/non-loaded-env.js.map +1 -1
- package/dist/parse-errors.js +16 -9
- package/dist/parse-errors.js.map +1 -1
- package/dist/relative-components-authored.js +49 -36
- package/dist/relative-components-authored.js.map +1 -1
- package/dist/relative-components.js +20 -13
- package/dist/relative-components.js.map +1 -1
- package/dist/removed-dependencies.js +20 -12
- package/dist/removed-dependencies.js.map +1 -1
- package/dist/removed-env.js +20 -12
- package/dist/removed-env.js.map +1 -1
- package/dist/resolve-errors.js +16 -9
- package/dist/resolve-errors.js.map +1 -1
- package/dist/self-reference.js +17 -10
- package/dist/self-reference.js.map +1 -1
- package/dist/untracked-dependencies.js +41 -32
- package/dist/untracked-dependencies.js.map +1 -1
- package/package.json +20 -6
- package/types/asset.d.ts +15 -3
- package/dist/preview-1736711473672.js +0 -7
package/dist/missing-dists.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingDists = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingLinksFromNodeModulesToSrc = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingManuallyConfiguredPackages = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingPackagesDependenciesOnFs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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,"
|
|
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":[]}
|
package/dist/multiple-envs.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MultipleEnvs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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":[]}
|
package/dist/non-loaded-env.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.NonLoadedEnv = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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":[]}
|
package/dist/parse-errors.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.ParseErrors = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
package/dist/parse-errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.RelativeComponentsAuthored = void 0;
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
41
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.RelativeComponents = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.RemovedDependencies = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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":[]}
|
package/dist/removed-env.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.RemovedEnv = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
package/dist/removed-env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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":[]}
|
package/dist/resolve-errors.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.ResolveErrors = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|