kodevu 0.1.39 → 0.1.40
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/package.json +1 -1
- package/src/config.js +5 -1
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import os from "node:os";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import { findCommandOnPath } from "./shell.js";
|
|
5
6
|
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
const { version: packageVersion } = require("../package.json");
|
|
9
|
+
|
|
6
10
|
const defaultStorageDir = path.join(os.homedir(), ".kodevu");
|
|
7
11
|
const SUPPORTED_REVIEWERS = ["codex", "gemini", "copilot"];
|
|
8
12
|
|
|
@@ -256,7 +260,7 @@ export async function resolveConfig(cliArgs = {}) {
|
|
|
256
260
|
}
|
|
257
261
|
|
|
258
262
|
export function printHelp() {
|
|
259
|
-
console.log(`Kodevu
|
|
263
|
+
console.log(`Kodevu v${packageVersion}
|
|
260
264
|
|
|
261
265
|
Usage:
|
|
262
266
|
npx kodevu [target] [options]
|