@teambit/forking 0.0.496 → 0.0.498
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/fork.cmd.d.ts +3 -0
- package/dist/fork.cmd.js +1 -1
- package/dist/fork.cmd.js.map +1 -1
- package/dist/forking.main.runtime.d.ts +8 -5
- package/dist/forking.main.runtime.js +49 -44
- package/dist/forking.main.runtime.js.map +1 -1
- package/dist/{preview-1687922429426.js → preview-1688302625365.js} +2 -2
- package/package-tar/teambit-forking-0.0.498.tgz +0 -0
- package/package.json +13 -12
- package/package-tar/teambit-forking-0.0.496.tgz +0 -0
package/dist/fork.cmd.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
+
import { ComponentConfig } from '@teambit/generator';
|
2
3
|
import { ForkingMain } from '.';
|
3
4
|
export declare type ForkOptions = {
|
4
5
|
scope?: string;
|
@@ -8,6 +9,8 @@ export declare type ForkOptions = {
|
|
8
9
|
skipConfig?: boolean;
|
9
10
|
preserve?: boolean;
|
10
11
|
noLink?: boolean;
|
12
|
+
env?: string;
|
13
|
+
config?: ComponentConfig;
|
11
14
|
};
|
12
15
|
export declare class ForkCmd implements Command {
|
13
16
|
private forking;
|
package/dist/fork.cmd.js
CHANGED
@@ -37,7 +37,7 @@ class ForkCmd {
|
|
37
37
|
(0, _defineProperty2().default)(this, "group", 'collaborate');
|
38
38
|
(0, _defineProperty2().default)(this, "skipWorkspace", true);
|
39
39
|
(0, _defineProperty2().default)(this, "alias", '');
|
40
|
-
(0, _defineProperty2().default)(this, "options", [['s', 'scope <string>', 'default scope for the new component'], ['p', 'path <string>', 'relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`'], ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'], ['x', 'skip-dependency-installation', 'do not install packages of the imported components'], ['', 'skip-config', 'do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading'], ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'], ['', 'no-link', 'avoid saving a reference to the original component']]);
|
40
|
+
(0, _defineProperty2().default)(this, "options", [['s', 'scope <string>', 'default scope for the new component'], ['p', 'path <string>', 'relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`'], ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'], ['x', 'skip-dependency-installation', 'do not install packages of the imported components'], ['e', 'env <string>', 'set the environment for the new component'], ['', 'skip-config', 'do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading'], ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'], ['', 'no-link', 'avoid saving a reference to the original component']]);
|
41
41
|
(0, _defineProperty2().default)(this, "example", void 0);
|
42
42
|
(0, _defineProperty2().default)(this, "loader", true);
|
43
43
|
(0, _defineProperty2().default)(this, "migration", true);
|
package/dist/fork.cmd.js.map
CHANGED
@@ -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
|
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 { Command, CommandOptions } from '@teambit/cli';\nimport { ComponentConfig } from '@teambit/generator';\nimport chalk from 'chalk';\nimport { ForkingMain } from '.';\n\nexport type ForkOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n skipDependencyInstallation?: boolean;\n skipConfig?: boolean;\n preserve?: boolean;\n noLink?: boolean;\n env?: string;\n config?: ComponentConfig;\n};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-component-id> [target-component-name]';\n description = '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 ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ['e', 'env <string>', 'set the environment for the new component'],\n [\n '',\n 'skip-config',\n 'do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading',\n ],\n ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'],\n ['', 'no-link', 'avoid saving a reference to the original component'],\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":";;;;;;;;;;;;;;;;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAeO,MAAMA,OAAO,CAAoB;EA6CtCC,WAAW,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAA,8CA5CjC,oDAAoD;IAAA,qDAC7C,gFAAgF;IAAA,iDACpF,yDAAyD;IAAA,mDACvD,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,GAAG,EAAE,8BAA8B,EAAE,oDAAoD,CAAC,EAC3F,CAAC,GAAG,EAAE,cAAc,EAAE,2CAA2C,CAAC,EAClE,CACE,EAAE,EACF,aAAa,EACb,2GAA2G,CAC5G,EACD,CAAC,EAAE,EAAE,UAAU,EAAE,gFAAgF,CAAC,EAClG,CAAC,EAAE,EAAE,SAAS,EAAE,oDAAoD,CAAC,CACtE;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,13 +1,14 @@
|
|
1
1
|
import { CLIMain } from '@teambit/cli';
|
2
|
-
import { DependencyResolverMain } from '@teambit/dependency-resolver';
|
3
|
-
import { Workspace } from '@teambit/workspace';
|
4
2
|
import { Component, ComponentID, ComponentMain } from '@teambit/component';
|
5
3
|
import { ComponentIdObj } from '@teambit/component-id';
|
4
|
+
import { DependencyResolverMain } from '@teambit/dependency-resolver';
|
5
|
+
import { ComponentConfig } from '@teambit/generator';
|
6
6
|
import { GraphqlMain } from '@teambit/graphql';
|
7
|
-
import { RefactoringMain } from '@teambit/refactoring';
|
8
|
-
import { PkgMain } from '@teambit/pkg';
|
9
|
-
import { NewComponentHelperMain } from '@teambit/new-component-helper';
|
10
7
|
import { InstallMain } from '@teambit/install';
|
8
|
+
import { NewComponentHelperMain } from '@teambit/new-component-helper';
|
9
|
+
import { PkgMain } from '@teambit/pkg';
|
10
|
+
import { RefactoringMain } from '@teambit/refactoring';
|
11
|
+
import { Workspace } from '@teambit/workspace';
|
11
12
|
import { ForkOptions } from './fork.cmd';
|
12
13
|
export declare type ForkInfo = {
|
13
14
|
forkedFrom: ComponentID;
|
@@ -16,6 +17,8 @@ declare type MultipleComponentsToFork = Array<{
|
|
16
17
|
sourceId: string;
|
17
18
|
targetId?: string;
|
18
19
|
path?: string;
|
20
|
+
env?: string;
|
21
|
+
config?: ComponentConfig;
|
19
22
|
}>;
|
20
23
|
declare type MultipleForkOptions = {
|
21
24
|
refactor?: boolean;
|
@@ -18,6 +18,13 @@ function _defineProperty2() {
|
|
18
18
|
};
|
19
19
|
return data;
|
20
20
|
}
|
21
|
+
function _bitError() {
|
22
|
+
const data = require("@teambit/bit-error");
|
23
|
+
_bitError = function () {
|
24
|
+
return data;
|
25
|
+
};
|
26
|
+
return data;
|
27
|
+
}
|
21
28
|
function _cli() {
|
22
29
|
const data = require("@teambit/cli");
|
23
30
|
_cli = function () {
|
@@ -25,6 +32,13 @@ function _cli() {
|
|
25
32
|
};
|
26
33
|
return data;
|
27
34
|
}
|
35
|
+
function _component() {
|
36
|
+
const data = _interopRequireWildcard(require("@teambit/component"));
|
37
|
+
_component = function () {
|
38
|
+
return data;
|
39
|
+
};
|
40
|
+
return data;
|
41
|
+
}
|
28
42
|
function _dependencyResolver() {
|
29
43
|
const data = require("@teambit/dependency-resolver");
|
30
44
|
_dependencyResolver = function () {
|
@@ -32,44 +46,44 @@ function _dependencyResolver() {
|
|
32
46
|
};
|
33
47
|
return data;
|
34
48
|
}
|
35
|
-
function
|
36
|
-
const data = require("@teambit/
|
37
|
-
|
49
|
+
function _graphql() {
|
50
|
+
const data = _interopRequireDefault(require("@teambit/graphql"));
|
51
|
+
_graphql = function () {
|
38
52
|
return data;
|
39
53
|
};
|
40
54
|
return data;
|
41
55
|
}
|
42
|
-
function
|
43
|
-
const data =
|
44
|
-
|
56
|
+
function _install() {
|
57
|
+
const data = require("@teambit/install");
|
58
|
+
_install = function () {
|
45
59
|
return data;
|
46
60
|
};
|
47
61
|
return data;
|
48
62
|
}
|
49
|
-
function
|
50
|
-
const data = require("@teambit/legacy
|
51
|
-
|
63
|
+
function _legacyBitId() {
|
64
|
+
const data = require("@teambit/legacy-bit-id");
|
65
|
+
_legacyBitId = function () {
|
52
66
|
return data;
|
53
67
|
};
|
54
68
|
return data;
|
55
69
|
}
|
56
|
-
function
|
57
|
-
const data = require("
|
58
|
-
|
70
|
+
function _bitId() {
|
71
|
+
const data = require("@teambit/legacy/dist/bit-id");
|
72
|
+
_bitId = function () {
|
59
73
|
return data;
|
60
74
|
};
|
61
75
|
return data;
|
62
76
|
}
|
63
|
-
function
|
64
|
-
const data =
|
65
|
-
|
77
|
+
function _newComponentHelper() {
|
78
|
+
const data = _interopRequireDefault(require("@teambit/new-component-helper"));
|
79
|
+
_newComponentHelper = function () {
|
66
80
|
return data;
|
67
81
|
};
|
68
82
|
return data;
|
69
83
|
}
|
70
|
-
function
|
71
|
-
const data = _interopRequireDefault(require("@teambit/
|
72
|
-
|
84
|
+
function _pkg() {
|
85
|
+
const data = _interopRequireDefault(require("@teambit/pkg"));
|
86
|
+
_pkg = function () {
|
73
87
|
return data;
|
74
88
|
};
|
75
89
|
return data;
|
@@ -81,37 +95,23 @@ function _refactoring() {
|
|
81
95
|
};
|
82
96
|
return data;
|
83
97
|
}
|
84
|
-
function
|
85
|
-
const data =
|
86
|
-
|
87
|
-
return data;
|
88
|
-
};
|
89
|
-
return data;
|
90
|
-
}
|
91
|
-
function _pkg() {
|
92
|
-
const data = _interopRequireDefault(require("@teambit/pkg"));
|
93
|
-
_pkg = function () {
|
94
|
-
return data;
|
95
|
-
};
|
96
|
-
return data;
|
97
|
-
}
|
98
|
-
function _bitError() {
|
99
|
-
const data = require("@teambit/bit-error");
|
100
|
-
_bitError = function () {
|
98
|
+
function _workspace() {
|
99
|
+
const data = _interopRequireWildcard(require("@teambit/workspace"));
|
100
|
+
_workspace = function () {
|
101
101
|
return data;
|
102
102
|
};
|
103
103
|
return data;
|
104
104
|
}
|
105
|
-
function
|
106
|
-
const data =
|
107
|
-
|
105
|
+
function _lodash() {
|
106
|
+
const data = require("lodash");
|
107
|
+
_lodash = function () {
|
108
108
|
return data;
|
109
109
|
};
|
110
110
|
return data;
|
111
111
|
}
|
112
|
-
function
|
113
|
-
const data = require("
|
114
|
-
|
112
|
+
function _pMapSeries() {
|
113
|
+
const data = _interopRequireDefault(require("p-map-series"));
|
114
|
+
_pMapSeries = function () {
|
115
115
|
return data;
|
116
116
|
};
|
117
117
|
return data;
|
@@ -206,7 +206,9 @@ class ForkingMain {
|
|
206
206
|
const results = await (0, _pMapSeries().default)(componentsToFork, async ({
|
207
207
|
sourceId,
|
208
208
|
targetId,
|
209
|
-
path
|
209
|
+
path,
|
210
|
+
env,
|
211
|
+
config
|
210
212
|
}) => {
|
211
213
|
const sourceCompId = await this.workspace.resolveComponentId(sourceId);
|
212
214
|
const sourceIdWithScope = sourceCompId._legacy.scope ? sourceCompId : _component().ComponentID.fromLegacy(_legacyBitId().BitId.parse(sourceId, true));
|
@@ -215,7 +217,9 @@ class ForkingMain {
|
|
215
217
|
component
|
216
218
|
} = await this.forkRemoteComponent(sourceIdWithScope, targetId, {
|
217
219
|
scope,
|
218
|
-
path
|
220
|
+
path,
|
221
|
+
env,
|
222
|
+
config
|
219
223
|
});
|
220
224
|
return {
|
221
225
|
targetCompId,
|
@@ -381,13 +385,14 @@ the reason is that the refactor changes the components using ${sourceId.toString
|
|
381
385
|
});
|
382
386
|
}
|
383
387
|
async getConfig(comp, options) {
|
388
|
+
const config = (options === null || options === void 0 ? void 0 : options.config) || {};
|
384
389
|
const fromExisting = options !== null && options !== void 0 && options.skipConfig ? {} : await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);
|
385
390
|
const linkToOriginal = options !== null && options !== void 0 && options.noLink ? {} : {
|
386
391
|
[_forking().ForkingAspect.id]: {
|
387
392
|
forkedFrom: comp.id.toObject()
|
388
393
|
}
|
389
394
|
};
|
390
|
-
return _objectSpread(_objectSpread({}, fromExisting), linkToOriginal);
|
395
|
+
return _objectSpread(_objectSpread(_objectSpread({}, fromExisting), linkToOriginal), config);
|
391
396
|
}
|
392
397
|
static async provider([cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install]) {
|
393
398
|
var _scopeCommand$command;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["ForkingMain","constructor","workspace","install","dependencyResolver","newComponentHelper","refactoring","pkg","fork","sourceId","targetId","options","OutsideWorkspaceError","sourceCompId","resolveComponentId","exists","existingInWorkspace","get","forkExistingInWorkspace","sourceIdWithScope","_legacy","scope","ComponentID","fromLegacy","BitId","parse","targetCompId","component","forkRemoteComponent","saveDeps","skipDependencyInstallation","installDeps","getForkInfo","forkConfig","state","aspects","ForkingAspect","id","config","forkedFrom","fromObject","forkMultipleFromRemote","componentsToFork","results","pMapSeries","path","refactorMultipleAndInstall","oldPackages","stringsToReplace","map","oldPackageName","getPackageName","push","newName","fullName","replace","scopeToReplace","newPackageName","oldStr","newStr","toStringWithoutVersion","flat","allComponents","list","refactor","changedComponents","replaceMultipleStrings","Promise","all","comp","write","forkedComponents","result","policy","extractDeps","policyFlatAndUnique","uniqBy","policyWithoutWorkspaceComps","filter","dep","includes","dependencyId","addToRootPolicy","updateExisting","persistConfig","forkScope","originalScope","newScope","idsFromOriginalScope","listRemoteScope","length","Error","workspaceIds","listIds","workspaceBitIds","BitIds","fromArray","forEach","existInWorkspace","searchWithoutScopeAndVersion","toString","multipleForkInfo","components","getManyRemoteComponents","getConfig","name","writeAndAddNewComp","info","existing","getNewComponentId","undefined","refactorDependencyName","BitError","targetName","getRemoteComponent","preserve","refactorVariableAndClasses","refactorFilenames","workspacePolicyEntries","dedupe","import","copyPeerToRuntimeOnRoot","copyPeerToRuntimeOnComponents","deps","getDependencies","excludePackages","excludeCompIds","getCompIdsThatShouldNotBeInPolicy","source","ComponentDependency","compIdStr","componentId","lifecycleType","lifecycle","value","version","fromExisting","skipConfig","getConfigFromExistingToNewComponent","linkToOriginal","noLink","toObject","provider","cli","componentMain","graphql","forkingMain","register","ForkCmd","forkingSchema","registerShowFragments","ForkingFragment","scopeCommand","getCommand","commands","ScopeForkCmd","CLIAspect","WorkspaceAspect","DependencyResolverAspect","ComponentAspect","NewComponentHelperAspect","GraphqlAspect","RefactoringAspect","PkgAspect","InstallAspect","MainRuntime","addRuntime"],"sources":["forking.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentDependency, DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport WorkspaceAspect, { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { BitIds } from '@teambit/legacy/dist/bit-id';\nimport { uniqBy } from 'lodash';\nimport ComponentAspect, { Component, ComponentID, ComponentMain } from '@teambit/component';\nimport { ComponentIdObj } from '@teambit/component-id';\nimport GraphqlAspect, { GraphqlMain } from '@teambit/graphql';\nimport RefactoringAspect, { MultipleStringsReplacement, RefactoringMain } from '@teambit/refactoring';\nimport pMapSeries from 'p-map-series';\nimport PkgAspect, { PkgMain } from '@teambit/pkg';\nimport { BitError } from '@teambit/bit-error';\nimport NewComponentHelperAspect, { NewComponentHelperMain } from '@teambit/new-component-helper';\nimport { InstallMain, InstallAspect } from '@teambit/install';\nimport { ForkCmd, ForkOptions } from './fork.cmd';\nimport { ForkingAspect } from './forking.aspect';\nimport { ForkingFragment } from './forking.fragment';\nimport { forkingSchema } from './forking.graphql';\nimport { ScopeForkCmd } from './scope-fork.cmd';\n\nexport type ForkInfo = {\n forkedFrom: ComponentID;\n};\n\ntype MultipleForkInfo = {\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n};\n\ntype MultipleComponentsToFork = Array<{\n sourceId: string;\n targetId?: string; // if not specify, it'll be the same as the source\n path?: string; // if not specify, use the default component path\n}>;\n\ntype MultipleForkOptions = {\n refactor?: boolean;\n scope?: string; // different scope-name than the original components\n install?: boolean; // whether to run \"bit install\" once done.\n};\n\nexport class ForkingMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private dependencyResolver: DependencyResolverMain,\n private newComponentHelper: NewComponentHelperMain,\n private refactoring: RefactoringMain,\n private pkg: PkgMain\n ) {}\n\n /**\n * create a new copy of existing/remote component.\n * the new component holds a reference to the old one for future reference.\n * if refactor option is enable, change the source-code to update all dependencies with the new name.\n */\n async fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const exists = this.workspace.exists(sourceCompId);\n if (exists) {\n const existingInWorkspace = await this.workspace.get(sourceCompId);\n return this.forkExistingInWorkspace(existingInWorkspace, targetId, options);\n }\n const sourceIdWithScope = sourceCompId._legacy.scope\n ? sourceCompId\n : ComponentID.fromLegacy(BitId.parse(sourceId, true));\n const { targetCompId, component } = await this.forkRemoteComponent(sourceIdWithScope, targetId, options);\n await this.saveDeps(component);\n if (!options?.skipDependencyInstallation) await this.installDeps();\n return targetCompId;\n }\n\n /**\n * get the forking data, such as the source where a component was forked from\n */\n getForkInfo(component: Component): ForkInfo | null {\n const forkConfig = component.state.aspects.get(ForkingAspect.id)?.config as ForkConfig | undefined;\n if (!forkConfig) return null;\n return {\n forkedFrom: ComponentID.fromObject(forkConfig.forkedFrom),\n };\n }\n\n async forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options: MultipleForkOptions = {}) {\n const { scope } = options;\n const results = await pMapSeries(componentsToFork, async ({ sourceId, targetId, path }) => {\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const sourceIdWithScope = sourceCompId._legacy.scope\n ? sourceCompId\n : ComponentID.fromLegacy(BitId.parse(sourceId, true));\n const { targetCompId, component } = await this.forkRemoteComponent(sourceIdWithScope, targetId, { scope, path });\n return { targetCompId, sourceId, component };\n });\n await this.refactorMultipleAndInstall(results, options);\n }\n\n private async refactorMultipleAndInstall(results: MultipleForkInfo[], options: MultipleForkOptions = {}) {\n const oldPackages: string[] = [];\n const stringsToReplace: MultipleStringsReplacement = results\n .map(({ targetCompId, sourceId, component }) => {\n const oldPackageName = this.pkg.getPackageName(component);\n oldPackages.push(oldPackageName);\n const newName = targetCompId.fullName.replace(/\\//g, '.');\n const scopeToReplace = targetCompId.scope.replace('.', '/');\n const newPackageName = `@${scopeToReplace}.${newName}`;\n return [\n { oldStr: oldPackageName, newStr: newPackageName },\n { oldStr: sourceId, newStr: targetCompId.toStringWithoutVersion() },\n ];\n })\n .flat();\n const allComponents = await this.workspace.list();\n if (options.refactor) {\n const { changedComponents } = await this.refactoring.replaceMultipleStrings(allComponents, stringsToReplace);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n }\n const forkedComponents = results.map((result) => result.component);\n const policy = await Promise.all(forkedComponents.map((comp) => this.extractDeps(comp)));\n const policyFlatAndUnique = uniqBy(policy.flat(), 'dependencyId');\n const policyWithoutWorkspaceComps = policyFlatAndUnique.filter((dep) => !oldPackages.includes(dep.dependencyId));\n this.dependencyResolver.addToRootPolicy(policyWithoutWorkspaceComps, { updateExisting: true });\n await this.dependencyResolver.persistConfig(this.workspace.path);\n if (options.install) {\n await this.installDeps();\n }\n }\n\n /**\n * fork all components of the given scope\n */\n async forkScope(originalScope: string, newScope: string): Promise<ComponentID[]> {\n const idsFromOriginalScope = await this.workspace.scope.listRemoteScope(originalScope);\n if (!idsFromOriginalScope.length) {\n throw new Error(`unable to find components to fork from ${originalScope}`);\n }\n const workspaceIds = await this.workspace.listIds();\n const workspaceBitIds = BitIds.fromArray(workspaceIds.map((id) => id._legacy));\n idsFromOriginalScope.forEach((id) => {\n const existInWorkspace = workspaceBitIds.searchWithoutScopeAndVersion(id._legacy);\n if (existInWorkspace) {\n throw new Error(\n `unable to fork \"${id.toString()}\". the workspace has a component \"${existInWorkspace.toString()}\" with the same name`\n );\n }\n });\n const multipleForkInfo: MultipleForkInfo[] = [];\n const components = await this.workspace.scope.getManyRemoteComponents(idsFromOriginalScope);\n await pMapSeries(components, async (component) => {\n const config = await this.getConfig(component);\n const targetCompId = ComponentID.fromObject({ name: component.id.fullName }, newScope);\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, { scope: newScope }, config);\n multipleForkInfo.push({ targetCompId, sourceId: component.id.toStringWithoutVersion(), component });\n });\n await this.refactorMultipleAndInstall(multipleForkInfo, { refactor: true, install: true });\n return multipleForkInfo.map((info) => info.targetCompId);\n }\n\n private async forkExistingInWorkspace(existing: Component, targetId?: string, options?: ForkOptions) {\n if (!targetId) {\n throw new Error(`error: unable to create \"${existing.id.toStringWithoutVersion()}\" component, a component with the same name already exists.\nplease specify the target-id arg`);\n }\n const targetCompId = this.newComponentHelper.getNewComponentId(targetId, undefined, options?.scope);\n\n const config = await this.getConfig(existing, options);\n await this.newComponentHelper.writeAndAddNewComp(existing, targetCompId, options, config);\n if (options?.refactor) {\n const allComponents = await this.workspace.list();\n const { changedComponents } = await this.refactoring.refactorDependencyName(allComponents, existing.id, targetId);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n }\n return targetCompId;\n }\n\n private async forkRemoteComponent(\n sourceId: ComponentID,\n targetId?: string,\n options?: ForkOptions\n ): Promise<{\n targetCompId: ComponentID;\n component: Component;\n }> {\n if (options?.refactor) {\n throw new BitError(`the component ${sourceId.toStringWithoutVersion()} is not in the workspace, you can't use the --refactor flag.\nthe reason is that the refactor changes the components using ${sourceId.toStringWithoutVersion()}, since it's not in the workspace, no components were using it, so nothing to refactor`);\n }\n const targetName = targetId || sourceId.fullName;\n const targetCompId = this.newComponentHelper.getNewComponentId(targetName, undefined, options?.scope);\n const component = await this.workspace.scope.getRemoteComponent(sourceId);\n await this.refactoring.replaceMultipleStrings(\n [component],\n [\n {\n oldStr: sourceId.toStringWithoutVersion(),\n newStr: targetCompId.toStringWithoutVersion(),\n },\n ]\n );\n if (!options?.preserve) {\n await this.refactoring.refactorVariableAndClasses(component, sourceId, targetCompId);\n this.refactoring.refactorFilenames(component, sourceId, targetCompId);\n }\n const config = await this.getConfig(component, options);\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, options, config);\n\n return { targetCompId, component };\n }\n\n private async saveDeps(component: Component) {\n const workspacePolicyEntries = await this.extractDeps(component);\n this.dependencyResolver.addToRootPolicy(workspacePolicyEntries, { updateExisting: true });\n await this.dependencyResolver.persistConfig(this.workspace.path);\n }\n\n private async installDeps() {\n await this.install.install(undefined, {\n dedupe: true,\n import: false,\n copyPeerToRuntimeOnRoot: true,\n copyPeerToRuntimeOnComponents: false,\n updateExisting: false,\n });\n }\n\n private async extractDeps(component: Component) {\n const deps = await this.dependencyResolver.getDependencies(component);\n const excludePackages = ['@teambit/legacy'];\n const excludeCompIds = this.dependencyResolver.getCompIdsThatShouldNotBeInPolicy();\n return deps\n .filter((dep) => dep.source === 'auto')\n .filter((dep) => {\n if (dep instanceof ComponentDependency) {\n const compIdStr = dep.componentId.toStringWithoutVersion();\n return !excludeCompIds.includes(compIdStr);\n }\n return !excludePackages.includes(dep.id);\n })\n .map((dep) => ({\n dependencyId: dep.getPackageName?.() || dep.id,\n lifecycleType: dep.lifecycle === 'dev' ? 'runtime' : dep.lifecycle,\n value: {\n version: dep.version,\n },\n }));\n }\n\n private async getConfig(comp: Component, options?: ForkOptions) {\n const fromExisting = options?.skipConfig\n ? {}\n : await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);\n const linkToOriginal = options?.noLink ? {} : { [ForkingAspect.id]: { forkedFrom: comp.id.toObject() } };\n return {\n ...fromExisting,\n ...linkToOriginal,\n };\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n dependencyResolver,\n componentMain,\n newComponentHelper,\n graphql,\n refactoring,\n pkg,\n install,\n ]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n ]) {\n const forkingMain = new ForkingMain(workspace, install, dependencyResolver, newComponentHelper, refactoring, pkg);\n cli.register(new ForkCmd(forkingMain));\n graphql.register(forkingSchema(forkingMain));\n componentMain.registerShowFragments([new ForkingFragment(forkingMain)]);\n\n const scopeCommand = cli.getCommand('scope');\n scopeCommand?.commands?.push(new ScopeForkCmd(forkingMain));\n\n return forkingMain;\n }\n}\n\nForkingAspect.addRuntime(ForkingMain);\n\nexport type ForkConfig = {\n forkedFrom: ComponentIdObj;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA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tCD,OAAO,CAACE,QAAQ,CAAC,IAAAE,yBAAa,EAACH,WAAW,CAAC,CAAC;IAC5CF,aAAa,CAACM,qBAAqB,CAAC,CAAC,KAAIC,2BAAe,EAACL,WAAW,CAAC,CAAC,CAAC;IAEvE,MAAMM,YAAY,GAAGT,GAAG,CAACU,UAAU,CAAC,OAAO,CAAC;IAC5CD,YAAY,aAAZA,YAAY,gDAAZA,YAAY,CAAEE,QAAQ,0DAAtB,sBAAwBtG,IAAI,CAAC,KAAIuG,yBAAY,EAACT,WAAW,CAAC,CAAC;IAE3D,OAAOA,WAAW;EACpB;AACF;AAAC;AAAA,gCArQYlJ,WAAW,WAyNP,EAAE;AAAA,gCAzNNA,WAAW,kBA0NA,CACpB4J,gBAAS,EACTC,oBAAe,EACfC,8CAAwB,EACxBC,oBAAe,EACfC,6BAAwB,EACxBC,kBAAa,EACbC,sBAAiB,EACjBC,cAAS,EACTC,wBAAa,CACd;AAAA,gCApOUpK,WAAW,aAqOLqK,kBAAW;AAkC9BjI,wBAAa,CAACkI,UAAU,CAACtK,WAAW,CAAC"}
|
1
|
+
{"version":3,"names":["ForkingMain","constructor","workspace","install","dependencyResolver","newComponentHelper","refactoring","pkg","fork","sourceId","targetId","options","OutsideWorkspaceError","sourceCompId","resolveComponentId","exists","existingInWorkspace","get","forkExistingInWorkspace","sourceIdWithScope","_legacy","scope","ComponentID","fromLegacy","BitId","parse","targetCompId","component","forkRemoteComponent","saveDeps","skipDependencyInstallation","installDeps","getForkInfo","forkConfig","state","aspects","ForkingAspect","id","config","forkedFrom","fromObject","forkMultipleFromRemote","componentsToFork","results","pMapSeries","path","env","refactorMultipleAndInstall","oldPackages","stringsToReplace","map","oldPackageName","getPackageName","push","newName","fullName","replace","scopeToReplace","newPackageName","oldStr","newStr","toStringWithoutVersion","flat","allComponents","list","refactor","changedComponents","replaceMultipleStrings","Promise","all","comp","write","forkedComponents","result","policy","extractDeps","policyFlatAndUnique","uniqBy","policyWithoutWorkspaceComps","filter","dep","includes","dependencyId","addToRootPolicy","updateExisting","persistConfig","forkScope","originalScope","newScope","idsFromOriginalScope","listRemoteScope","length","Error","workspaceIds","listIds","workspaceBitIds","BitIds","fromArray","forEach","existInWorkspace","searchWithoutScopeAndVersion","toString","multipleForkInfo","components","getManyRemoteComponents","getConfig","name","writeAndAddNewComp","info","existing","getNewComponentId","undefined","refactorDependencyName","BitError","targetName","getRemoteComponent","preserve","refactorVariableAndClasses","refactorFilenames","workspacePolicyEntries","dedupe","import","copyPeerToRuntimeOnRoot","copyPeerToRuntimeOnComponents","deps","getDependencies","excludePackages","excludeCompIds","getCompIdsThatShouldNotBeInPolicy","source","ComponentDependency","compIdStr","componentId","lifecycleType","lifecycle","value","version","fromExisting","skipConfig","getConfigFromExistingToNewComponent","linkToOriginal","noLink","toObject","provider","cli","componentMain","graphql","forkingMain","register","ForkCmd","forkingSchema","registerShowFragments","ForkingFragment","scopeCommand","getCommand","commands","ScopeForkCmd","CLIAspect","WorkspaceAspect","DependencyResolverAspect","ComponentAspect","NewComponentHelperAspect","GraphqlAspect","RefactoringAspect","PkgAspect","InstallAspect","MainRuntime","addRuntime"],"sources":["forking.main.runtime.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport ComponentAspect, { Component, ComponentID, ComponentMain } from '@teambit/component';\nimport { ComponentIdObj } from '@teambit/component-id';\nimport { ComponentDependency, DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { ComponentConfig } from '@teambit/generator';\nimport GraphqlAspect, { GraphqlMain } from '@teambit/graphql';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport { BitIds } from '@teambit/legacy/dist/bit-id';\nimport NewComponentHelperAspect, { NewComponentHelperMain } from '@teambit/new-component-helper';\nimport PkgAspect, { PkgMain } from '@teambit/pkg';\nimport RefactoringAspect, { MultipleStringsReplacement, RefactoringMain } from '@teambit/refactoring';\nimport WorkspaceAspect, { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { uniqBy } from 'lodash';\nimport pMapSeries from 'p-map-series';\nimport { ForkCmd, ForkOptions } from './fork.cmd';\nimport { ForkingAspect } from './forking.aspect';\nimport { ForkingFragment } from './forking.fragment';\nimport { forkingSchema } from './forking.graphql';\nimport { ScopeForkCmd } from './scope-fork.cmd';\n\nexport type ForkInfo = {\n forkedFrom: ComponentID;\n};\n\ntype MultipleForkInfo = {\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n};\n\ntype MultipleComponentsToFork = Array<{\n sourceId: string;\n targetId?: string; // if not specified, it'll be the same as the source\n path?: string; // if not specified, use the default component path\n env?: string; // if not specified, use the default env\n config?: ComponentConfig; // if specified, adds to/overrides the existing config\n}>;\n\ntype MultipleForkOptions = {\n refactor?: boolean;\n scope?: string; // different scope-name than the original components\n install?: boolean; // whether to run \"bit install\" once done.\n};\n\nexport class ForkingMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private dependencyResolver: DependencyResolverMain,\n private newComponentHelper: NewComponentHelperMain,\n private refactoring: RefactoringMain,\n private pkg: PkgMain\n ) {}\n\n /**\n * create a new copy of existing/remote component.\n * the new component holds a reference to the old one for future reference.\n * if refactor option is enable, change the source-code to update all dependencies with the new name.\n */\n async fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const exists = this.workspace.exists(sourceCompId);\n if (exists) {\n const existingInWorkspace = await this.workspace.get(sourceCompId);\n return this.forkExistingInWorkspace(existingInWorkspace, targetId, options);\n }\n const sourceIdWithScope = sourceCompId._legacy.scope\n ? sourceCompId\n : ComponentID.fromLegacy(BitId.parse(sourceId, true));\n const { targetCompId, component } = await this.forkRemoteComponent(sourceIdWithScope, targetId, options);\n await this.saveDeps(component);\n if (!options?.skipDependencyInstallation) await this.installDeps();\n return targetCompId;\n }\n\n /**\n * get the forking data, such as the source where a component was forked from\n */\n getForkInfo(component: Component): ForkInfo | null {\n const forkConfig = component.state.aspects.get(ForkingAspect.id)?.config as ForkConfig | undefined;\n if (!forkConfig) return null;\n return {\n forkedFrom: ComponentID.fromObject(forkConfig.forkedFrom),\n };\n }\n\n async forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options: MultipleForkOptions = {}) {\n const { scope } = options;\n const results = await pMapSeries(componentsToFork, async ({ sourceId, targetId, path, env, config }) => {\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const sourceIdWithScope = sourceCompId._legacy.scope\n ? sourceCompId\n : ComponentID.fromLegacy(BitId.parse(sourceId, true));\n const { targetCompId, component } = await this.forkRemoteComponent(sourceIdWithScope, targetId, {\n scope,\n path,\n env,\n config,\n });\n return { targetCompId, sourceId, component };\n });\n await this.refactorMultipleAndInstall(results, options);\n }\n\n private async refactorMultipleAndInstall(results: MultipleForkInfo[], options: MultipleForkOptions = {}) {\n const oldPackages: string[] = [];\n const stringsToReplace: MultipleStringsReplacement = results\n .map(({ targetCompId, sourceId, component }) => {\n const oldPackageName = this.pkg.getPackageName(component);\n oldPackages.push(oldPackageName);\n const newName = targetCompId.fullName.replace(/\\//g, '.');\n const scopeToReplace = targetCompId.scope.replace('.', '/');\n const newPackageName = `@${scopeToReplace}.${newName}`;\n return [\n { oldStr: oldPackageName, newStr: newPackageName },\n { oldStr: sourceId, newStr: targetCompId.toStringWithoutVersion() },\n ];\n })\n .flat();\n const allComponents = await this.workspace.list();\n if (options.refactor) {\n const { changedComponents } = await this.refactoring.replaceMultipleStrings(allComponents, stringsToReplace);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n }\n const forkedComponents = results.map((result) => result.component);\n const policy = await Promise.all(forkedComponents.map((comp) => this.extractDeps(comp)));\n const policyFlatAndUnique = uniqBy(policy.flat(), 'dependencyId');\n const policyWithoutWorkspaceComps = policyFlatAndUnique.filter((dep) => !oldPackages.includes(dep.dependencyId));\n this.dependencyResolver.addToRootPolicy(policyWithoutWorkspaceComps, { updateExisting: true });\n await this.dependencyResolver.persistConfig(this.workspace.path);\n if (options.install) {\n await this.installDeps();\n }\n }\n\n /**\n * fork all components of the given scope\n */\n async forkScope(originalScope: string, newScope: string): Promise<ComponentID[]> {\n const idsFromOriginalScope = await this.workspace.scope.listRemoteScope(originalScope);\n if (!idsFromOriginalScope.length) {\n throw new Error(`unable to find components to fork from ${originalScope}`);\n }\n const workspaceIds = await this.workspace.listIds();\n const workspaceBitIds = BitIds.fromArray(workspaceIds.map((id) => id._legacy));\n idsFromOriginalScope.forEach((id) => {\n const existInWorkspace = workspaceBitIds.searchWithoutScopeAndVersion(id._legacy);\n if (existInWorkspace) {\n throw new Error(\n `unable to fork \"${id.toString()}\". the workspace has a component \"${existInWorkspace.toString()}\" with the same name`\n );\n }\n });\n const multipleForkInfo: MultipleForkInfo[] = [];\n const components = await this.workspace.scope.getManyRemoteComponents(idsFromOriginalScope);\n await pMapSeries(components, async (component) => {\n const config = await this.getConfig(component);\n const targetCompId = ComponentID.fromObject({ name: component.id.fullName }, newScope);\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, { scope: newScope }, config);\n multipleForkInfo.push({ targetCompId, sourceId: component.id.toStringWithoutVersion(), component });\n });\n await this.refactorMultipleAndInstall(multipleForkInfo, { refactor: true, install: true });\n return multipleForkInfo.map((info) => info.targetCompId);\n }\n\n private async forkExistingInWorkspace(existing: Component, targetId?: string, options?: ForkOptions) {\n if (!targetId) {\n throw new Error(`error: unable to create \"${existing.id.toStringWithoutVersion()}\" component, a component with the same name already exists.\nplease specify the target-id arg`);\n }\n const targetCompId = this.newComponentHelper.getNewComponentId(targetId, undefined, options?.scope);\n\n const config = await this.getConfig(existing, options);\n await this.newComponentHelper.writeAndAddNewComp(existing, targetCompId, options, config);\n if (options?.refactor) {\n const allComponents = await this.workspace.list();\n const { changedComponents } = await this.refactoring.refactorDependencyName(allComponents, existing.id, targetId);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n }\n return targetCompId;\n }\n\n private async forkRemoteComponent(\n sourceId: ComponentID,\n targetId?: string,\n options?: ForkOptions\n ): Promise<{\n targetCompId: ComponentID;\n component: Component;\n }> {\n if (options?.refactor) {\n throw new BitError(`the component ${sourceId.toStringWithoutVersion()} is not in the workspace, you can't use the --refactor flag.\nthe reason is that the refactor changes the components using ${sourceId.toStringWithoutVersion()}, since it's not in the workspace, no components were using it, so nothing to refactor`);\n }\n const targetName = targetId || sourceId.fullName;\n const targetCompId = this.newComponentHelper.getNewComponentId(targetName, undefined, options?.scope);\n const component = await this.workspace.scope.getRemoteComponent(sourceId);\n await this.refactoring.replaceMultipleStrings(\n [component],\n [\n {\n oldStr: sourceId.toStringWithoutVersion(),\n newStr: targetCompId.toStringWithoutVersion(),\n },\n ]\n );\n if (!options?.preserve) {\n await this.refactoring.refactorVariableAndClasses(component, sourceId, targetCompId);\n this.refactoring.refactorFilenames(component, sourceId, targetCompId);\n }\n const config = await this.getConfig(component, options);\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, options, config);\n\n return { targetCompId, component };\n }\n\n private async saveDeps(component: Component) {\n const workspacePolicyEntries = await this.extractDeps(component);\n this.dependencyResolver.addToRootPolicy(workspacePolicyEntries, { updateExisting: true });\n await this.dependencyResolver.persistConfig(this.workspace.path);\n }\n\n private async installDeps() {\n await this.install.install(undefined, {\n dedupe: true,\n import: false,\n copyPeerToRuntimeOnRoot: true,\n copyPeerToRuntimeOnComponents: false,\n updateExisting: false,\n });\n }\n\n private async extractDeps(component: Component) {\n const deps = await this.dependencyResolver.getDependencies(component);\n const excludePackages = ['@teambit/legacy'];\n const excludeCompIds = this.dependencyResolver.getCompIdsThatShouldNotBeInPolicy();\n return deps\n .filter((dep) => dep.source === 'auto')\n .filter((dep) => {\n if (dep instanceof ComponentDependency) {\n const compIdStr = dep.componentId.toStringWithoutVersion();\n return !excludeCompIds.includes(compIdStr);\n }\n return !excludePackages.includes(dep.id);\n })\n .map((dep) => ({\n dependencyId: dep.getPackageName?.() || dep.id,\n lifecycleType: dep.lifecycle === 'dev' ? 'runtime' : dep.lifecycle,\n value: {\n version: dep.version,\n },\n }));\n }\n\n private async getConfig(comp: Component, options?: ForkOptions) {\n const config = options?.config || {};\n const fromExisting = options?.skipConfig\n ? {}\n : await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);\n const linkToOriginal = options?.noLink ? {} : { [ForkingAspect.id]: { forkedFrom: comp.id.toObject() } };\n return {\n ...fromExisting,\n ...linkToOriginal,\n ...config,\n };\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n dependencyResolver,\n componentMain,\n newComponentHelper,\n graphql,\n refactoring,\n pkg,\n install,\n ]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n ]) {\n const forkingMain = new ForkingMain(workspace, install, dependencyResolver, newComponentHelper, refactoring, pkg);\n cli.register(new ForkCmd(forkingMain));\n graphql.register(forkingSchema(forkingMain));\n componentMain.registerShowFragments([new ForkingFragment(forkingMain)]);\n\n const scopeCommand = cli.getCommand('scope');\n scopeCommand?.commands?.push(new ScopeForkCmd(forkingMain));\n\n return forkingMain;\n }\n}\n\nForkingAspect.addRuntime(ForkingMain);\n\nexport type ForkConfig = {\n forkedFrom: ComponentIdObj;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AA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Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.498/dist/forking.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.498/dist/forking.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
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.498",
|
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": "0.0.
|
9
|
+
"version": "0.0.498"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -18,16 +18,17 @@
|
|
18
18
|
"@teambit/harmony": "0.4.6",
|
19
19
|
"@teambit/component-id": "0.0.427",
|
20
20
|
"@teambit/legacy-bit-id": "0.0.423",
|
21
|
-
"@teambit/cli": "0.0.
|
22
|
-
"@teambit/
|
23
|
-
"@teambit/
|
21
|
+
"@teambit/cli": "0.0.735",
|
22
|
+
"@teambit/generator": "0.0.1094",
|
23
|
+
"@teambit/component": "0.0.1094",
|
24
|
+
"@teambit/graphql": "0.0.1094",
|
24
25
|
"@teambit/bit-error": "0.0.402",
|
25
|
-
"@teambit/dependency-resolver": "0.0.
|
26
|
-
"@teambit/install": "0.0.
|
27
|
-
"@teambit/new-component-helper": "0.0.
|
28
|
-
"@teambit/pkg": "0.0.
|
29
|
-
"@teambit/refactoring": "0.0.
|
30
|
-
"@teambit/workspace": "0.0.
|
26
|
+
"@teambit/dependency-resolver": "0.0.1094",
|
27
|
+
"@teambit/install": "0.0.193",
|
28
|
+
"@teambit/new-component-helper": "0.0.498",
|
29
|
+
"@teambit/pkg": "0.0.1094",
|
30
|
+
"@teambit/refactoring": "0.0.391",
|
31
|
+
"@teambit/workspace": "0.0.1094"
|
31
32
|
},
|
32
33
|
"devDependencies": {
|
33
34
|
"@types/react": "^17.0.8",
|
@@ -39,7 +40,7 @@
|
|
39
40
|
"@types/testing-library__jest-dom": "5.9.5"
|
40
41
|
},
|
41
42
|
"peerDependencies": {
|
42
|
-
"@teambit/legacy": "1.0.
|
43
|
+
"@teambit/legacy": "1.0.516",
|
43
44
|
"react": "^16.8.0 || ^17.0.0",
|
44
45
|
"react-dom": "^16.8.0 || ^17.0.0"
|
45
46
|
},
|
Binary file
|