argsbarg 5.1.7 → 5.1.8

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/CHANGELOG.md CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [5.1.8] - 2026-07-05
11
+
12
+
10
13
  ## [5.1.7] - 2026-07-05
11
14
 
12
15
  ### Changed
@@ -627,7 +630,8 @@ const cli = { ... } satisfies CliProgram; // or : CliProgram
627
630
  - Migrate schemas: rename every `children` property to **`commands`**; move positional definitions to **`CliPositional`** objects on `positionals` and strip `positional` / `argMin` / `argMax` from flag definitions under `options` (flags only carry `name`, `description`, `kind`, and optional `shortName`).
628
631
  - Imports: use `CliPositional` where needed; replace `CliOptionDef` with `CliOption` or `CliPositional` as appropriate.
629
632
 
630
- [Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v5.1.7...HEAD
633
+ [Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v5.1.8...HEAD
634
+ [5.1.8]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.8
631
635
  [5.1.7]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.7
632
636
  [5.1.6]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.6
633
637
  [5.1.5]: https://github.com/bdombro/bun-argsbarg/releases/tag/v5.1.5
@@ -50,6 +50,11 @@ if (sep === -1 || sep === process.argv.length - 1) {
50
50
  }
51
51
 
52
52
  const cmd = process.argv.slice(sep + 1);
53
+ const executable = cmd[0];
54
+ if (!executable) {
55
+ process.stderr.write("Usage: bun scripts/with-dev-formula.ts -- <command...>\n");
56
+ process.exit(1);
57
+ }
53
58
  let restored = false;
54
59
 
55
60
  function restore(): void {
@@ -63,7 +68,7 @@ function restore(): void {
63
68
  try {
64
69
  backupReleaseFormula();
65
70
  writeDevFormula();
66
- const result = spawnSync(cmd[0], cmd.slice(1), { stdio: "inherit" });
71
+ const result = spawnSync(executable, cmd.slice(1), { stdio: "inherit" });
67
72
  process.exitCode = result.status === null ? 1 : result.status;
68
73
  } finally {
69
74
  restore();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argsbarg",
3
- "version": "5.1.7",
3
+ "version": "5.1.8",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "bun": ">=1.3"