Skip to content

allow mixing --project command line parameter with a list of files, includes, and exclludes #12958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zpdDG4gta8XKpMCd opened this issue Dec 15, 2016 · 4 comments
Labels
In Discussion Not yet reached consensus Suggestion An idea for TypeScript

Comments

@zpdDG4gta8XKpMCd
Copy link

--project command line argument should be allowed with an explicit list of files as well as includes list and excludes lists

command line arguments should take precedence over parameters in config, just like params of compilerOptions

{ files } vs --files // --files wins
{ includes } vs --includes // --includes wins
...
etc

@RyanCavanaugh RyanCavanaugh added In Discussion Not yet reached consensus Suggestion An idea for TypeScript labels Dec 16, 2016
@zpdDG4gta8XKpMCd
Copy link
Author

case 1: multiple entry points to the application

I have 11 entry points (topmost scripts to start execution from), so i need to generate 11 different bundles using outFile which requires me to create and support 11 different configs

tsconfig.a.json
tsconfig.b.json
tsconfig.c.json
tsconfig.d.json
tsconfig.e.json
tsconfig.f.json
tsconfig.g.json
tsconfig.h.json
tsconfig.i.json
tsconfig.j.json
tsconfig.k.json
tsconfig.l.json
tsconfig.m.json
tsconfig.o.json

and we are planning to add 27 more

@zpdDG4gta8XKpMCd
Copy link
Author

zpdDG4gta8XKpMCd commented Dec 16, 2016

case 2: compiling a sub-tree of all files based on compilerOptions from tsconfig.json

another use case, for the sake of saving some time i want to compile a only sub-tree of our 1500+ project starting at given root file, yet using the compilerOptions from the tsconfig.json

@timocov
Copy link
Contributor

timocov commented Feb 5, 2019

Related #29241 (comment)

TL;DR: paths compiler option cannot be passed via CLI.

@RyanCavanaugh
Copy link
Member

Let's track at #27379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Discussion Not yet reached consensus Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants