@teambit/renaming 0.0.42 → 0.0.43
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.
|
File without changes
|
package/dist/rename.cmd.js
CHANGED
|
@@ -34,7 +34,7 @@ function _chalk() {
|
|
|
34
34
|
class RenameCmd {
|
|
35
35
|
constructor(renaming) {
|
|
36
36
|
this.renaming = renaming;
|
|
37
|
-
(0, _defineProperty2().default)(this, "name", 'rename <source-
|
|
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
39
|
(0, _defineProperty2().default)(this, "group", 'collaborate');
|
|
40
40
|
(0, _defineProperty2().default)(this, "skipWorkspace", true);
|
package/dist/rename.cmd.js.map
CHANGED
|
@@ -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;;AASO,MAAMA,SAAN,CAAmC;AAexCC,EAAAA,WAAW,CAASC,QAAT,EAAiC;AAAA,SAAxBA,QAAwB,GAAxBA,QAAwB;AAAA,kDAdrC,
|
|
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;;AASO,MAAMA,SAAN,CAAmC;AAexCC,EAAAA,WAAW,CAASC,QAAT,EAAiC;AAAA,SAAxBA,QAAwB,GAAxBA,QAAwB;AAAA,kDAdrC,oCAcqC;AAAA,yDAZ1C,+GAY0C;AAAA,mDAXpC,aAWoC;AAAA,2DAV5B,IAU4B;AAAA,mDATpC,EASoC;AAAA,qDARlC,CACR,CAAC,GAAD,EAAM,gBAAN,EAAwB,+CAAxB,CADQ,EAER,CAAC,GAAD,EAAM,eAAN,EAAuB,qFAAvB,CAFQ,CAQkC;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;;AAtBuC","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};\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 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 ] 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"]}
|
|
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.43",
|
|
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.43"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"graphql-tag": "2.12.1",
|
|
15
15
|
"@babel/runtime": "7.12.18",
|
|
16
16
|
"core-js": "^3.0.0",
|
|
17
|
-
"@teambit/cli": "0.0.
|
|
18
|
-
"@teambit/component": "0.0.
|
|
19
|
-
"@teambit/graphql": "0.0.
|
|
20
|
-
"@teambit/deprecation": "0.0.
|
|
21
|
-
"@teambit/new-component-helper": "0.0.
|
|
22
|
-
"@teambit/workspace": "0.0.
|
|
17
|
+
"@teambit/cli": "0.0.436",
|
|
18
|
+
"@teambit/component": "0.0.639",
|
|
19
|
+
"@teambit/graphql": "0.0.639",
|
|
20
|
+
"@teambit/deprecation": "0.0.639",
|
|
21
|
+
"@teambit/new-component-helper": "0.0.43",
|
|
22
|
+
"@teambit/workspace": "0.0.639"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/mocha": "5.2.7",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/node": "12.20.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@teambit/legacy": "1.0.
|
|
33
|
+
"@teambit/legacy": "1.0.212",
|
|
34
34
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
35
35
|
"react": "^16.8.0 || ^17.0.0"
|
|
36
36
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react": "-"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@teambit/legacy": "1.0.
|
|
61
|
+
"@teambit/legacy": "1.0.212",
|
|
62
62
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
63
63
|
"react": "^16.8.0 || ^17.0.0"
|
|
64
64
|
}
|
|
Binary file
|