@castari/cli 0.1.1 → 0.1.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/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ import { deploy } from './commands/deploy';
5
5
  import { start } from './commands/start';
6
6
  import { dev } from './commands/dev';
7
7
  import { generateClientId } from './commands/generate-client-id';
8
+ import { createRequire } from 'module';
9
+ const require = createRequire(import.meta.url);
10
+ const { version } = require('../package.json');
8
11
  const cli = cac('castari');
9
12
  cli
10
13
  .command('init', 'Initialize a new Castari agent project')
@@ -27,5 +30,5 @@ cli
27
30
  .command('generate-client-id', 'Generate a new Castari Client ID and save it locally')
28
31
  .action(generateClientId);
29
32
  cli.help();
30
- cli.version('0.0.7');
33
+ cli.version(version);
31
34
  cli.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castari/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castari": "./dist/index.js"