Skip to content

Allow --out to override --noEmit #7575

Closed
@rtpg

Description

@rtpg

When setting up a default tsconfig.json file, we had initially put noEmit: true, so that people could run tsc to typecheck without generating a file (useful for some people's IDE configs and development styles).

It would be nice to be able to still use --out (or perhaps some other keyword if noEmit is meant to capture mistakes) so that we wouldn't need to modify our config to generate an output file, while not having people accidentally generate a bunch of files when calling without --out.

Current behavior is:

╰─$ tsc --out test.tsout
error TS5053: Option 'noEmit' cannot be specified with option 'out'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions