Skip to content

tsconfig cannot be specified along with an explicit list of files to compile - TS5042 #22649

Closed
@ntabernero

Description

@ntabernero

We are using Typescript for our operational project and have found it very useful. However, we have some use cases where we need to compile one (or a few) source files along with most of the dependencies using the options encoded in tsconfig. Sadly, using the command line options won't quite get us where we would like to be (notably the absence of either a "rootDirs" and/or "paths" command line options).

We would like to be able to do "tsc -p foo.ts" (or any equivalent workaround such as enabling "rootDirs" and "paths" as command line options).

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions