voicci 1.0.1 → 1.0.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.
- package/cli/index.js +5 -1
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -13,6 +13,10 @@ import Queue from '../lib/queue.js';
|
|
|
13
13
|
import pathValidator from '../lib/path-validator.js';
|
|
14
14
|
import { exec, execFile } from 'child_process';
|
|
15
15
|
import { promisify } from 'util';
|
|
16
|
+
import { createRequire } from 'module';
|
|
17
|
+
|
|
18
|
+
const require = createRequire(import.meta.url);
|
|
19
|
+
const pkg = require('../package.json');
|
|
16
20
|
|
|
17
21
|
const execAsync = promisify(exec);
|
|
18
22
|
const execFileAsync = promisify(execFile);
|
|
@@ -22,7 +26,7 @@ const program = new Command();
|
|
|
22
26
|
program
|
|
23
27
|
.name('voicci')
|
|
24
28
|
.description('AI Audiobook Generator using XTTS v2')
|
|
25
|
-
.version(
|
|
29
|
+
.version(pkg.version);
|
|
26
30
|
|
|
27
31
|
program
|
|
28
32
|
.argument('[input]', 'PDF/TXT file or book/paper name to convert')
|