Commit 533a39e
authored
cli: fix missing binary exit code (#1130)
Exit 1 when the npm wrapper fails to spawn the Squawk binary.
This can happen when `squawk-cli` is installed without running its `postinstall` script, so `js/install.js` never downloads `js/binaries/squawk`. For example, pnpm 10 requires dependency build scripts to be approved, Yarn 4.14+ disables third-party postinstalls by default, and npm supports `--ignore-scripts`.
Tested:
- `node --check js/bin/squawk`
- missing binary: `node js/bin/squawk --version` exits 1
- present binary: `node js/bin/squawk --version` exits 01 parent bce3aab commit 533a39e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments