GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Dump the effective config file · Issue #15213 · microsoft/TypeScript

Dump the effective config file #15213

New issue
Copy link
New issue
Copy link
Closed
Closed
Dump the effective config file#15213
Copy link
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript

Description

@alexewerlof
Alex Ewerlöf (alexewerlof)
opened on Apr 16, 2017
Issue body actions

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"
        ]
        ...
    }
}
Reacted by Aluan Haddad, Derek Christensen, Loïc Coenen, Huafu Gandon, Sviataslau Shchaurouski, Paul Sanchez, Dan Brown, ahagelstein, SlurpTheo, Dmitry Druganov and 3 more
Reacted by vandalouze and Loïc Coenen

Activity

  1. Ryan Cavanaugh (RyanCavanaugh)
    added
    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this feature
    SuggestionAn idea for TypeScriptAn idea for TypeScript
    on Apr 17, 2017
  2. huafu commented on Jul 6, 2018

    @huafu
    Huafu Gandon (huafu)
    on Jul 6, 2018
    More actions

    I was looking for an option on how to output the effective config when I found this. I'm stuck since an hour trying to find out how extends actually extends stuff. I could only find in the docs:

    files, include and exclude from the inheriting config file overwrite those from the base config file.

    All relative paths found in the configuration file will be resolved relative to the configuration file they originated in.

    But nothing about what happens to deeper arrays such as types or typeRoots, ... are they merged? how?

    This is why I'm totally 👍 for something like Jest has with jest --showConfig, but for tsc.

  3. Wesley Wigham (weswigham)
    closed this as completedin #27353on Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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 featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.