@secretenvs/cli 1.3.0 → 1.4.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/README.md CHANGED
@@ -51,6 +51,9 @@ project and environment defaults only; a file that contains a token is rejected:
51
51
  - `run` starts the command without a shell (arguments are passed as an array,
52
52
  never interpreted). Variables from the vault override inherited ones, and
53
53
  `SECRETENVS_TOKEN` is not passed on to the child process.
54
+ - On Windows, `run` also launches `.cmd` and `.bat` tools such as `vite`,
55
+ `nodemon`, `yarn` and `npx` directly (`secretenvs run -- vite --host`), so you
56
+ do not need to call their JS entry through `node`.
54
57
  - `rollback` asks for confirmation unless `--yes` is given, and refuses to run
55
58
  without a terminal.
56
59
  - `logout` only removes the local file. The token stays valid until you revoke
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/deps.ts
4
- import { spawn } from "child_process";
5
4
  import { homedir } from "os";
6
5
  import { confirm, input, password } from "@inquirer/prompts";
6
+ import crossSpawn from "cross-spawn";
7
7
  function defaultDeps() {
8
8
  return {
9
9
  env: process.env,
@@ -18,9 +18,10 @@ function defaultDeps() {
18
18
  password: (config) => password({ ...config, mask: false }),
19
19
  confirm: (config) => confirm(config)
20
20
  },
21
- spawn: (command, args, options) => spawn(command, args, options)
21
+ spawn: spawnCommand
22
22
  };
23
23
  }
24
+ var spawnCommand = (command, args, options) => crossSpawn(command, args, options);
24
25
 
25
26
  // src/program.ts
26
27
  import { Command, CommanderError } from "commander";
@@ -113,7 +114,10 @@ var ProjectDto = z2.object({
113
114
  createdAt: isoDate,
114
115
  updatedAt: isoDate
115
116
  }).strict();
116
- var ProjectSummaryDto = ProjectDto.extend({ role: ProjectRole });
117
+ var ProjectSummaryDto = ProjectDto.extend({
118
+ role: ProjectRole,
119
+ joinedAt: isoDate
120
+ });
117
121
  var AddMemberInput = z2.object({ email, role: ProjectRole }).strict();
118
122
  var UpdateMemberInput = z2.object({ role: ProjectRole }).strict();
119
123
  var MemberDto = z2.object({ userId: id, email, name, role: ProjectRole, createdAt: isoDate }).strict();
@@ -1248,7 +1252,7 @@ async function runCommand(deps, command, flags) {
1248
1252
  }
1249
1253
 
1250
1254
  // src/program.ts
1251
- var VERSION = true ? "1.3.0" : "dev";
1255
+ var VERSION = true ? "1.4.0" : "dev";
1252
1256
  function buildProgram(deps, setExitCode) {
1253
1257
  const program = new Command().name("secretenvs").description("Read and manage SecretEnvs variables from the terminal").version(VERSION).configureOutput({
1254
1258
  writeOut: (text) => deps.stdout.write(text),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretenvs/cli",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Command-line client for reading and managing SecretEnvs variables.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ankityadavpurson/secretenvs#readme",
@@ -40,11 +40,13 @@
40
40
  "dependencies": {
41
41
  "@inquirer/prompts": "^7",
42
42
  "commander": "^15.1.0",
43
+ "cross-spawn": "^7.0.6",
43
44
  "zod": "^4.1.0"
44
45
  },
45
46
  "devDependencies": {
46
- "@secretenvs/contracts": "1.3.0",
47
- "@secretenvs/sdk": "1.3.0",
47
+ "@secretenvs/contracts": "1.4.0",
48
+ "@secretenvs/sdk": "1.4.0",
49
+ "@types/cross-spawn": "^6.0.6",
48
50
  "tsup": "^8.5.0",
49
51
  "typescript": "~5.9.3",
50
52
  "vitest": "^3.2.4"