Make it possible to pass rootDirs and paths via cli #49434
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
It should be possible to pass
--rootDirs
and--paths
via CLI. This would make it easier to integrate with (non-js)-buildtools, which just call the CLI.π Motivating Example
Make it easier to use the
tsc
-cli with arbitrary build-tools in big projects without using atsconfig.json
.π» Use Cases
My specific use-case is a project with generated files (protobuf). I want to generate the files into a build/dist directory but need a way for referencing the file properly (which I would do with
rootDirs
or thebaseUrl
,paths
pair). I also want to use a buildtool which just calls thetsc
-cli for every file (like when compiling C-sourcecode).The text was updated successfully, but these errors were encountered: