allegro / typescript-strict-plugin

Typescript plugin that allows turning on strict mode in specific files or directories.
MIT License
332 stars 29 forks source link

fix: tsc-strict does not return a failure exit code with SIGABRT #76

Closed eberlitz closed 2 months ago

eberlitz commented 3 months ago

According to execa docs the error might contain an undefined exitCode when it gets killed by a signal or fails when spawning.

https://github.com/sindresorhus/execa/blob/main/docs/errors.md#exit-code

To test I did the following locally to simulate the TSC getting out of memory:

NODE_OPTIONS="--max-old-space-size=512" ../node_modules/.bin/tsc-strict
echo $?