@openez-graph/cli 0.5.0 → 0.5.1
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/cli.cjs +5 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -200816,9 +200816,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
200816
200816
|
if (packageName === void 0) return void 0;
|
|
200817
200817
|
switch (context.fixId) {
|
|
200818
200818
|
case fixIdInstallTypesPackage: {
|
|
200819
|
-
const
|
|
200820
|
-
if (
|
|
200821
|
-
commands.push(getInstallCommand(diag2.file.fileName,
|
|
200819
|
+
const pkg2 = getTypesPackageNameToInstall(packageName, context.host, diag2.code);
|
|
200820
|
+
if (pkg2) {
|
|
200821
|
+
commands.push(getInstallCommand(diag2.file.fileName, pkg2));
|
|
200822
200822
|
}
|
|
200823
200823
|
break;
|
|
200824
200824
|
}
|
|
@@ -321683,8 +321683,9 @@ var {
|
|
|
321683
321683
|
// src/cli.ts
|
|
321684
321684
|
init_src();
|
|
321685
321685
|
init_src4();
|
|
321686
|
+
var pkg = JSON.parse(import_node_fs17.default.readFileSync(import_node_path21.default.resolve(__dirname, "../package.json"), "utf-8"));
|
|
321686
321687
|
var program2 = new Command();
|
|
321687
|
-
program2.name("openez").description("OpenEZ Graph - Local-first knowledge retrieval system").version(
|
|
321688
|
+
program2.name("openez").description("OpenEZ Graph - Local-first knowledge retrieval system").version(pkg.version);
|
|
321688
321689
|
program2.command("init").description("Initialize a workspace at the given path and run initial index").argument("[path]", "path to the project directory", process.cwd()).option("--no-index", "skip initial indexing").action(async (targetPath, options) => {
|
|
321689
321690
|
const resolvedPath = import_node_path21.default.resolve(targetPath);
|
|
321690
321691
|
if (!import_node_fs17.default.existsSync(resolvedPath)) {
|
package/package.json
CHANGED