@teambit/renaming 1.0.750 → 1.0.751
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.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.751/dist/renaming.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.751/dist/renaming.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/dist/rename.cmd.d.ts
CHANGED
package/dist/rename.cmd.js
CHANGED
|
@@ -19,7 +19,10 @@ class RenameCmd {
|
|
|
19
19
|
constructor(renaming) {
|
|
20
20
|
this.renaming = renaming;
|
|
21
21
|
_defineProperty(this, "name", 'rename <current-name> <new-name>');
|
|
22
|
-
_defineProperty(this, "description", '
|
|
22
|
+
_defineProperty(this, "description", 'change a component name');
|
|
23
|
+
_defineProperty(this, "extendedDescription", `renames a component and optionally refactors dependent code to use the new name.
|
|
24
|
+
for exported components: creates a new component with the new name and marks the original as deleted.
|
|
25
|
+
for local components: simply renames the existing component in place.`);
|
|
23
26
|
_defineProperty(this, "helpUrl", 'reference/components/renaming-components');
|
|
24
27
|
_defineProperty(this, "arguments", [{
|
|
25
28
|
name: 'current-name',
|
package/dist/rename.cmd.js.map
CHANGED
|
@@ -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
|
|
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.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,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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,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":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/renaming",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.751",
|
|
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.
|
|
9
|
+
"version": "1.0.751"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -14,33 +14,33 @@
|
|
|
14
14
|
"fs-extra": "10.0.0",
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
16
|
"p-map-series": "2.1.0",
|
|
17
|
-
"@teambit/cli": "0.0.1272",
|
|
18
17
|
"@teambit/harmony": "0.4.7",
|
|
19
|
-
"@teambit/config": "0.0.1446",
|
|
20
18
|
"@teambit/legacy-bit-id": "1.1.3",
|
|
21
|
-
"@teambit/logger": "0.0.1365",
|
|
22
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.301",
|
|
23
19
|
"@teambit/bit-error": "0.0.404",
|
|
24
|
-
"@teambit/
|
|
25
|
-
"@teambit/
|
|
26
|
-
"@teambit/
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/
|
|
29
|
-
"@teambit/
|
|
30
|
-
"@teambit/
|
|
31
|
-
"@teambit/
|
|
32
|
-
"@teambit/
|
|
33
|
-
"@teambit/
|
|
34
|
-
"@teambit/
|
|
20
|
+
"@teambit/cli": "0.0.1273",
|
|
21
|
+
"@teambit/component": "1.0.751",
|
|
22
|
+
"@teambit/graphql": "1.0.751",
|
|
23
|
+
"@teambit/compiler": "1.0.751",
|
|
24
|
+
"@teambit/component-writer": "1.0.751",
|
|
25
|
+
"@teambit/config": "0.0.1447",
|
|
26
|
+
"@teambit/deprecation": "1.0.751",
|
|
27
|
+
"@teambit/envs": "1.0.751",
|
|
28
|
+
"@teambit/install": "1.0.751",
|
|
29
|
+
"@teambit/logger": "0.0.1366",
|
|
30
|
+
"@teambit/new-component-helper": "1.0.751",
|
|
31
|
+
"@teambit/refactoring": "1.0.751",
|
|
32
|
+
"@teambit/remove": "1.0.751",
|
|
33
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.302",
|
|
34
|
+
"@teambit/workspace": "1.0.751"
|
|
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/
|
|
41
|
-
"@teambit/
|
|
42
|
-
"@teambit/
|
|
43
|
-
"@teambit/
|
|
40
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.78",
|
|
41
|
+
"@teambit/component.testing.mock-components": "0.0.338",
|
|
42
|
+
"@teambit/harmony.testing.load-aspect": "0.0.333",
|
|
43
|
+
"@teambit/workspace.testing.mock-workspace": "0.0.123"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0",
|