Skip to content

tsc --build ignores noEmitOnError=false #29851

Closed
@GordonSmith

Description

@GordonSmith

TypeScript Version: 3.3.1

Search Terms:
--build
noEmitOnError
generates
emit
error

Code

// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

tsc --build 

Expected behavior:
The output JS file should be emitted with the syntax error included.
Note: When calling tsc it works as expected.

Actual behavior:
No files are emitted

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions