@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
13 lines (12 loc) • 573 B
JavaScript
;
// we can't import the package.json directly, because the bundling process will inline it
// but the version is only set during deployement, when its already bundled
// instead we need to use require.main.path to get the path of the main module, which is actually the file in the bin
// this will point to the root package.json
var _a;
Object.defineProperty(exports, "__esModule", {
value: true
});
const path = ((_a = require.main) === null || _a === void 0 ? void 0 : _a.path) + "/../package.json";
const ownPkg = require(path);
exports.default = ownPkg;