@teambit/renaming 0.0.112 → 0.0.115

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.
@@ -36,7 +36,7 @@ class RenameCmd {
36
36
  this.renaming = renaming;
37
37
  (0, _defineProperty2().default)(this, "name", 'rename <source-name> <target-name>');
38
38
  (0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the source-component');
39
- (0, _defineProperty2().default)(this, "extendedDescription", `the "<target-name>" should include the component-name only, without the scope-name.
39
+ (0, _defineProperty2().default)(this, "extendedDescription", `the \`<target-name>\` should include the component-name only, without the scope-name.
40
40
  to assign a default-scope to this component, please use "--scope" flag`);
41
41
  (0, _defineProperty2().default)(this, "group", 'collaborate');
42
42
  (0, _defineProperty2().default)(this, "skipWorkspace", true);
@@ -1 +1 @@
1
- {"version":3,"sources":["rename.cmd.ts"],"names":["RenameCmd","constructor","renaming","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAUO,MAAMA,SAAN,CAAmC;AAkBxCC,EAAAA,WAAW,CAASC,QAAT,EAAiC;AAAA,SAAxBA,QAAwB,GAAxBA,QAAwB;AAAA,kDAjBrC,oCAiBqC;AAAA,yDAf1C,+GAe0C;AAAA,iEAdrB;AACzB,uEAa8C;AAAA,mDAZpC,aAYoC;AAAA,2DAX5B,IAW4B;AAAA,mDAVpC,EAUoC;AAAA,qDATlC,CACR,CAAC,GAAD,EAAM,gBAAN,EAAwB,+CAAxB,CADQ,EAER,CAAC,GAAD,EAAM,eAAN,EAAuB,qFAAvB,CAFQ,EAGR,CAAC,GAAD,EAAM,UAAN,EAAkB,yFAAlB,CAHQ,CASkC;AAAA,oDAJnC,IAImC;AAAA,uDAHhC,IAGgC;AAAA,sDAFjC,IAEiC;AAAE;;AAElC,QAANC,MAAM,CAAC,CAACC,QAAD,EAAWC,QAAX,CAAD,EAAyCC,OAAzC,EAAkF;AAC5F,UAAMC,OAAO,GAAG,MAAM,KAAKL,QAAL,CAAcM,MAAd,CAAqBJ,QAArB,EAA+BC,QAA/B,EAAyCC,OAAzC,CAAtB;AACA,WAAOG,iBAAMC,KAAN,CACJ,wBAAuBD,iBAAME,IAAN,CAAWJ,OAAO,CAACH,QAAR,CAAiBQ,QAAjB,EAAX,CAAwC,OAAMH,iBAAME,IAAN,CAAWJ,OAAO,CAACF,QAAR,CAAiBO,QAAjB,EAAX,CAAwC,EADzG,CAAP;AAGD;;AAzBuC","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};\n\nexport class RenameCmd implements Command {\n name = 'rename <source-name> <target-name>';\n description =\n 'EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the source-component';\n extendedDescription = `the \"<target-name>\" should include the component-name only, without the scope-name.\nto assign a default-scope to this component, please use \"--scope\" flag`;\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <string>', 'default scope for the newly created component'],\n ['p', 'path <string>', 'relative path in the workspace. by default the path is `<scope>/<namespace>/<name>`'],\n ['r', 'refactor', 'change the source code of all components using this component with the new package-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"]}
1
+ {"version":3,"sources":["rename.cmd.ts"],"names":["RenameCmd","constructor","renaming","report","sourceId","targetId","options","results","rename","chalk","green","bold","toString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAUO,MAAMA,SAAN,CAAmC;AAkBxCC,EAAAA,WAAW,CAASC,QAAT,EAAiC;AAAA,SAAxBA,QAAwB,GAAxBA,QAAwB;AAAA,kDAjBrC,oCAiBqC;AAAA,yDAf1C,+GAe0C;AAAA,iEAdrB;AACzB,uEAa8C;AAAA,mDAZpC,aAYoC;AAAA,2DAX5B,IAW4B;AAAA,mDAVpC,EAUoC;AAAA,qDATlC,CACR,CAAC,GAAD,EAAM,gBAAN,EAAwB,+CAAxB,CADQ,EAER,CAAC,GAAD,EAAM,eAAN,EAAuB,qFAAvB,CAFQ,EAGR,CAAC,GAAD,EAAM,UAAN,EAAkB,yFAAlB,CAHQ,CASkC;AAAA,oDAJnC,IAImC;AAAA,uDAHhC,IAGgC;AAAA,sDAFjC,IAEiC;AAAE;;AAElC,QAANC,MAAM,CAAC,CAACC,QAAD,EAAWC,QAAX,CAAD,EAAyCC,OAAzC,EAAkF;AAC5F,UAAMC,OAAO,GAAG,MAAM,KAAKL,QAAL,CAAcM,MAAd,CAAqBJ,QAArB,EAA+BC,QAA/B,EAAyCC,OAAzC,CAAtB;AACA,WAAOG,iBAAMC,KAAN,CACJ,wBAAuBD,iBAAME,IAAN,CAAWJ,OAAO,CAACH,QAAR,CAAiBQ,QAAjB,EAAX,CAAwC,OAAMH,iBAAME,IAAN,CAAWJ,OAAO,CAACF,QAAR,CAAiBO,QAAjB,EAAX,CAAwC,EADzG,CAAP;AAGD;;AAzBuC","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};\n\nexport class RenameCmd implements Command {\n name = 'rename <source-name> <target-name>';\n description =\n 'EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the source-component';\n extendedDescription = `the \\`<target-name>\\` should include the component-name only, without the scope-name.\nto assign a default-scope to this component, please use \"--scope\" flag`;\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n options = [\n ['s', 'scope <string>', 'default scope for the newly created component'],\n ['p', 'path <string>', 'relative path in the workspace. by default the path is `<scope>/<namespace>/<name>`'],\n ['r', 'refactor', 'change the source code of all components using this component with the new package-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"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/renaming",
3
- "version": "0.0.112",
3
+ "version": "0.0.115",
4
4
  "homepage": "https://bit.dev/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.112"
9
+ "version": "0.0.115"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,13 +14,13 @@
14
14
  "@babel/runtime": "7.12.18",
15
15
  "core-js": "^3.0.0",
16
16
  "@teambit/harmony": "0.3.3",
17
- "@teambit/cli": "0.0.471",
18
- "@teambit/component": "0.0.708",
19
- "@teambit/graphql": "0.0.708",
20
- "@teambit/deprecation": "0.0.708",
21
- "@teambit/new-component-helper": "0.0.112",
22
- "@teambit/refactoring": "0.0.5",
23
- "@teambit/workspace": "0.0.708"
17
+ "@teambit/cli": "0.0.473",
18
+ "@teambit/component": "0.0.711",
19
+ "@teambit/graphql": "0.0.711",
20
+ "@teambit/deprecation": "0.0.711",
21
+ "@teambit/new-component-helper": "0.0.115",
22
+ "@teambit/refactoring": "0.0.8",
23
+ "@teambit/workspace": "0.0.711"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/react": "^17.0.8",
@@ -31,7 +31,7 @@
31
31
  "@types/node": "12.20.4"
32
32
  },
33
33
  "peerDependencies": {
34
- "@teambit/legacy": "1.0.248",
34
+ "@teambit/legacy": "1.0.253",
35
35
  "react-dom": "^16.8.0 || ^17.0.0",
36
36
  "react": "^16.8.0 || ^17.0.0"
37
37
  },
@@ -59,7 +59,7 @@
59
59
  "react": "-"
60
60
  },
61
61
  "peerDependencies": {
62
- "@teambit/legacy": "1.0.248",
62
+ "@teambit/legacy": "1.0.253",
63
63
  "react-dom": "^16.8.0 || ^17.0.0",
64
64
  "react": "^16.8.0 || ^17.0.0"
65
65
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.112/dist/renaming.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.112/dist/renaming.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.115/dist/renaming.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.115/dist/renaming.docs.mdx')]