@fusion.dev/helix-cli 0.24.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.
- package/bin.mjs +4 -1
- 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
|
-
|
|
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