allegro / typescript-strict-plugin

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

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

Closed eberlitz closed 5 months ago

eberlitz commented 5 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 $?