@orgsdk/executor 1.1.0 → 2.0.0
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.js +4 -1
- package/package.json +4 -1
package/dist/cli.js
CHANGED
|
@@ -31,7 +31,10 @@ if (command === "--help" || !command) {
|
|
|
31
31
|
"orgsdk-executor register --url URL [--data DIR] (token: EXECUTOR_TOKEN or stdin)\norgsdk-executor start [--mode docker|host] [--data DIR]\norgsdk-executor install --agent ID --manifest FILE [--file bundled.mjs] [--data DIR]\norgsdk-executor package-plugin --directory CHECKOUT --output DIR [--embed-dependencies package,...] [--license FILE]\norgsdk-executor manage [--mode docker|host] (bootstrap manager)"
|
|
32
32
|
);
|
|
33
33
|
} else if (command === "--version") {
|
|
34
|
-
|
|
34
|
+
const manifest = JSON.parse(
|
|
35
|
+
await readFile(new URL(import.meta.resolve("#package.json")), "utf8")
|
|
36
|
+
);
|
|
37
|
+
console.log(z.object({ version: z.string() }).parse(manifest).version);
|
|
35
38
|
} else if (command === "register") {
|
|
36
39
|
const base = z.string().url().parse(option("url") || process.env.ORGSDK_SERVER_URL);
|
|
37
40
|
const token = z.string().min(32).parse(process.env.EXECUTOR_TOKEN || (await readStdin()).trim());
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "2.0.0",
|
|
3
3
|
"name": "@orgsdk/executor",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"directory": "runtime"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
|
+
"imports": {
|
|
17
|
+
"#package.json": "./package.json"
|
|
18
|
+
},
|
|
16
19
|
"scripts": {
|
|
17
20
|
"test": "npm run test:unit && npm run test:integration",
|
|
18
21
|
"typecheck": "tsc --noEmit",
|