Skip to content

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

@alexsch01

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/[email protected]
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/[email protected]
INSTALL INFO
[]$ npx tsgo --noEmit index.ts
TYPE ERROR
[]$ echo $?
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: CLIRelated to the tsc CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions