@usejourney/cli 0.1.1 → 0.1.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/dist/index.js +4 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
-
import { readFileSync as readFileSync2 } from "fs";
|
|
4
|
+
import { readFileSync as readFileSync2, realpathSync } from "fs";
|
|
5
5
|
import { resolve as resolvePath } from "path";
|
|
6
|
+
import { pathToFileURL as pathToFileURL2 } from "url";
|
|
6
7
|
import { Command } from "commander";
|
|
7
8
|
|
|
8
9
|
// src/commands/envList.ts
|
|
@@ -1835,7 +1836,8 @@ function buildProgram() {
|
|
|
1835
1836
|
envCmd.command("list").description("List available environments").action(() => handle(() => runEnvList(process.cwd())));
|
|
1836
1837
|
return program;
|
|
1837
1838
|
}
|
|
1838
|
-
var
|
|
1839
|
+
var invoked = process.argv[1];
|
|
1840
|
+
var isDirectRun = invoked != null && import.meta.url === pathToFileURL2(realpathSync(invoked)).href;
|
|
1839
1841
|
if (isDirectRun) {
|
|
1840
1842
|
buildProgram().parseAsync(process.argv);
|
|
1841
1843
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usejourney/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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.
|
|
27
|
-
"@usejourney/
|
|
28
|
-
"@usejourney/
|
|
29
|
-
"@usejourney/
|
|
26
|
+
"@usejourney/codegen": "^0.1.2",
|
|
27
|
+
"@usejourney/core": "0.1.2",
|
|
28
|
+
"@usejourney/k6-adapter": "^0.1.2",
|
|
29
|
+
"@usejourney/postman-adapter": "^0.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/newman": "^5.3.6",
|