@teambit/forking 1.0.623 → 1.0.624

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_forking@1.0.623/dist/forking.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.623/dist/forking.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.624/dist/forking.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.624/dist/forking.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -39,7 +39,7 @@ class ScopeForkCmd {
39
39
  _defineProperty(this, "description", 'fork all components of the original-scope and refactor the source-code to use the new scope name');
40
40
  _defineProperty(this, "extendedDescription", 'optionally, provide [pattern] to limit the fork to specific components');
41
41
  _defineProperty(this, "options", [['', 'ast', 'use ast to transform files instead of regex'], ['x', 'skip-dependency-installation', 'do not install packages of the imported components']]);
42
- _defineProperty(this, "group", 'development');
42
+ _defineProperty(this, "group", 'component-config');
43
43
  }
44
44
  async report([originalScope, newScope, pattern], options) {
45
45
  const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);
@@ -1 +1 @@
1
- {"version":3,"names":["_legacy","data","require","_chalk","_interopRequireDefault","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeForkCmd","constructor","forking","name","description","COMPONENT_PATTERN_HELP","report","originalScope","newScope","pattern","options","forkedIds","forkScope","title","chalk","green","bold","scope","map","id","toString","join","exports"],"sources":["scope-fork.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport chalk from 'chalk';\nimport { ForkingMain } from './forking.main.runtime';\n\nexport type ScopeForkOptions = {\n ast?: boolean;\n skipDependencyInstallation?: boolean;\n};\nexport class ScopeForkCmd implements Command {\n name = 'fork <original-scope> [new-scope] [pattern]';\n arguments = [\n {\n name: 'original-scope',\n description: 'the original scope to fork',\n },\n {\n name: 'new-scope',\n description: 'the new scope to fork to, default to the default-scope of the workspace',\n },\n {\n name: 'pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = 'fork all components of the original-scope and refactor the source-code to use the new scope name';\n extendedDescription = 'optionally, provide [pattern] to limit the fork to specific components';\n options = [\n ['', 'ast', 'use ast to transform files instead of regex'],\n ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n group = 'development';\n\n constructor(private forking: ForkingMain) {}\n\n async report([originalScope, newScope, pattern]: [string, string, string], options: ScopeForkOptions) {\n const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);\n const title = chalk.green(\n `successfully forked ${chalk.bold(originalScope)} into ${chalk.bold(\n newScope || forkedIds[0].scope\n )}. the following components were created`\n );\n return `${title}\\n${forkedIds.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YA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C,CAACC,aAAa,EAAEC,QAAQ,EAAEC,OAAO,CAA2B,EAAEC,OAAyB,EAAE;IACpG,MAAMC,SAAS,GAAG,MAAM,IAAI,CAACT,OAAO,CAACU,SAAS,CAACL,aAAa,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,CAAC;IACzF,MAAMG,KAAK,GAAGC,gBAAK,CAACC,KAAK,CACvB,uBAAuBD,gBAAK,CAACE,IAAI,CAACT,aAAa,CAAC,SAASO,gBAAK,CAACE,IAAI,CACjER,QAAQ,IAAIG,SAAS,CAAC,CAAC,CAAC,CAACM,KAC3B,CAAC,yCACH,CAAC;IACD,OAAO,GAAGJ,KAAK,KAAKF,SAAS,CAACO,GAAG,CAAEC,EAAE,IAAKA,EAAE,CAACC,QAAQ,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC,EAAE;EACvE;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"names":["_legacy","data","require","_chalk","_interopRequireDefault","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeForkCmd","constructor","forking","name","description","COMPONENT_PATTERN_HELP","report","originalScope","newScope","pattern","options","forkedIds","forkScope","title","chalk","green","bold","scope","map","id","toString","join","exports"],"sources":["scope-fork.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport chalk from 'chalk';\nimport { ForkingMain } from './forking.main.runtime';\n\nexport type ScopeForkOptions = {\n ast?: boolean;\n skipDependencyInstallation?: boolean;\n};\nexport class ScopeForkCmd implements Command {\n name = 'fork <original-scope> [new-scope] [pattern]';\n arguments = [\n {\n name: 'original-scope',\n description: 'the original scope to fork',\n },\n {\n name: 'new-scope',\n description: 'the new scope to fork to, default to the default-scope of the workspace',\n },\n {\n name: 'pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = 'fork all components of the original-scope and refactor the source-code to use the new scope name';\n extendedDescription = 'optionally, provide [pattern] to limit the fork to specific components';\n options = [\n ['', 'ast', 'use ast to transform files instead of regex'],\n ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n group = 'component-config';\n\n constructor(private forking: ForkingMain) {}\n\n async report([originalScope, newScope, pattern]: [string, string, string], options: ScopeForkOptions) {\n const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);\n const title = chalk.green(\n `successfully forked ${chalk.bold(originalScope)} into ${chalk.bold(\n newScope || forkedIds[0].scope\n )}. the following components were created`\n );\n return `${title}\\n${forkedIds.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,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,CA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AACE,IAAI,CACjER,QAAQ,IAAIG,SAAS,CAAC,CAAC,CAAC,CAACM,KAC3B,CAAC,yCACH,CAAC;IACD,OAAO,GAAGJ,KAAK,KAAKF,SAAS,CAACO,GAAG,CAAEC,EAAE,IAAKA,EAAE,CAACC,QAAQ,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC,EAAE;EACvE;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/forking",
3
- "version": "1.0.623",
3
+ "version": "1.0.624",
4
4
  "homepage": "https://bit.cloud/teambit/component/forking",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "forking",
9
- "version": "1.0.623"
9
+ "version": "1.0.624"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -18,19 +18,19 @@
18
18
  "@teambit/bit-error": "0.0.404",
19
19
  "@teambit/component-id": "1.2.4",
20
20
  "@teambit/component-version": "1.0.4",
21
- "@teambit/cli": "0.0.1200",
22
- "@teambit/generator": "1.0.624",
23
- "@teambit/workspace": "1.0.623",
24
- "@teambit/component": "1.0.623",
25
- "@teambit/graphql": "1.0.623",
21
+ "@teambit/cli": "0.0.1201",
22
+ "@teambit/generator": "1.0.625",
23
+ "@teambit/workspace": "1.0.624",
24
+ "@teambit/component": "1.0.624",
25
+ "@teambit/graphql": "1.0.624",
26
26
  "@teambit/component-package-version": "0.0.438",
27
- "@teambit/dependency-resolver": "1.0.623",
28
- "@teambit/install": "1.0.623",
29
- "@teambit/new-component-helper": "1.0.623",
30
- "@teambit/pkg": "1.0.623",
31
- "@teambit/refactoring": "1.0.623",
32
- "@teambit/scope": "1.0.623",
33
- "@teambit/typescript": "1.0.623",
27
+ "@teambit/dependency-resolver": "1.0.624",
28
+ "@teambit/install": "1.0.624",
29
+ "@teambit/new-component-helper": "1.0.624",
30
+ "@teambit/pkg": "1.0.624",
31
+ "@teambit/refactoring": "1.0.624",
32
+ "@teambit/scope": "1.0.624",
33
+ "@teambit/typescript": "1.0.624",
34
34
  "@teambit/legacy.constants": "0.0.11"
35
35
  },
36
36
  "devDependencies": {