Skip to content

Dump the effective config file #15213

Closed
Closed
@alexewerlof

Description

@alexewerlof

Suggestion

I'm using Typedoc which has very similar options to tsc and book keeping and converting these options is tedious and error prone. It would be nice if tsc could dump its effective compiler options (considering the default values, extends rules, etc.) as a json file. This can be particularly useful when debugging the configurations to see what config is effectively being used for the compilation process.

See: TypeStrong/typedoc#480

TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)

Expected behavior:

tsc --effectiveConfig
# Prints out a json object on STDOUT that is ready to be redirected to a JSON file
{
    "compilerOptions": {
        "module": "commonjs",
        "sourceMap": true,
        "target": "es2016",
        "noEmitOnError": true,
        "alwaysStrict": true,
        "importHelpers": true,
        "lib": [
            "es2015"
        ]
        ...
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions