Skip to content

noEmit should be allowed with outDir #7397

Closed
@anilanar

Description

@anilanar

And possibly with other out variations. Ideally, noEmit should have priority over output related options.

Reasoning: I have a syntax checking script that should not actually write files. My build script relies on tsconfig.json which has outDir compiler option set.

Syntax check command:

> tsc --noEmit 2>&1 | pipe_it_somewhere_for_syntax_checking

Build command:

> tsc

tsconfig.json

{
   ...
   "outDir": "build/"
   ...
}

Error: error TS5053: Option 'noEmit' cannot be specified with option 'outDir'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions