@teambit/renaming 1.0.938 → 1.0.940

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.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.938/dist/renaming.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.938/dist/renaming.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.940/dist/renaming.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.940/dist/renaming.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -11,6 +11,13 @@ function _chalk() {
11
11
  };
12
12
  return data;
13
13
  }
14
+ function _cli() {
15
+ const data = require("@teambit/cli");
16
+ _cli = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
14
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
22
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
23
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
@@ -40,7 +47,7 @@ for local components: simply renames the existing component in place.`);
40
47
  }
41
48
  async report([sourceId, targetId], options) {
42
49
  const results = await this.renaming.rename(sourceId, targetId, options);
43
- return _chalk().default.green(`successfully renamed ${_chalk().default.bold(results.sourceId.toString())} to ${_chalk().default.bold(results.targetId.toString())}`);
50
+ return (0, _cli().formatSuccessSummary)(`renamed ${_chalk().default.bold(results.sourceId.toString())} to ${_chalk().default.bold(results.targetId.toString())}`);
44
51
  }
45
52
  }
46
53
  exports.RenameCmd = RenameCmd;
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","RenameCmd","constructor","renaming","name","description","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString","exports"],"sources":["rename.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { RenamingMain } from './renaming.main.runtime';\n\nexport type RenameOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n preserve?: boolean;\n ast?: boolean;\n deprecate?: boolean;\n};\n\nexport class RenameCmd implements Command {\n name = 'rename <current-name> <new-name>';\n description = 'change a component name';\n extendedDescription = `renames a component and optionally refactors dependent code to use the new name.\nfor exported components: creates a new component with the new name and marks the original as deleted.\nfor local components: simply renames the existing component in place.`;\n helpUrl = 'reference/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 = 'component-development';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <scope-name>', 'define the scope for the new component'],\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 ['', 'ast', 'use ast to transform files instead of regex'],\n ['', 'delete', 'DEPRECATED. this is now the default'],\n ['', 'deprecate', 'instead of deleting the original component, deprecating it'],\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 ] as CommandOptions;\n loader = 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.source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kBAC1D,0CAA0C;IAAAA,eAAA,oBACxC,CACV;MACEqB,IAAI,EAAE,cAAc;MACpBC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,UAAU;MAChBC,WAAW,EAAE;IACf,CAAC,CACF;IAAAtB,eAAA,gBACO,uBAAuB;IAAAA,eAAA,wBACf,IAAI;IAAAA,eAAA,gBACZ,EAAE;IAAAA,eAAA,kBACA,CACR,CAAC,GAAG,EAAE,oBAAoB,EAAE,wCAAwC,CAAC,EACrE,CAAC,GAAG,EAAE,UAAU,EAAE,0FAA0F,CAAC,EAC7G,CAAC,EAAE,EAAE,UAAU,EAAE,gFAAgF,CAAC,EAClG,CAAC,EAAE,EAAE,KAAK,EAAE,6CAA6C,CAAC,EAC1D,CAAC,EAAE,EAAE,QAAQ,EAAE,qCAAqC,CAAC,EACrD,CAAC,EAAE,EAAE,WAAW,EAAE,4DAA4D,CAAC,EAC/E,CACE,GAAG,EACH,sBAAsB,EACtB,yJAAyJ,CAC1J,CACF;IAAAA,eAAA,iBACQ,IAAI;IAAAA,eAAA,mBACF,IAAI;EAE8B;EAE7C,MAAMuB,MAAMA,CAAC,CAACC,QAAQ,EAAEC,QAAQ,CAAmB,EAAEC,OAAsB,EAAmB;IAC5F,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACP,QAAQ,CAACQ,MAAM,CAACJ,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,CAAC;IACvE,OAAOG,gBAAK,CAACC,KAAK,CAChB,wBAAwBD,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACH,QAAQ,CAACQ,QAAQ,CAAC,CAAC,CAAC,OAAOH,gBAAK,CAACE,IAAI,CAACJ,OAAO,CAACF,QAAQ,CAACO,QAAQ,CAAC,CAAC,CAAC,EAC/G,CAAC;EACH;AACF;AAACC,OAAA,CAAAf,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_cli","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","RenameCmd","constructor","renaming","name","description","report","sourceId","targetId","options","results","rename","formatSuccessSummary","chalk","bold","toString","exports"],"sources":["rename.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { formatSuccessSummary } from '@teambit/cli';\nimport type { RenamingMain } from './renaming.main.runtime';\n\nexport type RenameOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n preserve?: boolean;\n ast?: boolean;\n deprecate?: boolean;\n};\n\nexport class RenameCmd implements Command {\n name = 'rename <current-name> <new-name>';\n description = 'change a component name';\n extendedDescription = `renames a component and optionally refactors dependent code to use the new name.\nfor exported components: creates a new component with the new name and marks the original as deleted.\nfor local components: simply renames the existing component in place.`;\n helpUrl = 'reference/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 = 'component-development';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <scope-name>', 'define the scope for the new component'],\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 ['', 'ast', 'use ast to transform files instead of regex'],\n ['', 'delete', 'DEPRECATED. this is now the default'],\n ['', 'deprecate', 'instead of deleting the original component, deprecating it'],\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 ] as CommandOptions;\n loader = 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 formatSuccessSummary(\n `renamed ${chalk.bold(results.sourceId.toString())} to ${chalk.bold(results.targetId.toString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AA,GAAAA,SAAA","ignoreList":[]}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ScopeRenameOwnerCmd = void 0;
7
- function _chalk() {
8
- const data = _interopRequireDefault(require("chalk"));
9
- _chalk = function () {
7
+ function _cli() {
8
+ const data = require("@teambit/cli");
9
+ _cli = function () {
10
10
  return data;
11
11
  };
12
12
  return data;
@@ -18,7 +18,6 @@ function _scopeRename() {
18
18
  };
19
19
  return data;
20
20
  }
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
21
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
23
22
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
24
23
  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); }
@@ -43,9 +42,8 @@ class ScopeRenameOwnerCmd {
43
42
  const results = await this.renaming.renameOwner(oldName, newName, {
44
43
  refactor
45
44
  });
46
- const title = _chalk().default.green(`successfully replaced "${oldName}" owner with "${newName}"`);
47
45
  const renameOutput = (0, _scopeRename().renameScopeOutput)(results);
48
- return `${title}\n${renameOutput}`;
46
+ return (0, _cli().joinSections)([(0, _cli().formatSuccessSummary)(`replaced "${oldName}" owner with "${newName}"`), renameOutput]);
49
47
  }
50
48
  }
51
49
  exports.ScopeRenameOwnerCmd = ScopeRenameOwnerCmd;
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_scopeRename","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeRenameOwnerCmd","constructor","renaming","name","description","report","oldName","newName","refactor","results","renameOwner","title","chalk","green","renameOutput","renameScopeOutput","exports"],"sources":["scope-rename-owner.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport type { RenamingMain } from './renaming.main.runtime';\nimport { renameScopeOutput } from './scope-rename.cmd';\n\nexport class ScopeRenameOwnerCmd implements Command {\n name = 'rename-owner <current-owner-name> <new-owner-name>';\n description = \"Renames the owner part of the scope-name for all components with the specified 'current owner name'\";\n arguments = [\n { name: 'current-owner-name', description: 'the owner name to be replaced by another owner name' },\n { name: 'new-owner-name', description: 'a new owner name to replace the current owner name' },\n ];\n options = [\n [\n 'r',\n 'refactor',\n 'update the import statements in all dependent components to the new package name (that contains the new owner name)',\n ],\n ['', 'ast', 'use ast to transform files instead of regex'],\n ] as CommandOptions;\n group = 'component-config';\n\n constructor(private renaming: RenamingMain) {}\n\n async report([oldName, newName]: [string, string], { refactor }: { refactor?: boolean }) {\n const results = await this.renaming.renameOwner(oldName, newName, { refactor });\n const title = chalk.green(`successfully replaced \"${oldName}\" owner with \"${newName}\"`);\n const renameOutput = renameScopeOutput(results);\n return `${title}\\n${renameOutput}`;\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;AAEA,SAAAG,aAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuD,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CA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AO,GAAG,MAAM,IAAI,CAACP,QAAQ,CAACQ,WAAW,CAACJ,OAAO,EAAEC,OAAO,EAAE;MAAEC;IAAS,CAAC,CAAC;IAC/E,MAAMG,KAAK,GAAGC,gBAAK,CAACC,KAAK,CAAC,0BAA0BP,OAAO,iBAAiBC,OAAO,GAAG,CAAC;IACvF,MAAMO,YAAY,GAAG,IAAAC,gCAAiB,EAACN,OAAO,CAAC;IAC/C,OAAO,GAAGE,KAAK,KAAKG,YAAY,EAAE;EACpC;AACF;AAACE,OAAA,CAAAhB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_scopeRename","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeRenameOwnerCmd","constructor","renaming","name","description","report","oldName","newName","refactor","results","renameOwner","renameOutput","renameScopeOutput","joinSections","formatSuccessSummary","exports"],"sources":["scope-rename-owner.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport { formatSuccessSummary, joinSections } from '@teambit/cli';\nimport type { RenamingMain } from './renaming.main.runtime';\nimport { renameScopeOutput } from './scope-rename.cmd';\n\nexport class ScopeRenameOwnerCmd implements Command {\n name = 'rename-owner <current-owner-name> <new-owner-name>';\n description = \"Renames the owner part of the scope-name for all components with the specified 'current owner name'\";\n arguments = [\n { name: 'current-owner-name', description: 'the owner name to be replaced by another owner name' },\n { name: 'new-owner-name', description: 'a new owner name to replace the current owner name' },\n ];\n options = [\n [\n 'r',\n 'refactor',\n 'update the import statements in all dependent components to the new package name (that contains the new owner name)',\n ],\n ['', 'ast', 'use ast to transform files instead of regex'],\n ] as CommandOptions;\n group = 'component-config';\n\n constructor(private renaming: RenamingMain) {}\n\n async report([oldName, newName]: [string, string], { refactor }: { refactor?: boolean }) {\n const results = await this.renaming.renameOwner(oldName, newName, { refactor });\n const renameOutput = renameScopeOutput(results);\n return joinSections([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,IAAI,EAAE,oBAAoB;MAAEC,WAAW,EAAE;IAAsD,CAAC,EAClG;MAAED,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAqD,CAAC,CAC9F;IAAAvB,eAAA,kBACS,CACR,CACE,GAAG,EACH,UAAU,EACV,qHAAqH,CACtH,EACD,CAAC,EAAE,EAAE,KAAK,EAAE,6CAA6C,CAAC,CAC3D;IAAAA,eAAA,gBACO,kBAAkB;EAEmB;EAE7C,MAAMwB,MAAMA,CAAC,CAACC,OAAO,EAAEC,OAAO,CAAmB,EAAE;IAAEC;EAAiC,CAAC,EAAE;IACvF,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACP,QAAQ,CAACQ,WAAW,CAACJ,OAAO,EAAEC,OAAO,EAAE;MAAEC;IAAS,CAAC,CAAC;IAC/E,MAAMG,YAAY,GAAG,IAAAC,gCAAiB,EAACH,OAAO,CAAC;IAC/C,OAAO,IAAAI,mBAAY,EAAC,CAAC,IAAAC,2BAAoB,EAAC,aAAaR,OAAO,iBAAiBC,OAAO,GAAG,CAAC,EAAEI,YAAY,CAAC,CAAC;EAC5G;AACF;AAACI,OAAA,CAAAf,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ScopeRenameCmd = void 0;
7
7
  exports.renameScopeOutput = renameScopeOutput;
8
- function _chalk() {
9
- const data = _interopRequireDefault(require("chalk"));
10
- _chalk = function () {
8
+ function _cli() {
9
+ const data = require("@teambit/cli");
10
+ _cli = function () {
11
11
  return data;
12
12
  };
13
13
  return data;
14
14
  }
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
15
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
17
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
18
17
  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); }
@@ -44,9 +43,8 @@ as a result of this change`);
44
43
  deprecate,
45
44
  preserve
46
45
  });
47
- const title = _chalk().default.green(`successfully replaced "${oldName}" scope with "${newName}"`);
48
46
  const renameOutput = renameScopeOutput(result);
49
- return `${title}\n${renameOutput}`;
47
+ return (0, _cli().joinSections)([(0, _cli().formatSuccessSummary)(`replaced "${oldName}" scope with "${newName}"`), renameOutput]);
50
48
  }
51
49
  }
52
50
  exports.ScopeRenameCmd = ScopeRenameCmd;
@@ -55,9 +53,9 @@ function renameScopeOutput(renameResult) {
55
53
  renameData,
56
54
  refactoredIds
57
55
  } = renameResult;
58
- const renamedIdsStr = renameData.length ? `\n${_chalk().default.bold('the following components were affected by this scope-name change:')}\n${renameData.map(item => `${item.sourceId.toStringWithoutVersion()} ${item.isTagged ? '(deprecated) ' : ''}-> ${item.targetId.toString()}`).join('\n')}` : '';
59
- const refactoredStr = refactoredIds.length ? `\n\n${_chalk().default.bold('the following components have been refactored:')}\n${refactoredIds.join('\n')}` : '';
60
- return renamedIdsStr + refactoredStr;
56
+ const renamedSection = renameData.length ? [(0, _cli().formatTitle)(`affected components (${renameData.length})`), ...renameData.map(item => (0, _cli().formatItem)(`${item.sourceId.toStringWithoutVersion()} ${item.isTagged ? '(deprecated) ' : ''}-> ${item.targetId.toString()}`))].join('\n') : '';
57
+ const refactoredSection = refactoredIds.length ? [(0, _cli().formatTitle)(`refactored components (${refactoredIds.length})`), ...refactoredIds.map(id => (0, _cli().formatItem)(id.toString()))].join('\n') : '';
58
+ return (0, _cli().joinSections)([renamedSection, refactoredSection]);
61
59
  }
62
60
 
63
61
  //# sourceMappingURL=scope-rename.cmd.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeRenameCmd","constructor","renaming","name","description","report","oldName","newName","refactor","deprecate","preserve","result","renameScope","title","chalk","green","renameOutput","renameScopeOutput","exports","renameResult","renameData","refactoredIds","renamedIdsStr","length","bold","map","item","sourceId","toStringWithoutVersion","isTagged","targetId","toString","join","refactoredStr"],"sources":["scope-rename.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport type { RenameResult, RenamingMain } from './renaming.main.runtime';\n\nexport class ScopeRenameCmd implements Command {\n name = 'rename <current-scope-name> <new-scope-name>';\n description =\n \"rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones\";\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 ['', 'preserve', 'avoid renaming files and variables/classes according to the new scope name'],\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 ['', 'deprecate', 'for exported components, instead of deleting the original components, deprecating them'],\n ] as CommandOptions;\n group = 'component-config';\n\n constructor(private renaming: RenamingMain) {}\n\n async report(\n [oldName, newName]: [string, string],\n { refactor, deprecate, preserve }: { refactor?: boolean; deprecate?: boolean; preserve?: boolean }\n ) {\n const result = await this.renaming.renameScope(oldName, newName, { refactor, deprecate, preserve });\n const title = chalk.green(`successfully replaced \"${oldName}\" scope with \"${newName}\"`);\n const renameOutput = renameScopeOutput(result);\n return `${title}\\n${renameOutput}`;\n }\n}\n\nexport function renameScopeOutput(renameResult: RenameResult): string {\n const { renameData, refactoredIds } = renameResult;\n const renamedIdsStr = renameData.length\n ? `\\n${chalk.bold('the following components were affected by this scope-name change:')}\\n${renameData\n .map(\n (item) =>\n `${item.sourceId.toStringWithoutVersion()} ${\n item.isTagged ? '(deprecated) ' : ''\n }-> ${item.targetId.toString()}`\n )\n .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 renamedIdsStr + refactoredStr;\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;AAA0B,SAAAC,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK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GF,YAAY;EAClD,MAAMG,aAAa,GAAGF,UAAU,CAACG,MAAM,GACnC,KAAKT,gBAAK,CAACU,IAAI,CAAC,mEAAmE,CAAC,KAAKJ,UAAU,CAChGK,GAAG,CACDC,IAAI,IACH,GAAGA,IAAI,CAACC,QAAQ,CAACC,sBAAsB,CAAC,CAAC,IACvCF,IAAI,CAACG,QAAQ,GAAG,eAAe,GAAG,EAAE,MAChCH,IAAI,CAACI,QAAQ,CAACC,QAAQ,CAAC,CAAC,EAClC,CAAC,CACAC,IAAI,CAAC,IAAI,CAAC,EAAE,GACf,EAAE;EACN,MAAMC,aAAa,GAAGZ,aAAa,CAACE,MAAM,GACtC,OAAOT,gBAAK,CAACU,IAAI,CAAC,gDAAgD,CAAC,KAAKH,aAAa,CAACW,IAAI,CAAC,IAAI,CAAC,EAAE,GAClG,EAAE;EACN,OAAOV,aAAa,GAAGW,aAAa;AACtC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeRenameCmd","constructor","renaming","name","description","report","oldName","newName","refactor","deprecate","preserve","result","renameScope","renameOutput","renameScopeOutput","joinSections","formatSuccessSummary","exports","renameResult","renameData","refactoredIds","renamedSection","length","formatTitle","map","item","formatItem","sourceId","toStringWithoutVersion","isTagged","targetId","toString","join","refactoredSection","id"],"sources":["scope-rename.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport { formatTitle, formatItem, formatSuccessSummary, joinSections } from '@teambit/cli';\nimport type { RenameResult, RenamingMain } from './renaming.main.runtime';\n\nexport class ScopeRenameCmd implements Command {\n name = 'rename <current-scope-name> <new-scope-name>';\n description =\n \"rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones\";\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 ['', 'preserve', 'avoid renaming files and variables/classes according to the new scope name'],\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 ['', 'deprecate', 'for exported components, instead of deleting the original components, deprecating them'],\n ] as CommandOptions;\n group = 'component-config';\n\n constructor(private renaming: RenamingMain) {}\n\n async report(\n [oldName, newName]: [string, string],\n { refactor, deprecate, preserve }: { refactor?: boolean; deprecate?: boolean; preserve?: boolean }\n ) {\n const result = await this.renaming.renameScope(oldName, newName, { refactor, deprecate, preserve });\n const renameOutput = renameScopeOutput(result);\n return joinSections([formatSuccessSummary(`replaced \"${oldName}\" scope with \"${newName}\"`), renameOutput]);\n }\n}\n\nexport function renameScopeOutput(renameResult: RenameResult): string {\n const { renameData, refactoredIds } = renameResult;\n const renamedSection = renameData.length\n ? [\n formatTitle(`affected components (${renameData.length})`),\n ...renameData.map((item) =>\n formatItem(\n `${item.sourceId.toStringWithoutVersion()} ${item.isTagged ? '(deprecated) ' : ''}-> ${item.targetId.toString()}`\n )\n ),\n ].join('\\n')\n : '';\n const refactoredSection = refactoredIds.length\n ? [\n formatTitle(`refactored components (${refactoredIds.length})`),\n ...refactoredIds.map((id) => formatItem(id.toString())),\n ].join('\\n')\n : '';\n return joinSections([renamedSection, refactoredSection]);\n}\n"],"mappings":";;;;;;;AACA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2F,SAAAE,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAA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cAAc,EAAEY,iBAAiB,CAAC,CAAC;AAC1D","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/renaming",
3
- "version": "1.0.938",
3
+ "version": "1.0.940",
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": "1.0.938"
9
+ "version": "1.0.940"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -16,31 +16,31 @@
16
16
  "p-map-series": "2.1.0",
17
17
  "@teambit/harmony": "0.4.7",
18
18
  "@teambit/legacy-bit-id": "1.1.3",
19
- "@teambit/bit-error": "0.0.404",
20
- "@teambit/cli": "0.0.1314",
21
- "@teambit/component": "1.0.938",
22
- "@teambit/graphql": "1.0.938",
23
- "@teambit/compiler": "1.0.938",
24
- "@teambit/component-writer": "1.0.938",
25
- "@teambit/config": "0.0.1489",
26
- "@teambit/deprecation": "1.0.938",
27
- "@teambit/envs": "1.0.938",
28
- "@teambit/install": "1.0.938",
29
- "@teambit/logger": "0.0.1407",
30
- "@teambit/new-component-helper": "1.0.938",
31
- "@teambit/refactoring": "1.0.938",
32
- "@teambit/remove": "1.0.938",
33
19
  "@teambit/workspace.modules.node-modules-linker": "0.0.337",
34
- "@teambit/workspace": "1.0.938"
20
+ "@teambit/bit-error": "0.0.404",
21
+ "@teambit/cli": "0.0.1315",
22
+ "@teambit/component": "1.0.940",
23
+ "@teambit/graphql": "1.0.940",
24
+ "@teambit/compiler": "1.0.940",
25
+ "@teambit/component-writer": "1.0.940",
26
+ "@teambit/config": "0.0.1490",
27
+ "@teambit/deprecation": "1.0.940",
28
+ "@teambit/envs": "1.0.940",
29
+ "@teambit/install": "1.0.940",
30
+ "@teambit/logger": "0.0.1408",
31
+ "@teambit/new-component-helper": "1.0.940",
32
+ "@teambit/refactoring": "1.0.940",
33
+ "@teambit/remove": "1.0.940",
34
+ "@teambit/workspace": "1.0.940"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/fs-extra": "9.0.7",
38
38
  "@types/lodash": "4.14.165",
39
39
  "@types/mocha": "9.1.0",
40
- "@teambit/harmony.envs.core-aspect-env": "0.1.4",
41
40
  "@teambit/component.testing.mock-components": "0.0.376",
42
41
  "@teambit/harmony.testing.load-aspect": "0.0.371",
43
- "@teambit/workspace.testing.mock-workspace": "0.0.173"
42
+ "@teambit/workspace.testing.mock-workspace": "0.0.173",
43
+ "@teambit/harmony.envs.core-aspect-env": "0.1.4"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": "^17.0.0 || ^18.0.0",