Skip to content
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

Property to define entry files for compilation process in tsconfig #4246

Closed
Lenne231 opened this issue Aug 9, 2015 · 2 comments
Closed

Property to define entry files for compilation process in tsconfig #4246

Lenne231 opened this issue Aug 9, 2015 · 2 comments

Comments

@Lenne231
Copy link

Lenne231 commented Aug 9, 2015

Currently we have two ways to define the files include in the compilation process.

  1. Include all files from the root directory except the files and directories defined in the exclude property Support "exclude" property in tsconfig.json #3188
  2. Include all files defined in the files property https://github.com/Microsoft/TypeScript/wiki/tsconfig.json

It would be much simpler if we could just define some entry files (only modules) and all dependent files will be included in the compilation process automatically. Browserify does something like this (https://github.com/substack/node-browserify#browserifyfiles--opts).

This would drastically simplify the configuration and be very helpful for isomorphic/universal JavaScript apps.

Maybe modules or entryFiles would be a good name for the property in the tsconfig.

@mhegazy
Copy link
Contributor

mhegazy commented Aug 9, 2015

Just put them in "files"; the compiler will follow the imports and include then too. "files" is really "rootFiles".

@Lenne231
Copy link
Author

Lenne231 commented Aug 9, 2015

Thanks, didn't know that!

@Lenne231 Lenne231 closed this as completed Aug 9, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants