@exreve/exk 1.0.56 → 1.0.57
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.
- package/dist/cli/index.js +2 -2
- package/dist/ttc-cli.tar.gz +0 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -230,8 +230,8 @@ async function connect() {
|
|
|
230
230
|
/** Read CLI version from the npm package.json (works when installed via npm i -g @exreve/exk) */
|
|
231
231
|
function getCliVersion() {
|
|
232
232
|
try {
|
|
233
|
-
// Compiled JS is in dist/, package.json is
|
|
234
|
-
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
233
|
+
// Compiled JS is in dist/cli/, package.json is two levels up
|
|
234
|
+
const pkgPath = path.join(__dirname, '..', '..', 'package.json');
|
|
235
235
|
const raw = fsSync.readFileSync(pkgPath, 'utf-8');
|
|
236
236
|
const pkg = JSON.parse(raw);
|
|
237
237
|
return pkg.version || '0.0.0';
|
package/dist/ttc-cli.tar.gz
CHANGED
|
Binary file
|