windmill-cli 0.0.4 → 0.0.6
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/esm/main.d.ts.map +1 -1
- package/esm/main.js +2 -1
- package/package.json +2 -2
package/esm/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAuC7B,eAAO,MAAM,OAAO,aAAa,CAAC;AAElC,QAAA,IAAI,OAAO,EAAE,GAmFsC,CAAC;AAKpD,eAAO,IAAI,SAAS,SAAQ,CAAC;AA8C7B,eAAe,OAAO,CAAC"}
|
package/esm/main.js
CHANGED
|
@@ -20,6 +20,7 @@ import dev from "./dev.js";
|
|
|
20
20
|
import { fetchVersion } from "./context.js";
|
|
21
21
|
import { OpenAPI } from "./deps.js";
|
|
22
22
|
import { getHeaders } from "./utils.js";
|
|
23
|
+
import process from "node:process";
|
|
23
24
|
// addEventListener("error", (event) => {
|
|
24
25
|
// if (event.error) {
|
|
25
26
|
// console.error("Error details of: " + event.error.message);
|
|
@@ -129,7 +130,7 @@ async function main() {
|
|
|
129
130
|
throw e;
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
if ((import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///"))) {
|
|
133
|
+
if ((import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///")) || import.meta.filename === process?.argv[1]) {
|
|
133
134
|
main();
|
|
134
135
|
// module was not imported but called directly
|
|
135
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "CLI for Windmill",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"test": "node test_runner.js"
|
|
21
21
|
},
|
|
22
|
-
"bin": "
|
|
22
|
+
"bin": "esm/main.js",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ayonli/jsext": "*",
|
|
25
25
|
"@oakserver/oak": "14",
|