@teambit/renaming 1.0.407 → 1.0.409

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,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="1" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/renaming@1.0.407" tests="1" failures="0" errors="0" skipped="0">
4
- <testcase classname="dist/renaming.spec.js" name="should bring the files back" time="0.001"/>
3
+ <testsuite name="teambit.component/renaming@1.0.409" tests="1" failures="0" errors="0" skipped="0">
4
+ <testcase classname="dist/renaming.spec.js" name="should bring the files back"/>
5
5
  </testsuite>
6
6
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/renaming-preview"]=t():e["teambit.component/renaming-preview"]=t()}(self,(()=>(()=>{"use strict";var e={81688:(e,t,o)=>{var n={id:"teambit.component/renaming@1.0.407",homepage:"https://bit.cloud/teambit/component/renaming",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/rename.svg"}));a.__bit_component=n,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>v,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(81688);o(41594);const a=MdxJsReact,c=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,a.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(c.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const m=[i],f=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/renaming-preview"]=t():e["teambit.component/renaming-preview"]=t()}(self,(()=>(()=>{"use strict";var e={30622:(e,t,o)=>{var n={id:"teambit.component/renaming@1.0.409",homepage:"https://bit.cloud/teambit/component/renaming",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/rename.svg"}));a.__bit_component=n,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>v,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(30622);o(41594);const a=MdxJsReact,c=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,a.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(c.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const m=[i],f=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -2639,7 +2639,7 @@
2639
2639
  "componentId": {
2640
2640
  "scope": "teambit.component",
2641
2641
  "name": "renaming",
2642
- "version": "1.0.407"
2642
+ "version": "1.0.409"
2643
2643
  },
2644
2644
  "taggedModuleExports": []
2645
2645
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.407/dist/renaming.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.407/dist/renaming.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.409/dist/renaming.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.409/dist/renaming.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -31,7 +31,7 @@ class RenameCmd {
31
31
  _defineProperty(this, "group", 'collaborate');
32
32
  _defineProperty(this, "skipWorkspace", true);
33
33
  _defineProperty(this, "alias", '');
34
- _defineProperty(this, "options", [['s', 'scope <scope-name>', 'define the scope for the new component'], ['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'], ['', 'ast', 'EXPERIMENTAL. use ast to transform files instead of regex'], ['', 'delete', 'DEPRECATED. this is now the default'], ['', 'deprecate', 'instead of deleting the original component, deprecating it'], ['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']]);
34
+ _defineProperty(this, "options", [['s', 'scope <scope-name>', 'define the scope for the new component'], ['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'], ['', 'ast', 'use ast to transform files instead of regex'], ['', 'delete', 'DEPRECATED. this is now the default'], ['', 'deprecate', 'instead of deleting the original component, deprecating it'], ['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']]);
35
35
  _defineProperty(this, "loader", true);
36
36
  _defineProperty(this, "remoteOp", true);
37
37
  }
@@ -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 { Command, CommandOptions } from '@teambit/cli';\nimport { 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 =\n 'rename component. if exported, create a new component and delete the original component. otherwise just renames current component';\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 = 'collaborate';\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', 'EXPERIMENTAL. 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.sourceId.toString())} to ${chalk.bold(results.targetId.toString())}`\n );\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,O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AE,UAAU;MAChBC,WAAW,EAAE;IACf,CAAC,CACF;IAAAtB,eAAA,gBACO,aAAa;IAAAA,eAAA,wBACL,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,2DAA2D,CAAC,EACxE,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","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 { Command, CommandOptions } from '@teambit/cli';\nimport { 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 =\n 'rename component. if exported, create a new component and delete the original component. otherwise just renames current component';\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 = 'collaborate';\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.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;AAA0B,SAAAC,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAA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AAwC,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":[]}
@@ -34,7 +34,7 @@ class ScopeRenameOwnerCmd {
34
34
  name: 'new-owner-name',
35
35
  description: 'a new owner name to replace the current owner name'
36
36
  }]);
37
- _defineProperty(this, "options", [['r', 'refactor', 'update the import statements in all dependent components to the new package name (that contains the new owner name)'], ['', 'ast', 'EXPERIMENTAL. use ast to transform files instead of regex']]);
37
+ _defineProperty(this, "options", [['r', 'refactor', 'update the import statements in all dependent components to the new package name (that contains the new owner name)'], ['', 'ast', 'use ast to transform files instead of regex']]);
38
38
  _defineProperty(this, "group", 'development');
39
39
  }
40
40
  async report([oldName, newName], {
@@ -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 { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { 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', 'EXPERIMENTAL. use ast to transform files instead of regex'],\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 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;AAA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K,EAAE,2DAA2D,CAAC,CACzE;IAAAA,eAAA,gBACO,aAAa;EAEwB;EAE7C,MAAMuB,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,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":["_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 { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { 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 = 'development';\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,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,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAEhD,MAAMgB,mBAAmB,CAAoB;EAiBlDC,WAAWA,CAASC,QAAsB,EAAE;IAAA,KAAxBA,QAAsB,GAAtBA,QAAsB;IAAApB,eAAA,eAhBnC,oDAAoD;IAAAA,eAAA,sBAC7C,qGAAqG;IAAAA,eAAA,oBACvG,CACV;MAAEqB,IAAI,EAAE,oBAAoB;MAAEC,WAAW,EAAE;IAAsD,CAAC,EAClG;MAAED,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAqD,CAAC,CAC9F;IAAAtB,eAAA,kBACS,CACR,CACE,GAAG,EACH,UAAU,EACV,qHAAqH,CACtH,EACD,CAAC,EAAE,EAAE,KAAK,EAAE,6CAA6C,CAAC,CAC3D;IAAAA,eAAA,gBACO,aAAa;EAEwB;EAE7C,MAAMuB,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,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":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/renaming",
3
- "version": "1.0.407",
3
+ "version": "1.0.409",
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.407"
9
+ "version": "1.0.409"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,21 +17,21 @@
17
17
  "@teambit/harmony": "0.4.6",
18
18
  "@teambit/legacy-bit-id": "1.1.1",
19
19
  "@teambit/bit-error": "0.0.404",
20
- "@teambit/cli": "0.0.984",
21
- "@teambit/component": "1.0.407",
22
- "@teambit/graphql": "1.0.407",
23
- "@teambit/compiler": "1.0.407",
24
- "@teambit/component-writer": "1.0.407",
25
- "@teambit/config": "0.0.1158",
26
- "@teambit/deprecation": "1.0.407",
27
- "@teambit/envs": "1.0.407",
28
- "@teambit/install": "1.0.407",
29
- "@teambit/logger": "0.0.1077",
30
- "@teambit/new-component-helper": "1.0.407",
31
- "@teambit/refactoring": "1.0.407",
32
- "@teambit/remove": "1.0.407",
33
- "@teambit/workspace.modules.node-modules-linker": "0.0.203",
34
- "@teambit/workspace": "1.0.407"
20
+ "@teambit/cli": "0.0.986",
21
+ "@teambit/component": "1.0.409",
22
+ "@teambit/graphql": "1.0.409",
23
+ "@teambit/compiler": "1.0.409",
24
+ "@teambit/component-writer": "1.0.409",
25
+ "@teambit/config": "0.0.1160",
26
+ "@teambit/deprecation": "1.0.409",
27
+ "@teambit/envs": "1.0.409",
28
+ "@teambit/install": "1.0.409",
29
+ "@teambit/logger": "0.0.1079",
30
+ "@teambit/new-component-helper": "1.0.409",
31
+ "@teambit/refactoring": "1.0.409",
32
+ "@teambit/remove": "1.0.409",
33
+ "@teambit/workspace.modules.node-modules-linker": "0.0.204",
34
+ "@teambit/workspace": "1.0.409"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/fs-extra": "9.0.7",
@@ -42,8 +42,8 @@
42
42
  "chai": "4.3.0",
43
43
  "@types/mocha": "9.1.0",
44
44
  "@teambit/harmony.envs.core-aspect-env": "0.0.47",
45
- "@teambit/component.testing.mock-components": "0.0.234",
46
- "@teambit/harmony.testing.load-aspect": "0.0.229",
45
+ "@teambit/component.testing.mock-components": "0.0.235",
46
+ "@teambit/harmony.testing.load-aspect": "0.0.230",
47
47
  "@teambit/workspace.testing.mock-workspace": "0.0.27"
48
48
  },
49
49
  "peerDependencies": {