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
12 lines (11 loc) • 493 B
TypeScript
import ScopesData from './e2e-scopes';
export default class PackageJsonHelper {
scopes: ScopesData;
constructor(scopes: ScopesData);
read(packageJsonFolder?: string): any;
write(packageJson: Record<string, any>, packageJsonFolder?: string): void;
create(data: Record<string, any>, location?: string): void;
corrupt(packageJsonPath?: string): void;
addKeyValue(data: Record<string, any>, pkgJsonPath?: string): void;
readComponentPackageJson(id: string): any;
}