@gobstones/gobstones-scripts
Version:
Scripts to abstract away build configuration of Gobstones Project's libraries and modules.
21 lines • 723 B
TypeScript
/**
* A package json reader creates a wrapper around the action of reading a
* JSON file and accessing the properties of it in an easy fashion.
* If reading the file fails, the returned reader will always return undefined
* for any property intended to be read.
*/
export declare class PackageJsonReader {
/** The contents of the package.json read file. */
_contents: unknown;
/**
* Create a new PackageJsonReader.
*
* @param packageJsonLocation - The location of the file to read.
*/
constructor(packageJsonLocation: string);
/**
* Return the associated value for a given key.
*/
getValueAt(key: string): unknown;
}
//# sourceMappingURL=PackageJsonReader.d.ts.map