@fusion.dev/helix-cli 0.23.0 → 0.24.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.
Files changed (2) hide show
  1. package/bin.mjs +4 -1
  2. package/package.json +1 -1
package/bin.mjs CHANGED
@@ -114,7 +114,10 @@ const onPath = () => {
114
114
 
115
115
  const run = (binary) => {
116
116
  const { status, error } = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' })
117
- if (error) {
117
+ /* A status means it ran. Bun sets `error` on any exit but zero, to a
118
+ `SystemError` reading "null", so asking `error` alone reported every failed
119
+ check as a binary that would not start, and exited 70 for its 1. */
120
+ if (error && status === null) {
118
121
  console.error(`helix: could not run \`${binary}\`: ${error.message}`)
119
122
  process.exit(70)
120
123
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-cli",
3
3
  "description": "The Helix command line, for a workspace that reaches it through npm.",
4
- "version": "0.23.0",
4
+ "version": "0.24.1",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {