"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Reads general app info from a `package.json`.
 * @param absolutePathToPackageJson The absolute path to your `package.json`,
 * e.g. `join(__dirname, "./package.json")`.
 */
function cliInfoFromPackageJson(absolutePathToPackageJson) {
    const pkgJson = require(absolutePathToPackageJson);
    return {
        appName: pkgJson.name,
        version: pkgJson.version || "0.0.1",
    };
}
exports.cliInfoFromPackageJson = cliInfoFromPackageJson;
//# sourceMappingURL=cliInfoFromPackageJson.js.map