Skip to content

showConfig CLI option no longer shows all the compilation optionsΒ #63672

Description

@yohny

πŸ”Ž Search Terms

showconfig

πŸ•— Version & Regression Information

  • This changed between versions 5.9.3 and 6.0.3

⏯ Playground Link

No response

πŸ’» Code

The --showConfig option used to show all the compilerOptions, inluding the ones not explicitly specified in tsconfig so one could see also the applied default values (that is the purpose of the command - to see the final config, even according to docs).

After update to 6.0.3 many options are no longer present. The same tsconfig (below) was used to generate --showConfig output.

TSConfig file:

{
  "compilerOptions": {
    "module": "nodenext",
    "outDir": "dist",
    "rootDir": ".",
    "sourceMap": true,
    "strict": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "types": ["node", "jest"]
  }
}

πŸ™ Actual behavior

The --showConfig output for TS 5.9.3:

{
  "compilerOptions": {
    "module": "nodenext",
    "outDir": "./dist",
    "rootDir": "./",
    "sourceMap": true,
    "strict": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "types": ["node", "jest"],
    "target": "esnext",
    "moduleResolution": "nodenext",
    "moduleDetection": "force",
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "resolvePackageJsonExports": true,
    "resolvePackageJsonImports": true,
    "resolveJsonModule": true,
    "useDefineForClassFields": true,
    "noImplicitAny": true,
    "noImplicitThis": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictBindCallApply": true,
    "strictPropertyInitialization": true,
    "strictBuiltinIteratorReturn": true,
    "alwaysStrict": true,
    "useUnknownInCatchVariables": true
  },
  "files": [
    // no change
  ],
  "exclude": [
    // no change
  ]
}

The --showConfig output for TS 6.0.3:

{
  "compilerOptions": {
    "module": "nodenext",
    "outDir": "./dist",
    "rootDir": "./",
    "sourceMap": true,
    "strict": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "types": ["node", "jest"],
    "moduleResolution": "nodenext",
    "moduleDetection": "force"
  },
  "files": [
    // no change
  ],
  "exclude": [
    // no change
  ]
}

πŸ™‚ Expected behavior

All the remaining compilerOptions should be present in the --showConfig output.

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions