@teambit/lanes 1.0.1149 → 1.0.1150
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/lanes.main.runtime.d.ts +3 -1
- package/dist/lanes.main.runtime.js +2 -0
- package/dist/lanes.main.runtime.js.map +1 -1
- package/dist/lanes.spec.js +53 -0
- package/dist/lanes.spec.js.map +1 -1
- package/dist/{preview-1787260228106.js → preview-1787264602520.js} +2 -2
- package/dist/switch-lanes.d.ts +20 -0
- package/dist/switch-lanes.js +26 -4
- package/dist/switch-lanes.js.map +1 -1
- package/package.json +19 -19
|
@@ -48,6 +48,8 @@ export type SwitchLaneOptions = {
|
|
|
48
48
|
forceTheirs?: boolean;
|
|
49
49
|
workspaceOnly?: boolean;
|
|
50
50
|
pattern?: string;
|
|
51
|
+
/** switch only the lane components from these scopes (see `SwitchProps.restrictToScopes`) */
|
|
52
|
+
restrictToScopes?: string[];
|
|
51
53
|
skipDependencyInstallation?: boolean;
|
|
52
54
|
verbose?: boolean;
|
|
53
55
|
override?: boolean;
|
|
@@ -242,7 +244,7 @@ export declare class LanesMain {
|
|
|
242
244
|
* by default, only the components existing on the workspace will be imported from that lane, unless the "getAll"
|
|
243
245
|
* flag is true.
|
|
244
246
|
*/
|
|
245
|
-
switchLanes(laneName: string, { alias, merge, forceOurs, forceTheirs, pattern, workspaceOnly, skipDependencyInstallation, skipFetch, branch, }: SwitchLaneOptions): Promise<import("@teambit/component.modules.merge-helper").ApplyVersionResults>;
|
|
247
|
+
switchLanes(laneName: string, { alias, merge, forceOurs, forceTheirs, pattern, workspaceOnly, restrictToScopes, skipDependencyInstallation, skipFetch, branch, }: SwitchLaneOptions): Promise<import("@teambit/component.modules.merge-helper").ApplyVersionResults>;
|
|
246
248
|
private createGitBranchForLane;
|
|
247
249
|
/**
|
|
248
250
|
* the values array may include zero to two values and will be processed as following:
|
|
@@ -850,6 +850,7 @@ please create a new lane instead, which will include all components of this lane
|
|
|
850
850
|
forceTheirs,
|
|
851
851
|
pattern,
|
|
852
852
|
workspaceOnly,
|
|
853
|
+
restrictToScopes,
|
|
853
854
|
skipDependencyInstallation = false,
|
|
854
855
|
skipFetch = false,
|
|
855
856
|
branch = false
|
|
@@ -873,6 +874,7 @@ please create a new lane instead, which will include all components of this lane
|
|
|
873
874
|
laneName,
|
|
874
875
|
existingOnWorkspaceOnly: workspaceOnly,
|
|
875
876
|
pattern,
|
|
877
|
+
restrictToScopes,
|
|
876
878
|
alias,
|
|
877
879
|
skipFetch
|
|
878
880
|
};
|