@rahul05ranjan/dhruv-cli 1.2.1 → 1.2.3

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 CHANGED
@@ -13,7 +13,9 @@ import { generate } from './commands/generate.js';
13
13
  import { init } from './commands/init.js';
14
14
  import { detectProjectType } from './utils/projectType.js';
15
15
  import { menu } from './commands/menu.js';
16
- import pkg from '../package.json' assert { type: 'json' };
16
+ import { createRequire } from 'module';
17
+ const require = createRequire(import.meta.url);
18
+ const pkg = require('../package.json');
17
19
  const program = new Command();
18
20
  program
19
21
  .name('dhruv')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rahul05ranjan/dhruv-cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "AI-powered CLI assistant for developers using Ollama",
5
5
  "keywords": [
6
6
  "ai",
package/src/index.ts CHANGED
@@ -13,7 +13,9 @@ import { generate } from './commands/generate.js';
13
13
  import { init } from './commands/init.js';
14
14
  import { detectProjectType } from './utils/projectType.js';
15
15
  import { menu } from './commands/menu.js';
16
- import pkg from '../package.json' assert { type: 'json' };
16
+ import { createRequire } from 'module';
17
+ const require = createRequire(import.meta.url);
18
+ const pkg = require('../package.json');
17
19
 
18
20
  const program = new Command();
19
21