@promptcellar/pc 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/bin/pc.js +5 -1
  2. package/package.json +1 -1
package/bin/pc.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { program } from 'commander';
4
+ import { createRequire } from 'module';
4
5
  import { login } from '../src/commands/login.js';
5
6
  import { logout } from '../src/commands/logout.js';
6
7
  import { status } from '../src/commands/status.js';
@@ -10,10 +11,13 @@ import { push } from '../src/commands/push.js';
10
11
  import { config } from '../src/commands/config.js';
11
12
  import { update } from '../src/commands/update.js';
12
13
 
14
+ const require = createRequire(import.meta.url);
15
+ const pkg = require('../package.json');
16
+
13
17
  program
14
18
  .name('pc')
15
19
  .description('PromptCellar CLI - sync prompts between your terminal and the cloud')
16
- .version('0.4.0');
20
+ .version(pkg.version);
17
21
 
18
22
  program
19
23
  .command('login')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptcellar/pc",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "CLI for PromptCellar - sync prompts between your terminal and the cloud",
5
5
  "type": "module",
6
6
  "main": "src/index.js",