@teambit/forking 0.0.65 → 0.0.68
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/{__preview-1646054175292.js → __preview-1646191436076.js} +0 -0
- package/dist/fork.cmd.d.ts +1 -0
- package/dist/fork.cmd.js +3 -1
- package/dist/fork.cmd.js.map +1 -1
- package/package-tar/teambit-forking-0.0.68.tgz +0 -0
- package/package.json +10 -10
- package/package-tar/teambit-forking-0.0.65.tgz +0 -0
File without changes
|
package/dist/fork.cmd.d.ts
CHANGED
package/dist/fork.cmd.js
CHANGED
@@ -34,8 +34,10 @@ function _chalk() {
|
|
34
34
|
class ForkCmd {
|
35
35
|
constructor(forking) {
|
36
36
|
this.forking = forking;
|
37
|
-
(0, _defineProperty2().default)(this, "name", 'fork <source-id> [target-
|
37
|
+
(0, _defineProperty2().default)(this, "name", 'fork <source-id> [target-name]');
|
38
38
|
(0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. create a new component out of an existing one');
|
39
|
+
(0, _defineProperty2().default)(this, "extendedDescription", `note that [target-name] is the name only without the scope.
|
40
|
+
to set the default-scope, please use --scope flag`);
|
39
41
|
(0, _defineProperty2().default)(this, "group", 'collaborate');
|
40
42
|
(0, _defineProperty2().default)(this, "skipWorkspace", true);
|
41
43
|
(0, _defineProperty2().default)(this, "alias", '');
|
package/dist/fork.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["fork.cmd.ts"],"names":["ForkCmd","constructor","forking","report","sourceId","targetId","options","results","fork","targetIdStr","toString","chalk","green","bold"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AASO,MAAMA,OAAN,CAAiC;
|
1
|
+
{"version":3,"sources":["fork.cmd.ts"],"names":["ForkCmd","constructor","forking","report","sourceId","targetId","options","results","fork","targetIdStr","toString","chalk","green","bold"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AASO,MAAMA,OAAN,CAAiC;AAgBtCC,EAAAA,WAAW,CAASC,OAAT,EAA+B;AAAA,SAAtBA,OAAsB,GAAtBA,OAAsB;AAAA,kDAfnC,gCAemC;AAAA,yDAd5B,6DAc4B;AAAA,iEAbnB;AACzB,kDAY4C;AAAA,mDAXlC,aAWkC;AAAA,2DAV1B,IAU0B;AAAA,mDATlC,EASkC;AAAA,qDARhC,CACR,CAAC,GAAD,EAAM,gBAAN,EAAwB,+CAAxB,CADQ,EAER,CAAC,GAAD,EAAM,eAAN,EAAuB,qFAAvB,CAFQ,CAQgC;AAAA,oDAJjC,IAIiC;AAAA,uDAH9B,IAG8B;AAAA,sDAF/B,IAE+B;AAAE;;AAEhC,QAANC,MAAM,CAAC,CAACC,QAAD,EAAWC,QAAX,CAAD,EAAyCC,OAAzC,EAAgF;AAC1F,UAAMC,OAAO,GAAG,MAAM,KAAKL,OAAL,CAAaM,IAAb,CAAkBJ,QAAlB,EAA4BC,QAA5B,EAAsCC,OAAtC,CAAtB;AACA,UAAMG,WAAW,GAAGF,OAAO,CAACG,QAAR,EAApB;AACA,WAAOC,iBAAMC,KAAN,CAAa,uBAAsBD,iBAAME,IAAN,CAAWJ,WAAX,CAAwB,SAAQE,iBAAME,IAAN,CAAWT,QAAX,CAAqB,EAAxF,CAAP;AACD;;AAtBqC","sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ForkingMain } from '.';\n\nexport type ForkOptions = {\n scope?: string;\n path?: string;\n};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-id> [target-name]';\n description = 'EXPERIMENTAL. create a new component out of an existing one';\n extendedDescription = `note that [target-name] is the name only without the scope.\nto set the default-scope, 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 ] as CommandOptions;\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private forking: ForkingMain) {}\n\n async report([sourceId, targetId]: [string, string], options: ForkOptions): Promise<string> {\n const results = await this.forking.fork(sourceId, targetId, options);\n const targetIdStr = results.toString();\n return chalk.green(`successfully forked ${chalk.bold(targetIdStr)} from ${chalk.bold(sourceId)}`);\n }\n}\n"]}
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/forking",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.68",
|
4
4
|
"homepage": "https://bit.dev/teambit/component/forking",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "forking",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.68"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -14,14 +14,14 @@
|
|
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.
|
17
|
+
"@teambit/cli": "0.0.450",
|
18
|
+
"@teambit/component": "0.0.664",
|
19
|
+
"@teambit/graphql": "0.0.664",
|
20
20
|
"@teambit/component-id": "0.0.401",
|
21
|
-
"@teambit/dependency-resolver": "0.0.
|
21
|
+
"@teambit/dependency-resolver": "0.0.664",
|
22
22
|
"@teambit/legacy-bit-id": "0.0.398",
|
23
|
-
"@teambit/new-component-helper": "0.0.
|
24
|
-
"@teambit/workspace": "0.0.
|
23
|
+
"@teambit/new-component-helper": "0.0.68",
|
24
|
+
"@teambit/workspace": "0.0.664"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@types/mocha": "9.1.0",
|
@@ -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.229",
|
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.229",
|
64
64
|
"react-dom": "^16.8.0 || ^17.0.0",
|
65
65
|
"react": "^16.8.0 || ^17.0.0"
|
66
66
|
}
|
Binary file
|