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
19 lines (18 loc) • 1.04 kB
TypeScript
import ScopesData from './e2e-scopes';
export default class BitJsonHelper {
scopes: ScopesData;
constructor(scopes: ScopesData);
read(bitJsonDir?: string): any;
write(bitJson: Record<string, any>, bitJsonDir?: string): void;
addKeyVal(key: string, val: any, bitJsonDir?: string): void;
addOverrides(overrides: Record<string, any>): void;
addDefaultScope(scope?: string): void;
getEnvByType(bitJson: Record<string, any>, envType: 'compiler' | 'tester'): any;
addToRawConfigOfEnv(bitJsonPath: string | undefined, key: string, val: string, envType: 'compiler' | 'tester'): void;
manageWorkspaces(withWorkspaces?: boolean): void;
setComponentsDir(content: string): void;
corrupt(bitJsonPath?: string): void;
modifyField(key: string, value: string): void;
_getEnvNameByType(bitJson: Record<string, any>, envType: 'compiler' | 'tester'): string;
_addKeyValToEnvProp(bitJsonDir: string | undefined, propName: string, key: string, val: string, envType: 'compiler' | 'tester'): void;
}