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

Only call tsconfig-glob if there is a filesGlob present in tsconfig.json #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bradacina
Copy link

I mostly use this task to simply run tsc from grunt on my project. Nowadays tsc can scan subfolders for all .ts files so glob is not always needed. One can use "exclude" property in tsconfig.json and not specify "files" property and tsc will pick up all .ts files for building. Unfortunately tsconfig-glob package will write an empty "files" property in tsconfig.json which prevents tsc from recursively looking in subfolders. This change prevents calling tsconfig-glob package if there is no "filesGlob" property in tsconfig.json.

@tobiasbrenner
Copy link

Any progress here? I'm waiting for this pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants