I'm working on a large TS project which builds a CLI with spinners and when we tried upgrading our deps this month, the CLI started giving seg faults. We identified this as the dependency which caused it; reverting it to v6.3.1 and the problem went away.
I've no idea why; it doesn't look like much changed in this project to cause such a problem, so it could be something in one of the upstream strip ansi or string width libraries, or some other quirk of CLI builds which always seem a dark magic. But since presumably CLIs are a common environment for this library I thought I'd note this.
The key elements of our CLI build are tsc, esbuild, and pkg:
npx tsc
npx esbuild ./src/main.js --bundle --platform=node --outfile=target/esb/esb.js --external:shelljs
npx pkg target/esb/esb.js -t node16-macos-arm64 --output target/pkg/maeztro-macos-arm64
Apologies I've not had time to investigate why; if I do I'll add details.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too