@catladder/pipeline
Version:
Panter workflow for cloud CI/CD and DevOps
20 lines (19 loc) • 693 B
JavaScript
;
var _a;
Object.defineProperty(exports, "__esModule", {
value: true
});
// 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 ownPkg = {
version: "0.0.0"
};
try {
var path = ((_a = require.main) === null || _a === void 0 ? void 0 : _a.path) + "/../package.json";
ownPkg = require(path);
} catch (e) {
// ignore, currently in the gitlab-includes, this doesn't work
}
exports.default = ownPkg;