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

Fix file globs for relative paths #270

Closed
dsherret opened this issue Mar 7, 2018 · 1 comment
Closed

Fix file globs for relative paths #270

dsherret opened this issue Mar 7, 2018 · 1 comment
Labels

Comments

@dsherret
Copy link
Owner

dsherret commented Mar 7, 2018

Instead of doing:

project.getSourceFiles("**/src/**/*.ts")

Should be able to do:

project.getSourceFiles("src/**/*.ts")
// or
project.getSourceFiles("./src/**/*.ts")
// or
project.getSourceFiles("../otherFolder/**/*.ts") // didn't test, but I think it doesn't work
@dsherret dsherret added the bug label Mar 7, 2018
@dsherret
Copy link
Owner Author

dsherret commented Mar 7, 2018

addExistingSourceFiles works (for non-virtual file systems). It's actually getSourceFiles with a glob that doesn't. I've updated above.

dsherret added a commit that referenced this issue May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant