relic 0.8.0 → 0.9.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.
- package/package.json +9 -5
- package/scripts/postinstall.mjs +35 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "The Relic CLI for managing and sharing secrets. Encrypted on your device, never exposed to anyone else. Not even us.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,18 +15,22 @@
|
|
|
15
15
|
"security"
|
|
16
16
|
],
|
|
17
17
|
"author": "Can Vardar",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"postinstall": "node scripts/postinstall.mjs"
|
|
20
|
+
},
|
|
18
21
|
"bin": {
|
|
19
22
|
"relic": "bin/relic"
|
|
20
23
|
},
|
|
21
24
|
"files": [
|
|
22
25
|
"bin/",
|
|
26
|
+
"scripts/",
|
|
23
27
|
"README.md"
|
|
24
28
|
],
|
|
25
29
|
"optionalDependencies": {
|
|
26
|
-
"relic-cli-darwin-arm64": "0.
|
|
27
|
-
"relic-cli-darwin-x64": "0.
|
|
28
|
-
"relic-cli-linux-x64": "0.
|
|
29
|
-
"relic-cli-windows-x64": "0.
|
|
30
|
+
"relic-cli-darwin-arm64": "0.9.1",
|
|
31
|
+
"relic-cli-darwin-x64": "0.9.1",
|
|
32
|
+
"relic-cli-linux-x64": "0.9.1",
|
|
33
|
+
"relic-cli-windows-x64": "0.9.1"
|
|
30
34
|
},
|
|
31
35
|
"engines": {
|
|
32
36
|
"node": ">=18"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
|
|
5
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
let version;
|
|
7
|
+
try {
|
|
8
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
9
|
+
version = pkg.version;
|
|
10
|
+
} catch {
|
|
11
|
+
version = "unknown";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const dim = (t) => `\x1b[2m${t}\x1b[22m`;
|
|
15
|
+
const bold = (t) => `\x1b[1m${t}\x1b[22m`;
|
|
16
|
+
const cyan = (t) => `\x1b[36m${t}\x1b[39m`;
|
|
17
|
+
const green = (t) => `\x1b[32m${t}\x1b[39m`;
|
|
18
|
+
|
|
19
|
+
const lines = [
|
|
20
|
+
"",
|
|
21
|
+
` ${bold("relic")} ${dim(`v${version}`)}`,
|
|
22
|
+
` ${dim("Zero-knowledge secret layer for your projects")}`,
|
|
23
|
+
"",
|
|
24
|
+
` ${green("✓")} Installed successfully`,
|
|
25
|
+
"",
|
|
26
|
+
` Get started:`,
|
|
27
|
+
` ${dim("$")} ${cyan("relic login")} ${dim("Sign in to your account")}`,
|
|
28
|
+
` ${dim("$")} ${cyan("relic init")} ${dim("Initialize in your project")}`,
|
|
29
|
+
` ${dim("$")} ${cyan("relic --help")} ${dim("See all commands")}`,
|
|
30
|
+
"",
|
|
31
|
+
` ${dim("https://relic.so/docs")}`,
|
|
32
|
+
"",
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
console.log(lines.join("\n"));
|