UNPKG

europa-build

Version:

Tool for generating and maintaining Europa plugins and presets

27 lines (26 loc) 892 B
import * as readPkgUp from 'read-pkg-up'; declare const _singleton: unique symbol; /** * Contains information relating to this npm package, including its installation location. */ export declare class PackageInfo { readonly directoryPath: string; readonly filePath: string; readonly json: readPkgUp.NormalizedPackageJson; private static [_singleton]; /** * Creates an instance of {@link PackageInfo}. * * @param directoryPath - The path of the package's installation directory. * @param filePath - The path of the package's `package.json` file. * @param json - The JSON contents of the package's `package.json` file. */ private constructor(); /** * Returns a singleton instance of {@link PackageInfo}. * * @return A singleton {@link PackageInfo}. */ static getSingleton(): Promise<PackageInfo>; } export {};