thinkncollab-cli 0.0.44 → 0.0.45
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/commands/version.js +2 -3
- package/package.json +1 -1
package/commands/version.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// and this file is in src/commands/version.js
|
|
1
|
+
|
|
3
2
|
|
|
4
3
|
import { readFileSync } from 'fs';
|
|
5
4
|
import { fileURLToPath } from 'url';
|
|
@@ -10,7 +9,7 @@ const __dirname = dirname(__filename);
|
|
|
10
9
|
|
|
11
10
|
async function version() {
|
|
12
11
|
try {
|
|
13
|
-
const pkgPath = join(__dirname, '..', '
|
|
12
|
+
const pkgPath = join(__dirname, '..', 'package.json');
|
|
14
13
|
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
15
14
|
console.log(`ThinkNCollab CLI Version: ${pkg.version}`);
|
|
16
15
|
console.log(`ThinkNCollab CLI is Installed at: ${pkgPath}`);
|