@teambit/renaming 0.0.537 → 0.0.539
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/old-scope-exported.js +2 -2
- package/dist/exceptions/old-scope-exported.js.map +1 -1
- package/dist/exceptions/old-scope-tagged.js +2 -2
- package/dist/exceptions/old-scope-tagged.js.map +1 -1
- package/dist/{preview-1692155876143.js → preview-1692345627885.js} +2 -2
- package/dist/rename.cmd.js +3 -3
- package/dist/rename.cmd.js.map +1 -1
- package/dist/scope-rename.cmd.d.ts +1 -0
- package/dist/scope-rename.cmd.js +5 -2
- package/dist/scope-rename.cmd.js.map +1 -1
- package/exceptions/old-scope-exported.ts +2 -2
- package/exceptions/old-scope-tagged.ts +2 -2
- package/package-tar/teambit-renaming-0.0.539.tgz +0 -0
- package/package.json +18 -18
- package/package-tar/teambit-renaming-0.0.537.tgz +0 -0
|
@@ -15,8 +15,8 @@ class OldScopeExported extends _bitError().BitError {
|
|
|
15
15
|
constructor(idsStr) {
|
|
16
16
|
super(`unable to rename the scope for the following exported components:\n${idsStr.join(', ')}
|
|
17
17
|
because these components were exported already, other components may use them and they'll break upon rename.
|
|
18
|
-
instead, deprecate the
|
|
19
|
-
|
|
18
|
+
instead, run "bit rename" to deprecate the current component and create a new component as a fork of it,
|
|
19
|
+
specifying the new scope with the --scope flag`);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.OldScopeExported = OldScopeExported;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","OldScopeExported","BitError","constructor","idsStr","join","exports"],"sources":["old-scope-exported.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class OldScopeExported extends BitError {\n constructor(idsStr: string[]) {\n super(`unable to rename the scope for the following exported components:\\n${idsStr.join(', ')}\nbecause these components were exported already, other components may use them and they'll break upon rename.\ninstead,
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","OldScopeExported","BitError","constructor","idsStr","join","exports"],"sources":["old-scope-exported.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class OldScopeExported extends BitError {\n constructor(idsStr: string[]) {\n super(`unable to rename the scope for the following exported components:\\n${idsStr.join(', ')}\nbecause these components were exported already, other components may use them and they'll break upon rename.\ninstead, run \"bit rename\" to deprecate the current component and create a new component as a fork of it,\nspecifying the new scope with the --scope flag`);\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,MAAgB,EAAE;IAC5B,KAAK,CAAE,sEAAqEA,MAAM,CAACC,IAAI,CAAC,IAAI,CAAE;AAClG;AACA;AACA,+CAA+C,CAAC;EAC9C;AACF;AAACC,OAAA,CAAAL,gBAAA,GAAAA,gBAAA"}
|
|
@@ -14,8 +14,8 @@ function _bitError() {
|
|
|
14
14
|
class OldScopeTagged extends _bitError().BitError {
|
|
15
15
|
constructor(idsStr) {
|
|
16
16
|
super(`unable to rename the scope for the following tagged components:\n${idsStr.join(', ')}
|
|
17
|
-
because these components
|
|
18
|
-
to be able to rename the scope, please untag
|
|
17
|
+
because these components have been locally tagged, the component's objects have the dependencies data of the old-scope.
|
|
18
|
+
to be able to rename the scope, please untag these components (using "bit reset") and then re-run the scope-rename command`);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.OldScopeTagged = OldScopeTagged;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","OldScopeTagged","BitError","constructor","idsStr","join","exports"],"sources":["old-scope-tagged.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class OldScopeTagged extends BitError {\n constructor(idsStr: string[]) {\n super(`unable to rename the scope for the following tagged components:\\n${idsStr.join(', ')}\nbecause these components
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","OldScopeTagged","BitError","constructor","idsStr","join","exports"],"sources":["old-scope-tagged.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class OldScopeTagged extends BitError {\n constructor(idsStr: string[]) {\n super(`unable to rename the scope for the following tagged components:\\n${idsStr.join(', ')}\nbecause these components have been locally tagged, the component's objects have the dependencies data of the old-scope.\nto be able to rename the scope, please untag these components (using \"bit reset\") and then re-run the scope-rename command`);\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,cAAc,SAASC,oBAAQ,CAAC;EAC3CC,WAAWA,CAACC,MAAgB,EAAE;IAC5B,KAAK,CAAE,oEAAmEA,MAAM,CAACC,IAAI,CAAC,IAAI,CAAE;AAChG;AACA,2HAA2H,CAAC;EAC1H;AACF;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.539/dist/renaming.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.539/dist/renaming.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/dist/rename.cmd.js
CHANGED
|
@@ -25,19 +25,19 @@ class RenameCmd {
|
|
|
25
25
|
constructor(renaming) {
|
|
26
26
|
this.renaming = renaming;
|
|
27
27
|
(0, _defineProperty2().default)(this, "name", 'rename <current-name> <new-name>');
|
|
28
|
-
(0, _defineProperty2().default)(this, "description", 'rename component. if tagged/exported, create a new component and deprecate the original component');
|
|
28
|
+
(0, _defineProperty2().default)(this, "description", 'rename component. if tagged/exported, create a new component and deprecate the original component. otherwise just renames current component');
|
|
29
29
|
(0, _defineProperty2().default)(this, "helpUrl", 'docs/components/renaming-components');
|
|
30
30
|
(0, _defineProperty2().default)(this, "arguments", [{
|
|
31
31
|
name: 'current-name',
|
|
32
32
|
description: 'the current component name (without its scope name)'
|
|
33
33
|
}, {
|
|
34
34
|
name: 'new-name',
|
|
35
|
-
description:
|
|
35
|
+
description: "the new component name (without its scope name. use --scope to define the new component's scope)"
|
|
36
36
|
}]);
|
|
37
37
|
(0, _defineProperty2().default)(this, "group", 'collaborate');
|
|
38
38
|
(0, _defineProperty2().default)(this, "skipWorkspace", true);
|
|
39
39
|
(0, _defineProperty2().default)(this, "alias", '');
|
|
40
|
-
(0, _defineProperty2().default)(this, "options", [['s', 'scope <scope-name>', '
|
|
40
|
+
(0, _defineProperty2().default)(this, "options", [['s', 'scope <scope-name>', 'define the scope for the newly created component'], ['p', 'path <relative-path>', 'relative path in the workspace to place new component in. by default, the directory of the new component is from your workspace\'s "defaultScope" value'], ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'], ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name']]);
|
|
41
41
|
(0, _defineProperty2().default)(this, "loader", true);
|
|
42
42
|
(0, _defineProperty2().default)(this, "migration", true);
|
|
43
43
|
(0, _defineProperty2().default)(this, "remoteOp", true);
|
package/dist/rename.cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","RenameCmd","constructor","renaming","_defineProperty2","default","name","description","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString","exports"],"sources":["rename.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { RenamingMain } from '.';\n\nexport type RenameOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n preserve?: boolean;\n};\n\nexport class RenameCmd implements Command {\n name = 'rename <current-name> <new-name>';\n description
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","RenameCmd","constructor","renaming","_defineProperty2","default","name","description","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString","exports"],"sources":["rename.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { RenamingMain } from '.';\n\nexport type RenameOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n preserve?: boolean;\n};\n\nexport class RenameCmd implements Command {\n name = 'rename <current-name> <new-name>';\n description =\n 'rename component. if tagged/exported, create a new component and deprecate the original component. otherwise just renames current component';\n helpUrl = 'docs/components/renaming-components';\n arguments = [\n {\n name: 'current-name',\n description: 'the current component name (without its scope name)',\n },\n {\n name: 'new-name',\n description: \"the new component name (without its scope name. use --scope to define the new component's scope)\",\n },\n ];\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <scope-name>', 'define the scope for the newly created component'],\n [\n 'p',\n 'path <relative-path>',\n 'relative path in the workspace to place new component in. by default, the directory of the new component is from your workspace\\'s \"defaultScope\" value',\n ],\n ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'],\n ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'],\n ] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private renaming: RenamingMain) {}\n\n async report([sourceId, targetId]: [string, string], options: RenameOptions): Promise<string> {\n const results = await this.renaming.rename(sourceId, targetId, options);\n return chalk.green(\n `successfully renamed ${chalk.bold(results.sourceId.toString())} to ${chalk.bold(results.targetId.toString())}`\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAWO,MAAMG,SAAS,CAAoB;EAgCxCC,WAAWA,CAASC,QAAsB,EAAE;IAAA,KAAxBA,QAAsB,GAAtBA,QAAsB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBA/BnC,kCAAkC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBAEvC,6IAA6I;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACrI,qCAAqC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACnC,CACV;MACEC,IAAI,EAAE,cAAc;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,UAAU;MAChBC,WAAW,EAAE;IACf,CAAC,CACF;IAAA,IAAAH,gBAAA,GAAAC,OAAA,iBACO,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,yBACL,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACZ,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACA,CACR,CAAC,GAAG,EAAE,oBAAoB,EAAE,kDAAkD,CAAC,EAC/E,CACE,GAAG,EACH,sBAAsB,EACtB,yJAAyJ,CAC1J,EACD,CAAC,GAAG,EAAE,UAAU,EAAE,0FAA0F,CAAC,EAC7G,CAAC,EAAE,EAAE,UAAU,EAAE,gFAAgF,CAAC,CACnG;IAAA,IAAAD,gBAAA,GAAAC,OAAA,kBACQ,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACD,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACL,IAAI;EAE8B;EAE7C,MAAMG,MAAMA,CAAC,CAACC,QAAQ,EAAEC,QAAQ,CAAmB,EAAEC,OAAsB,EAAmB;IAC5F,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACT,QAAQ,CAACU,MAAM,CAACJ,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,CAAC;IACvE,OAAOG,gBAAK,CAACC,KAAK,CACf,wBAAuBD,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACH,QAAQ,CAACQ,QAAQ,CAAC,CAAC,CAAE,OAAMH,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACF,QAAQ,CAACO,QAAQ,CAAC,CAAC,CAAE,EAChH,CAAC;EACH;AACF;AAACC,OAAA,CAAAjB,SAAA,GAAAA,SAAA"}
|
package/dist/scope-rename.cmd.js
CHANGED
|
@@ -25,7 +25,10 @@ class ScopeRenameCmd {
|
|
|
25
25
|
constructor(renaming) {
|
|
26
26
|
this.renaming = renaming;
|
|
27
27
|
(0, _defineProperty2().default)(this, "name", 'rename <current-scope-name> <new-scope-name>');
|
|
28
|
-
(0, _defineProperty2().default)(this, "description", "Renames the scope name for all components with the specified 'current scope name'");
|
|
28
|
+
(0, _defineProperty2().default)(this, "description", "Renames the scope name for all components with the specified 'current scope name' - only available for new components that have not yet been snapped/tagged");
|
|
29
|
+
(0, _defineProperty2().default)(this, "extendedDescription", `Note: if \`<current-scope-name>\` is also the defaultScope for the workspace, this command will set \`<new-scope-name>\`
|
|
30
|
+
as the defaultScope instead, and that will then be set for all components by default. You may see updates in your .bitmap file
|
|
31
|
+
as a result of this change`);
|
|
29
32
|
(0, _defineProperty2().default)(this, "arguments", [{
|
|
30
33
|
name: 'current-scope-name',
|
|
31
34
|
description: 'the scope name to be replaced by another scope name'
|
|
@@ -33,7 +36,7 @@ class ScopeRenameCmd {
|
|
|
33
36
|
name: 'new-scope-name',
|
|
34
37
|
description: 'a new scope name to replace the current scope name'
|
|
35
38
|
}]);
|
|
36
|
-
(0, _defineProperty2().default)(this, "options", [['r', 'refactor', 'update the import statements in all dependent components to the new package name (
|
|
39
|
+
(0, _defineProperty2().default)(this, "options", [['r', 'refactor', 'update the import statements in all dependent components to the new package name (i.e. with the new scope name)']]);
|
|
37
40
|
(0, _defineProperty2().default)(this, "group", 'development');
|
|
38
41
|
}
|
|
39
42
|
async report([oldName, newName], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","ScopeRenameCmd","constructor","renaming","_defineProperty2","default","name","description","report","oldName","newName","refactor","scopeRenamedComponentIds","refactoredIds","renameScope","title","chalk","green","renamedIdsStr","length","bold","map","c","changeScope","join","refactoredStr","exports"],"sources":["scope-rename.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { RenamingMain } from './renaming.main.runtime';\n\nexport class ScopeRenameCmd implements Command {\n name = 'rename <current-scope-name> <new-scope-name>';\n description
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","ScopeRenameCmd","constructor","renaming","_defineProperty2","default","name","description","report","oldName","newName","refactor","scopeRenamedComponentIds","refactoredIds","renameScope","title","chalk","green","renamedIdsStr","length","bold","map","c","changeScope","join","refactoredStr","exports"],"sources":["scope-rename.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { RenamingMain } from './renaming.main.runtime';\n\nexport class ScopeRenameCmd implements Command {\n name = 'rename <current-scope-name> <new-scope-name>';\n description =\n \"Renames the scope name for all components with the specified 'current scope name' - only available for new components that have not yet been snapped/tagged\";\n extendedDescription = `Note: if \\`<current-scope-name>\\` is also the defaultScope for the workspace, this command will set \\`<new-scope-name>\\`\nas the defaultScope instead, and that will then be set for all components by default. You may see updates in your .bitmap file\nas a result of this change`;\n arguments = [\n { name: 'current-scope-name', description: 'the scope name to be replaced by another scope name' },\n { name: 'new-scope-name', description: 'a new scope name to replace the current scope name' },\n ];\n options = [\n [\n 'r',\n 'refactor',\n 'update the import statements in all dependent components to the new package name (i.e. with the new scope name)',\n ],\n ] as CommandOptions;\n group = 'development';\n\n constructor(private renaming: RenamingMain) {}\n\n async report([oldName, newName]: [string, string], { refactor }: { refactor?: boolean }) {\n const { scopeRenamedComponentIds, refactoredIds } = await this.renaming.renameScope(oldName, newName, { refactor });\n const title = chalk.green(`successfully replaced \"${oldName}\" scope with \"${newName}\"`);\n const renamedIdsStr = scopeRenamedComponentIds.length\n ? `\\n${chalk.bold(\n 'the following components were affected by this scope-name change:'\n )}\\n${scopeRenamedComponentIds.map((c) => c.changeScope(newName)).join('\\n')}`\n : '';\n const refactoredStr = refactoredIds.length\n ? `\\n\\n${chalk.bold('the following components have been refactored:')}\\n${refactoredIds.join('\\n')}`\n : '';\n return `${title}\\n${renamedIdsStr}${refactoredStr}`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAMG,cAAc,CAAoB;EAoB7CC,WAAWA,CAASC,QAAsB,EAAE;IAAA,KAAxBA,QAAsB,GAAtBA,QAAsB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAnBnC,8CAA8C;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBAEnD,6JAA6J;IAAA,IAAAD,gBAAA,GAAAC,OAAA,+BACxI;AACzB;AACA,2BAA2B;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBACb,CACV;MAAEC,IAAI,EAAE,oBAAoB;MAAEC,WAAW,EAAE;IAAsD,CAAC,EAClG;MAAED,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAqD,CAAC,CAC9F;IAAA,IAAAH,gBAAA,GAAAC,OAAA,mBACS,CACR,CACE,GAAG,EACH,UAAU,EACV,iHAAiH,CAClH,CACF;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACO,aAAa;EAEwB;EAE7C,MAAMG,MAAMA,CAAC,CAACC,OAAO,EAAEC,OAAO,CAAmB,EAAE;IAAEC;EAAiC,CAAC,EAAE;IACvF,MAAM;MAAEC,wBAAwB;MAAEC;IAAc,CAAC,GAAG,MAAM,IAAI,CAACV,QAAQ,CAACW,WAAW,CAACL,OAAO,EAAEC,OAAO,EAAE;MAAEC;IAAS,CAAC,CAAC;IACnH,MAAMI,KAAK,GAAGC,gBAAK,CAACC,KAAK,CAAE,0BAAyBR,OAAQ,iBAAgBC,OAAQ,GAAE,CAAC;IACvF,MAAMQ,aAAa,GAAGN,wBAAwB,CAACO,MAAM,GAChD,KAAIH,gBAAK,CAACI,IAAI,CACb,mEACF,CAAE,KAAIR,wBAAwB,CAACS,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACb,OAAO,CAAC,CAAC,CAACc,IAAI,CAAC,IAAI,CAAE,EAAC,GAC9E,EAAE;IACN,MAAMC,aAAa,GAAGZ,aAAa,CAACM,MAAM,GACrC,OAAMH,gBAAK,CAACI,IAAI,CAAC,gDAAgD,CAAE,KAAIP,aAAa,CAACW,IAAI,CAAC,IAAI,CAAE,EAAC,GAClG,EAAE;IACN,OAAQ,GAAET,KAAM,KAAIG,aAAc,GAAEO,aAAc,EAAC;EACrD;AACF;AAACC,OAAA,CAAAzB,cAAA,GAAAA,cAAA"}
|
|
@@ -4,7 +4,7 @@ export class OldScopeExported extends BitError {
|
|
|
4
4
|
constructor(idsStr: string[]) {
|
|
5
5
|
super(`unable to rename the scope for the following exported components:\n${idsStr.join(', ')}
|
|
6
6
|
because these components were exported already, other components may use them and they'll break upon rename.
|
|
7
|
-
instead, deprecate the
|
|
8
|
-
|
|
7
|
+
instead, run "bit rename" to deprecate the current component and create a new component as a fork of it,
|
|
8
|
+
specifying the new scope with the --scope flag`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -3,7 +3,7 @@ import { BitError } from '@teambit/bit-error';
|
|
|
3
3
|
export class OldScopeTagged extends BitError {
|
|
4
4
|
constructor(idsStr: string[]) {
|
|
5
5
|
super(`unable to rename the scope for the following tagged components:\n${idsStr.join(', ')}
|
|
6
|
-
because these components
|
|
7
|
-
to be able to rename the scope, please untag
|
|
6
|
+
because these components have been locally tagged, the component's objects have the dependencies data of the old-scope.
|
|
7
|
+
to be able to rename the scope, please untag these components (using "bit reset") and then re-run the scope-rename command`);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/renaming",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.539",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/renaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "renaming",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.539"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
"@babel/runtime": "7.20.0",
|
|
17
17
|
"@teambit/harmony": "0.4.6",
|
|
18
18
|
"@teambit/legacy-bit-id": "1.0.0",
|
|
19
|
-
"@teambit/cli": "0.0.
|
|
20
|
-
"@teambit/component": "0.0.
|
|
21
|
-
"@teambit/graphql": "0.0.
|
|
22
|
-
"@teambit/compiler": "0.0.
|
|
23
|
-
"@teambit/component-writer": "0.0.
|
|
24
|
-
"@teambit/config": "0.0.
|
|
25
|
-
"@teambit/deprecation": "0.0.
|
|
26
|
-
"@teambit/envs": "0.0.
|
|
27
|
-
"@teambit/install": "0.0.
|
|
28
|
-
"@teambit/logger": "0.0.
|
|
29
|
-
"@teambit/new-component-helper": "0.0.
|
|
30
|
-
"@teambit/refactoring": "0.0.
|
|
31
|
-
"@teambit/typescript": "0.0.
|
|
32
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
33
|
-
"@teambit/workspace": "0.0.
|
|
19
|
+
"@teambit/cli": "0.0.761",
|
|
20
|
+
"@teambit/component": "0.0.1135",
|
|
21
|
+
"@teambit/graphql": "0.0.1135",
|
|
22
|
+
"@teambit/compiler": "0.0.1135",
|
|
23
|
+
"@teambit/component-writer": "0.0.171",
|
|
24
|
+
"@teambit/config": "0.0.775",
|
|
25
|
+
"@teambit/deprecation": "0.0.1135",
|
|
26
|
+
"@teambit/envs": "0.0.1135",
|
|
27
|
+
"@teambit/install": "0.0.219",
|
|
28
|
+
"@teambit/logger": "0.0.854",
|
|
29
|
+
"@teambit/new-component-helper": "0.0.539",
|
|
30
|
+
"@teambit/refactoring": "0.0.432",
|
|
31
|
+
"@teambit/typescript": "0.0.1135",
|
|
32
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.103",
|
|
33
|
+
"@teambit/workspace": "0.0.1135",
|
|
34
34
|
"@teambit/bit-error": "0.0.402"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@teambit/legacy": "1.0.
|
|
46
|
+
"@teambit/legacy": "1.0.545",
|
|
47
47
|
"react": "^16.8.0 || ^17.0.0",
|
|
48
48
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
49
49
|
},
|
|
Binary file
|