@pnpm/read-package-json
Version:
Read a package.json
6 lines (5 loc) • 424 B
TypeScript
import { type PackageManifest } from '@pnpm/types';
export declare function readPackageJson(pkgPath: string): Promise<PackageManifest>;
export declare function readPackageJsonFromDir(pkgPath: string): Promise<PackageManifest>;
export declare function safeReadPackageJson(pkgPath: string): Promise<PackageManifest | null>;
export declare function safeReadPackageJsonFromDir(pkgPath: string): Promise<PackageManifest | null>;