@teambit/tracker 1.0.1060 → 1.0.1062
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/exceptions/missing-main-file-multiple-components.js +1 -1
- package/dist/exceptions/missing-main-file-multiple-components.js.map +1 -1
- package/dist/exceptions/parent-dir-tracked.js +2 -2
- package/dist/exceptions/parent-dir-tracked.js.map +1 -1
- package/exceptions/missing-main-file-multiple-components.ts +1 -1
- package/exceptions/parent-dir-tracked.ts +2 -2
- package/package.json +9 -9
- /package/dist/{preview-1784148848422.js → preview-1784226359095.js} +0 -0
|
@@ -31,7 +31,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
31
31
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
32
|
class MissingMainFileMultipleComponents extends _bitError().BitError {
|
|
33
33
|
constructor(componentIds) {
|
|
34
|
-
super(`error: the components ${_chalk().default.bold(componentIds.join(', '))}
|
|
34
|
+
super(`error: the components ${_chalk().default.bold(componentIds.join(', '))} do not contain a main file.\nplease either use --id to group all added files as one component or use our DSL to define the main file dynamically.\nsee troubleshooting at ${_legacy().BASE_DOCS_DOMAIN}components/component-main-file`);
|
|
35
35
|
_defineProperty(this, "componentIds", void 0);
|
|
36
36
|
this.componentIds = componentIds;
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","_chalk","_interopRequireDefault","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MissingMainFileMultipleComponents","BitError","constructor","componentIds","chalk","bold","join","BASE_DOCS_DOMAIN","exports"],"sources":["missing-main-file-multiple-components.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport chalk from 'chalk';\nimport { BASE_DOCS_DOMAIN } from '@teambit/legacy.constants';\n\nexport default class MissingMainFileMultipleComponents extends BitError {\n componentIds: string[];\n\n constructor(componentIds: string[]) {\n super(\n `error: the components ${chalk.bold(\n componentIds.join(', ')\n )}
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","_chalk","_interopRequireDefault","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MissingMainFileMultipleComponents","BitError","constructor","componentIds","chalk","bold","join","BASE_DOCS_DOMAIN","exports"],"sources":["missing-main-file-multiple-components.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport chalk from 'chalk';\nimport { BASE_DOCS_DOMAIN } from '@teambit/legacy.constants';\n\nexport default class MissingMainFileMultipleComponents extends BitError {\n componentIds: string[];\n\n constructor(componentIds: string[]) {\n super(\n `error: the components ${chalk.bold(\n componentIds.join(', ')\n )} do not contain a main file.\\nplease either use --id to group all added files as one component or use our DSL to define the main file dynamically.\\nsee troubleshooting at ${BASE_DOCS_DOMAIN}components/component-main-file`\n );\n this.componentIds = componentIds;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6D,S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) {
|
|
16
16
|
// TODO @david: separate error outputs for `bit create` and `bit add`
|
|
17
|
-
super(`components can't be nested under other components. unable to create a component in directory "${currentDir}" which is nested
|
|
18
|
-
using 'bit create', choose a different path
|
|
17
|
+
super(`components can't be nested under other components. unable to create a component in directory "${currentDir}" which is nested under component "${componentId}".
|
|
18
|
+
using 'bit create', choose a different path with the '--path' flag or if using 'bit add' put the component in a different directory`);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.ParentDirTracked = ParentDirTracked;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","ParentDirTracked","BitError","constructor","parentDir","componentId","currentDir","exports"],"sources":["parent-dir-tracked.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class ParentDirTracked extends BitError {\n constructor(parentDir: string, componentId: string, currentDir: string) {\n // TODO @david: separate error outputs for `bit create` and `bit add`\n super(`components can't be nested under other components. unable to create a component in directory \"${currentDir}\" which is nested
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","ParentDirTracked","BitError","constructor","parentDir","componentId","currentDir","exports"],"sources":["parent-dir-tracked.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class ParentDirTracked extends BitError {\n constructor(parentDir: string, componentId: string, currentDir: string) {\n // TODO @david: separate error outputs for `bit create` and `bit add`\n super(`components can't be nested under other components. unable to create a component in directory \"${currentDir}\" which is nested under component \"${componentId}\".\nusing 'bit create', choose a different path with the '--path' flag or if using 'bit add' put the component in a different directory`);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,gBAAgB,SAASC,oBAAQ,CAAC;EAC7CC,WAAWA,CAACC,SAAiB,EAAEC,WAAmB,EAAEC,UAAkB,EAAE;IACtE;IACA,KAAK,CAAC,iGAAiGA,UAAU,sCAAsCD,WAAW;AACtK,oIAAoI,CAAC;EACnI;AACF;AAACE,OAAA,CAAAN,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ export default class MissingMainFileMultipleComponents extends BitError {
|
|
|
9
9
|
super(
|
|
10
10
|
`error: the components ${chalk.bold(
|
|
11
11
|
componentIds.join(', ')
|
|
12
|
-
)}
|
|
12
|
+
)} do not contain a main file.\nplease either use --id to group all added files as one component or use our DSL to define the main file dynamically.\nsee troubleshooting at ${BASE_DOCS_DOMAIN}components/component-main-file`
|
|
13
13
|
);
|
|
14
14
|
this.componentIds = componentIds;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ import { BitError } from '@teambit/bit-error';
|
|
|
3
3
|
export class ParentDirTracked extends BitError {
|
|
4
4
|
constructor(parentDir: string, componentId: string, currentDir: string) {
|
|
5
5
|
// TODO @david: separate error outputs for `bit create` and `bit add`
|
|
6
|
-
super(`components can't be nested under other components. unable to create a component in directory "${currentDir}" which is nested
|
|
7
|
-
using 'bit create', choose a different path
|
|
6
|
+
super(`components can't be nested under other components. unable to create a component in directory "${currentDir}" which is nested under component "${componentId}".
|
|
7
|
+
using 'bit create', choose a different path with the '--path' flag or if using 'bit add' put the component in a different directory`);
|
|
8
8
|
}
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/tracker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1062",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/tracker",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "tracker",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1062"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"string-format": "0.5.0",
|
|
20
20
|
"@teambit/bit-error": "0.0.404",
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
21
|
+
"@teambit/cli": "0.0.1352",
|
|
22
22
|
"@teambit/legacy.utils": "0.0.42",
|
|
23
23
|
"@teambit/component-id": "1.2.4",
|
|
24
24
|
"@teambit/legacy-bit-id": "1.1.3",
|
|
25
25
|
"@teambit/legacy.analytics": "0.0.98",
|
|
26
|
-
"@teambit/legacy.bit-map": "0.0.
|
|
26
|
+
"@teambit/legacy.bit-map": "0.0.194",
|
|
27
27
|
"@teambit/legacy.constants": "0.0.34",
|
|
28
|
-
"@teambit/legacy.consumer": "0.0.
|
|
28
|
+
"@teambit/legacy.consumer": "0.0.137",
|
|
29
29
|
"@teambit/legacy.logger": "0.0.49",
|
|
30
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
30
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.368",
|
|
31
31
|
"@teambit/harmony": "0.4.12",
|
|
32
|
-
"@teambit/logger": "0.0.
|
|
33
|
-
"@teambit/workspace": "1.0.
|
|
34
|
-
"@teambit/envs": "1.0.
|
|
32
|
+
"@teambit/logger": "0.0.1445",
|
|
33
|
+
"@teambit/workspace": "1.0.1062",
|
|
34
|
+
"@teambit/envs": "1.0.1062"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/fs-extra": "9.0.7",
|
|
File without changes
|