@teambit/forking 0.0.292 → 0.0.293

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.
@@ -10,6 +10,7 @@ export declare class ForkCmd implements Command {
10
10
  private forking;
11
11
  name: string;
12
12
  description: string;
13
+ helpUrl: string;
13
14
  arguments: {
14
15
  name: string;
15
16
  description: string;
package/dist/fork.cmd.js CHANGED
@@ -26,6 +26,7 @@ class ForkCmd {
26
26
  this.forking = forking;
27
27
  (0, _defineProperty2().default)(this, "name", 'fork <source-component-id> [target-component-name]');
28
28
  (0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. create a new component out of an existing one (copies source files and config)');
29
+ (0, _defineProperty2().default)(this, "helpUrl", 'docs/components/importing-components#forking-components');
29
30
  (0, _defineProperty2().default)(this, "arguments", [{
30
31
  name: 'source-component-id',
31
32
  description: 'the component id of the source component'
@@ -1 +1 @@
1
- {"version":3,"names":["ForkCmd","constructor","forking","name","description","report","sourceId","targetId","options","results","fork","targetIdStr","toString","chalk","green","bold"],"sources":["fork.cmd.ts"],"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 refactor?: boolean;\n skipDependencyInstallation?: boolean;\n};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-component-id> [target-component-name]';\n description = 'EXPERIMENTAL. create a new component out of an existing one (copies source files and config)';\n arguments = [\n { name: 'source-component-id', description: 'the component id of the source component' },\n {\n name: 'target-component-name',\n description:\n \"the name for the new component (component name without scope). to set a different scope, use the '--scope' flag\",\n },\n ];\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n\n options = [\n ['s', 'scope <string>', 'default scope for the new component'],\n [\n 'p',\n 'path <string>',\n 'relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`',\n ],\n ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'],\n ['', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n\n example: [\n {\n cmd: 'fork teambit.base-ui/input/button ui/button';\n description: \"create a component named 'ui/button' out of the remote 'input/button' component\";\n }\n ];\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"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAWO,MAAMA,OAAO,CAAoB;EAoCtCC,WAAW,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAA,8CAnCjC,oDAAoD;IAAA,qDAC7C,8FAA8F;IAAA,mDAChG,CACV;MAAEC,IAAI,EAAE,qBAAqB;MAAEC,WAAW,EAAE;IAA2C,CAAC,EACxF;MACED,IAAI,EAAE,uBAAuB;MAC7BC,WAAW,EACT;IACJ,CAAC,CACF;IAAA,+CACO,aAAa;IAAA,uDACL,IAAI;IAAA,+CACZ,EAAE;IAAA,iDAEA,CACR,CAAC,GAAG,EAAE,gBAAgB,EAAE,qCAAqC,CAAC,EAC9D,CACE,GAAG,EACH,eAAe,EACf,2GAA2G,CAC5G,EACD,CAAC,GAAG,EAAE,UAAU,EAAE,0FAA0F,CAAC,EAC7G,CAAC,EAAE,EAAE,8BAA8B,EAAE,oDAAoD,CAAC,CAC3F;IAAA;IAAA,gDAQQ,IAAI;IAAA,mDACD,IAAI;IAAA,kDACL,IAAI;EAE4B;EAE3C,MAAMC,MAAM,CAAC,CAACC,QAAQ,EAAEC,QAAQ,CAAmB,EAAEC,OAAoB,EAAmB;IAC1F,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACP,OAAO,CAACQ,IAAI,CAACJ,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,CAAC;IACpE,MAAMG,WAAW,GAAGF,OAAO,CAACG,QAAQ,EAAE;IACtC,OAAOC,gBAAK,CAACC,KAAK,CAAE,uBAAsBD,gBAAK,CAACE,IAAI,CAACJ,WAAW,CAAE,SAAQE,gBAAK,CAACE,IAAI,CAACT,QAAQ,CAAE,EAAC,CAAC;EACnG;AACF;AAAC"}
1
+ {"version":3,"names":["ForkCmd","constructor","forking","name","description","report","sourceId","targetId","options","results","fork","targetIdStr","toString","chalk","green","bold"],"sources":["fork.cmd.ts"],"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 refactor?: boolean;\n skipDependencyInstallation?: boolean;\n};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-component-id> [target-component-name]';\n description = 'EXPERIMENTAL. create a new component out of an existing one (copies source files and config)';\n helpUrl = 'docs/components/importing-components#forking-components';\n arguments = [\n { name: 'source-component-id', description: 'the component id of the source component' },\n {\n name: 'target-component-name',\n description:\n \"the name for the new component (component name without scope). to set a different scope, use the '--scope' flag\",\n },\n ];\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n\n options = [\n ['s', 'scope <string>', 'default scope for the new component'],\n [\n 'p',\n 'path <string>',\n 'relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`',\n ],\n ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'],\n ['', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n\n example: [\n {\n cmd: 'fork teambit.base-ui/input/button ui/button';\n description: \"create a component named 'ui/button' out of the remote 'input/button' component\";\n }\n ];\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.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"name": "@teambit/forking",
3
- "version": "0.0.292",
3
+ "version": "0.0.293",
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.292"
9
+ "version": "0.0.293"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -16,18 +16,18 @@
16
16
  "@babel/runtime": "7.20.0",
17
17
  "core-js": "^3.0.0",
18
18
  "@teambit/harmony": "0.3.3",
19
- "@teambit/cli": "0.0.595",
20
- "@teambit/component": "0.0.888",
21
- "@teambit/graphql": "0.0.888",
19
+ "@teambit/cli": "0.0.596",
20
+ "@teambit/component": "0.0.889",
21
+ "@teambit/graphql": "0.0.889",
22
22
  "@teambit/bit-error": "0.0.401",
23
- "@teambit/component-id": "0.0.420",
24
- "@teambit/dependency-resolver": "0.0.888",
25
- "@teambit/install": "0.0.34",
26
- "@teambit/legacy-bit-id": "0.0.416",
27
- "@teambit/new-component-helper": "0.0.292",
28
- "@teambit/pkg": "0.0.888",
29
- "@teambit/refactoring": "0.0.185",
30
- "@teambit/workspace": "0.0.888"
23
+ "@teambit/component-id": "0.0.421",
24
+ "@teambit/dependency-resolver": "0.0.889",
25
+ "@teambit/install": "0.0.35",
26
+ "@teambit/legacy-bit-id": "0.0.417",
27
+ "@teambit/new-component-helper": "0.0.293",
28
+ "@teambit/pkg": "0.0.889",
29
+ "@teambit/refactoring": "0.0.186",
30
+ "@teambit/workspace": "0.0.889"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/react": "^17.0.8",
@@ -39,7 +39,7 @@
39
39
  "@types/node": "12.20.4"
40
40
  },
41
41
  "peerDependencies": {
42
- "@teambit/legacy": "1.0.379",
42
+ "@teambit/legacy": "1.0.380",
43
43
  "react-dom": "^16.8.0 || ^17.0.0",
44
44
  "react": "^16.8.0 || ^17.0.0"
45
45
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.292/dist/forking.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.292/dist/forking.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.293/dist/forking.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.293/dist/forking.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];