Skip to content

Exit code for type error is incorrect starting from 7.0.0-dev.20250724.1 #1493

Description

@alexsch01

First happened between versions 7.0.0-dev.20250723.1 and 7.0.0-dev.20250724.1 of @typescript/native-preview


index.ts

x=5
[]$ npm install @typescript/native-preview@7.0.0-dev.20250723.1
INSTALL INFO
[]$ npx tsgo --noEmit index.ts
TYPE ERROR
[]$ echo $?
2
[]$ npm install typescript
INSTALL INFO
[]$ npx tsc --noEmit index.ts
TYPE ERROR
[]$ echo $?
2
[]$ npm install @typescript/native-preview@7.0.0-dev.20250724.1
INSTALL INFO
[]$ npx tsgo --noEmit index.ts
TYPE ERROR
[]$ echo $?
1

Metadata

Metadata

Labels

Domain: CLIRelated to the tsc CLI

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions