@exreve/exk 1.0.8 → 1.0.9
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/index.js +2 -2
- package/dist/ttc-cli.tar.gz +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -190,8 +190,8 @@ async function connect() {
|
|
|
190
190
|
/** Read CLI version from the npm package.json (works when installed via npm i -g @exreve/exk) */
|
|
191
191
|
function getCliVersion() {
|
|
192
192
|
try {
|
|
193
|
-
//
|
|
194
|
-
const pkgPath = path.join(__dirname, 'package.json');
|
|
193
|
+
// Compiled JS is in dist/, package.json is one level up
|
|
194
|
+
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
195
195
|
const raw = fsSync.readFileSync(pkgPath, 'utf-8');
|
|
196
196
|
const pkg = JSON.parse(raw);
|
|
197
197
|
return pkg.version || '0.0.0';
|
package/dist/ttc-cli.tar.gz
CHANGED
|
Binary file
|