@aigne/cli 1.0.0-11 → 1.0.0-13

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.
@@ -1,13 +1,13 @@
1
1
  import { Command } from "commander";
2
+ import pkg from "../../package.json" with { type: "json" };
2
3
  import { createCreateCommand } from "./create.js";
3
4
  import { createRunCommand } from "./run.js";
4
5
  import { createTestCommand } from "./test.js";
5
6
  export function createAIGNECommand() {
6
- const { version } = require("../../package.json");
7
7
  return new Command()
8
8
  .name("aigne")
9
9
  .description("CLI for AIGNE framework")
10
- .version(version)
10
+ .version(pkg.version)
11
11
  .addCommand(createRunCommand())
12
12
  .addCommand(createTestCommand())
13
13
  .addCommand(createCreateCommand())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.0.0-11",
3
+ "version": "1.0.0-13",
4
4
  "description": "cli for AIGNE framework",
5
5
  "publishConfig": {
6
6
  "access": "public"