@teambit/renaming 0.0.163 → 0.0.166
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.
- package/dist/scope-rename.cmd.d.ts +4 -0
- package/dist/scope-rename.cmd.js +9 -2
- package/dist/scope-rename.cmd.js.map +1 -1
- package/package-tar/teambit-renaming-0.0.166.tgz +0 -0
- package/package.json +11 -11
- package/{preview-1655090873683.js → preview-1655279906398.js} +2 -2
- package/package-tar/teambit-renaming-0.0.163.tgz +0 -0
|
@@ -4,6 +4,10 @@ export declare class ScopeRenameCmd implements Command {
|
|
|
4
4
|
private renaming;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
|
+
arguments: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}[];
|
|
7
11
|
options: CommandOptions;
|
|
8
12
|
group: string;
|
|
9
13
|
constructor(renaming: RenamingMain);
|
package/dist/scope-rename.cmd.js
CHANGED
|
@@ -34,8 +34,15 @@ function _chalk() {
|
|
|
34
34
|
class ScopeRenameCmd {
|
|
35
35
|
constructor(renaming) {
|
|
36
36
|
this.renaming = renaming;
|
|
37
|
-
(0, _defineProperty2().default)(this, "name", 'rename <
|
|
38
|
-
(0, _defineProperty2().default)(this, "description",
|
|
37
|
+
(0, _defineProperty2().default)(this, "name", 'rename <current-scope-name> <new-scope-name>');
|
|
38
|
+
(0, _defineProperty2().default)(this, "description", "Renames the scope name for all components with the specified 'current scope name'");
|
|
39
|
+
(0, _defineProperty2().default)(this, "arguments", [{
|
|
40
|
+
name: 'current-scope-name',
|
|
41
|
+
description: 'the scope name to be replaced by another scope name'
|
|
42
|
+
}, {
|
|
43
|
+
name: 'new-scope-name',
|
|
44
|
+
description: 'a new scope name to replace the current scope name'
|
|
45
|
+
}]);
|
|
39
46
|
(0, _defineProperty2().default)(this, "options", [['r', 'refactor', 'change the source code of all components using the original scope-name with the new scope-name']]);
|
|
40
47
|
(0, _defineProperty2().default)(this, "group", 'development');
|
|
41
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ScopeRenameCmd","constructor","renaming","report","oldName","newName","refactor","scopeRenamedComponentIds","refactoredIds","renameScope","title","chalk","green","renamedIdsStr","length","bold","join","refactoredStr"],"sources":["scope-rename.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { RenamingMain } from './renaming.main.runtime';\n\nexport class ScopeRenameCmd implements Command {\n name = 'rename <
|
|
1
|
+
{"version":3,"names":["ScopeRenameCmd","constructor","renaming","name","description","report","oldName","newName","refactor","scopeRenamedComponentIds","refactoredIds","renameScope","title","chalk","green","renamedIdsStr","length","bold","join","refactoredStr"],"sources":["scope-rename.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { RenamingMain } from './renaming.main.runtime';\n\nexport class ScopeRenameCmd implements Command {\n name = 'rename <current-scope-name> <new-scope-name>';\n description = \"Renames the scope name for all components with the specified 'current scope name'\";\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 ['r', 'refactor', 'change the source code of all components using the original scope-name with the new scope-name'],\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 { scopeRenamedComponentIds, refactoredIds } = await this.renaming.renameScope(oldName, newName, { refactor });\n const title = chalk.green(`successfully replaced \"${oldName}\" scope with \"${newName}\"`);\n const renamedIdsStr = scopeRenamedComponentIds.length\n ? `\\n${chalk.bold(\n 'the following components were affected by this scope-name change:'\n )}\\n${scopeRenamedComponentIds.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 `${title}\\n${renamedIdsStr}${refactoredSt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1B4C"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/renaming",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.166",
|
|
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.
|
|
9
|
+
"version": "0.0.166"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -14,14 +14,14 @@
|
|
|
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.
|
|
18
|
-
"@teambit/component": "0.0.
|
|
19
|
-
"@teambit/graphql": "0.0.
|
|
17
|
+
"@teambit/cli": "0.0.503",
|
|
18
|
+
"@teambit/component": "0.0.762",
|
|
19
|
+
"@teambit/graphql": "0.0.762",
|
|
20
20
|
"@teambit/bit-error": "0.0.394",
|
|
21
|
-
"@teambit/deprecation": "0.0.
|
|
22
|
-
"@teambit/new-component-helper": "0.0.
|
|
23
|
-
"@teambit/refactoring": "0.0.
|
|
24
|
-
"@teambit/workspace": "0.0.
|
|
21
|
+
"@teambit/deprecation": "0.0.762",
|
|
22
|
+
"@teambit/new-component-helper": "0.0.166",
|
|
23
|
+
"@teambit/refactoring": "0.0.59",
|
|
24
|
+
"@teambit/workspace": "0.0.762"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "^17.0.8",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/node": "12.20.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@teambit/legacy": "1.0.
|
|
35
|
+
"@teambit/legacy": "1.0.283",
|
|
36
36
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
37
37
|
"react": "^16.8.0 || ^17.0.0"
|
|
38
38
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"react": "-"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@teambit/legacy": "1.0.
|
|
63
|
+
"@teambit/legacy": "1.0.283",
|
|
64
64
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
65
65
|
"react": "^16.8.0 || ^17.0.0"
|
|
66
66
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.166/dist/renaming.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_renaming@0.0.166/dist/renaming.docs.mdx')]
|
|
Binary file
|