@uagents/syncenv-cli 0.1.4 → 0.1.5
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 +11 -3
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -38,6 +38,9 @@ import {
|
|
|
38
38
|
// src/index.ts
|
|
39
39
|
import chalk8 from "chalk";
|
|
40
40
|
import { Command as Command7 } from "commander";
|
|
41
|
+
import { readFileSync } from "fs";
|
|
42
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
43
|
+
import { fileURLToPath } from "url";
|
|
41
44
|
|
|
42
45
|
// src/commands/auth.ts
|
|
43
46
|
import chalk2 from "chalk";
|
|
@@ -2050,9 +2053,14 @@ userKeysCommands.command("rotate").description("Re-encrypt your keys with a new
|
|
|
2050
2053
|
});
|
|
2051
2054
|
|
|
2052
2055
|
// src/index.ts
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
+
var version = "0.0.0";
|
|
2057
|
+
try {
|
|
2058
|
+
const __dirname = dirname2(fileURLToPath(import.meta.url));
|
|
2059
|
+
const pkg = JSON.parse(readFileSync(join2(__dirname, "../package.json"), "utf8"));
|
|
2060
|
+
version = pkg.version;
|
|
2061
|
+
} catch {
|
|
2062
|
+
version = process.env.SYNCENV_VERSION || "0.0.0";
|
|
2063
|
+
}
|
|
2056
2064
|
async function main() {
|
|
2057
2065
|
const program = new Command7();
|
|
2058
2066
|
await loadConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uagents/syncenv-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI for SyncEnv - Secure environment variable synchronization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,10 +42,13 @@
|
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup src/index.ts --format esm --out-dir dist --clean",
|
|
45
|
-
"
|
|
45
|
+
"sea:bundle": "node scripts/sea-bundle.js",
|
|
46
46
|
"dev": "tsup src/index.ts --format esm --out-dir dist --watch --clean",
|
|
47
|
-
"build
|
|
48
|
-
"build:
|
|
47
|
+
"sea:build": "node scripts/sea-build.js",
|
|
48
|
+
"sea:build:all": "node scripts/sea-build-all.js",
|
|
49
|
+
"publish:npm": "node scripts/publish-npm.js",
|
|
50
|
+
"publish:r2": "node scripts/publish-r2.js",
|
|
51
|
+
"release": "./scripts/release.sh",
|
|
49
52
|
"typecheck": "tsc --noEmit",
|
|
50
53
|
"lint": "eslint src --ext .ts",
|
|
51
54
|
"test": "vitest run"
|