bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
20 lines (19 loc) • 1.41 kB
TypeScript
import BitMap from '../bit-map/bit-map';
import { BitId } from '../../bit-id';
import { PathLinux, PathOsBased } from '../../utils/path';
import VersionDependencies from '../../scope/version-dependencies';
import ComponentVersion from '../../scope/component-version';
import Consumer from '../consumer';
import Repository from '../../scope/objects/repository';
import { ComponentWithDependencies } from '../../scope';
export declare type ManipulateDirItem = {
id: BitId;
originallySharedDir?: PathLinux;
wrapDir?: PathLinux;
};
export declare function getManipulateDirForExistingComponents(consumer: Consumer, componentVersion: ComponentVersion): Promise<ManipulateDirItem[]>;
export declare function getManipulateDirWhenImportingComponents(bitMap: BitMap, versionsDependencies: VersionDependencies[], repository: Repository): Promise<ManipulateDirItem[]>;
export declare function getManipulateDirForComponentWithDependencies(componentWithDependencies: ComponentWithDependencies): ManipulateDirItem[];
export declare function revertDirManipulationForPath(pathStr: PathOsBased, originallySharedDir: PathLinux | undefined, wrapDir: PathLinux | undefined): PathLinux;
export declare function stripSharedDirFromPath(pathStr: PathOsBased, sharedDir: PathLinux | undefined): PathOsBased;
export declare function addSharedDirForPath(pathStr: string, originallySharedDir: PathLinux | undefined): PathLinux;