@usejourney/cli 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { readFileSync as readFileSync2 } from "fs";
4
5
  import { resolve as resolvePath } from "path";
5
6
  import { Command } from "commander";
6
7
 
@@ -1714,9 +1715,12 @@ async function handle(fn) {
1714
1715
  process.exit(1);
1715
1716
  }
1716
1717
  }
1718
+ var { version } = JSON.parse(
1719
+ readFileSync2(new URL("../package.json", import.meta.url), "utf8")
1720
+ );
1717
1721
  function buildProgram() {
1718
1722
  const program = new Command();
1719
- program.name("journey").description("Local-first API testing & orchestration tool").version("0.0.0");
1723
+ program.name("journey").description("Local-first API testing & orchestration tool").version(version);
1720
1724
  program.command("init <dir>").requiredOption("--spec <path>", "OpenAPI spec file").option("--force", "Scaffold into a non-empty directory", false).description("Scaffold a new Journey project from an OpenAPI spec").action(
1721
1725
  (dir, options) => handle(
1722
1726
  () => runInit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usejourney/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,10 +23,10 @@
23
23
  "commander": "^12.1.0",
24
24
  "tsx": "^4.21.0",
25
25
  "undici": "^8.3.0",
26
- "@usejourney/codegen": "^0.1.0",
27
- "@usejourney/core": "0.1.0",
28
- "@usejourney/postman-adapter": "^0.1.0",
29
- "@usejourney/k6-adapter": "^0.1.0"
26
+ "@usejourney/codegen": "^0.1.1",
27
+ "@usejourney/k6-adapter": "^0.1.1",
28
+ "@usejourney/postman-adapter": "^0.1.1",
29
+ "@usejourney/core": "0.1.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/newman": "^5.3.6",