@ssm123ssm/vault 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/package.json CHANGED
@@ -1,14 +1,11 @@
1
1
  {
2
2
  "name": "@ssm123ssm/vault",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "Preview Vault agent CLI",
6
6
  "bin": {
7
7
  "vault": "index.js"
8
8
  },
9
- "scripts": {
10
- "publish:otp": "node publish-with-otp.js"
11
- },
12
9
  "dependencies": {
13
10
  "prompts": "^2.4.2",
14
11
  "ws": "^8.18.0"
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { spawnSync } = require("child_process");
4
- const prompts = require("prompts");
5
-
6
- (async () => {
7
- const response = await prompts({
8
- type: "password",
9
- name: "otp",
10
- message: "npm publish OTP",
11
- });
12
-
13
- if (!response.otp) {
14
- console.error("Missing OTP.");
15
- process.exit(1);
16
- }
17
-
18
- const result = spawnSync(
19
- "npm",
20
- ["publish", "--access", "public", "--otp", response.otp],
21
- { stdio: "inherit" }
22
- );
23
-
24
- process.exit(result.status || 0);
25
- })();