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
25 lines (24 loc) • 744 B
TypeScript
import LegacyScope from '../../scope/scope';
import { IsolatorExtension } from '../isolator';
export declare type PackResult = {
pkgJson: Record<any, string>;
tarPath: string;
};
export declare type PackOptions = {
outDir?: string;
prefix?: boolean;
override?: boolean;
keep?: boolean;
useCapsule?: boolean;
loadScopeFromCache?: boolean;
};
export declare class Packer {
private isolator;
private scope?;
options: PackOptions;
constructor(isolator: IsolatorExtension, scope?: LegacyScope | undefined);
packComponent(componentId: string, scopePath: string | undefined, options: PackOptions): Promise<PackResult>;
private packLegacy;
private packUsingCapsule;
private runNpmPack;
}