@teambit/renaming 0.0.542 → 0.0.544
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/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.544/dist/renaming.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.544/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
|
@@ -26,7 +26,7 @@ class RenameCmd {
|
|
|
26
26
|
this.renaming = renaming;
|
|
27
27
|
(0, _defineProperty2().default)(this, "name", 'rename <current-name> <new-name>');
|
|
28
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
|
-
(0, _defineProperty2().default)(this, "helpUrl", '
|
|
29
|
+
(0, _defineProperty2().default)(this, "helpUrl", 'reference/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)'
|
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 =\n 'rename component. if tagged/exported, create a new component and deprecate the original component. otherwise just renames current component';\n helpUrl = '
|
|
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 = '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 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.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,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/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/renaming",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.544",
|
|
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.544"
|
|
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.764",
|
|
20
|
+
"@teambit/component": "0.0.1140",
|
|
21
|
+
"@teambit/graphql": "0.0.1140",
|
|
22
|
+
"@teambit/compiler": "0.0.1140",
|
|
23
|
+
"@teambit/component-writer": "0.0.176",
|
|
24
|
+
"@teambit/config": "0.0.779",
|
|
25
|
+
"@teambit/deprecation": "0.0.1140",
|
|
26
|
+
"@teambit/envs": "0.0.1140",
|
|
27
|
+
"@teambit/install": "0.0.224",
|
|
28
|
+
"@teambit/logger": "0.0.857",
|
|
29
|
+
"@teambit/new-component-helper": "0.0.544",
|
|
30
|
+
"@teambit/refactoring": "0.0.437",
|
|
31
|
+
"@teambit/typescript": "0.0.1140",
|
|
32
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.106",
|
|
33
|
+
"@teambit/workspace": "0.0.1140",
|
|
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.548",
|
|
47
47
|
"react": "^16.8.0 || ^17.0.0",
|
|
48
48
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
49
49
|
},
|