@secretenvs/cli 1.2.0 → 1.3.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/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";
@@ -1248,7 +1249,7 @@ async function runCommand(deps, command, flags) {
1248
1249
  }
1249
1250
 
1250
1251
  // src/program.ts
1251
- var VERSION = true ? "1.2.0" : "dev";
1252
+ var VERSION = true ? "1.3.1" : "dev";
1252
1253
  function buildProgram(deps, setExitCode) {
1253
1254
  const program = new Command().name("secretenvs").description("Read and manage SecretEnvs variables from the terminal").version(VERSION).configureOutput({
1254
1255
  writeOut: (text) => deps.stdout.write(text),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretenvs/cli",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
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.2.0",
47
- "@secretenvs/sdk": "1.2.0",
47
+ "@secretenvs/contracts": "1.3.1",
48
+ "@secretenvs/sdk": "1.3.1",
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"