UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

10 lines (7 loc) 437 B
// 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 const path = require.main?.path + "/../package.json"; const ownPkg = require(path); export default ownPkg;