You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As is evidenced by the original version of this issue, I was very surprised to learn that by default, tsimp will run the script even if there are compilation errors. I think this is a poor default that should be reconsidered.
Original title and description
simp runs the script even when there is a compilation error
Here's what the output looks like:
> node --import=tsimp/import src/scripts/validate-json.ts
src/scripts/validate-json.ts:56:24 - error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
56 console.log(parseFloat(3));
~
<Regular program output>
The text was updated successfully, but these errors were encountered:
NoahAndrews
changed the title
tsimp continued execution even though there was a compilation error
tsimp ran the script even though there was a compilation error
Apr 25, 2024
NoahAndrews
changed the title
tsimp ran the script even though there was a compilation error
tsimp runs the script even when there is a compilation error
Apr 25, 2024
NoahAndrews
changed the title
tsimp runs the script even when there is a compilation error
Consider changing the default value of TSIMP_DIAG to errortMay 22, 2024
Thanks! I've reworked the issue title and description to be a suggestion for changing the default value.
NoahAndrews
changed the title
Consider changing the default value of TSIMP_DIAG to errort
Consider changing the default value of TSIMP_DIAG to errorMay 22, 2024
As is evidenced by the original version of this issue, I was very surprised to learn that by default, tsimp will run the script even if there are compilation errors. I think this is a poor default that should be reconsidered.
Original title and description
simp runs the script even when there is a compilation error
Here's what the output looks like:
The text was updated successfully, but these errors were encountered: