@catladder/cli 1.142.1 → 1.142.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ // we can't import the package.json directly, because the bundling process will inline it
3
+ // but the version is only set during deployement, when its already bundled
4
+ // instead we need to use require.main.path to get the path of the main module, which is actually the file in the bin
5
+ // this will point to the root package.json
2
6
  exports.__esModule = true;
3
7
  // eslint-disable-next-line @typescript-eslint/no-var-requires
4
- var ownPkg = require("../package.json");
8
+ var ownPkg = require(require.main.path + "/../package.json");
5
9
  exports["default"] = ownPkg;
6
10
  //# sourceMappingURL=packageInfos.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageInfos.js","sourceRoot":"","sources":["../src/packageInfos.ts"],"names":[],"mappings":";;AAAA,8DAA8D;AAC9D,IAAM,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE1C,qBAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"packageInfos.js","sourceRoot":"","sources":["../src/packageInfos.ts"],"names":[],"mappings":";AAAA,yFAAyF;AACzF,2EAA2E;AAC3E,qHAAqH;AACrH,2CAA2C;;AAE3C,8DAA8D;AAC9D,IAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAC;AAE/D,qBAAe,MAAM,CAAC"}