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.
@@ -1,5 +1,4 @@
1
- // Assume your package.json is in project root
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, '..', '..', 'package.json');
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}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thinkncollab-cli",
3
3
  "author": "Raman Singh",
4
- "version": "0.0.44",
4
+ "version": "0.0.45",
5
5
  "description": "CLI tool for ThinkNCollab",
6
6
  "main": "index.js",
7
7
  "bin": {