Skip to content

jsconfig.json is not used by default like tsconfig.json is #18235

@JoelEinbinder

Description

@JoelEinbinder

TypeScript Version: 2.4.2

I have a jsconfig.json file in my current directory and run:

tsc -p .

Expected behavior:
It uses the jsconfig.json as the config file.

Actual behavior:

error TS5057: Cannot find a tsconfig.json file at the specified directory: '.'.

This is inconsistent with the behavior in VSCode where either tsconfig.json or jsconfig.json are used.

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