-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Support pattern matching in <Reference> directives #4102
Comments
while i see the value, this makes tooling much harder and more complex. now an IDE has to add a directory watcher on possibly the whole file system, so that eveytime you add a new file that matches your wild card it gets picked up. |
In addition to what Mohamed mentioned, /// references in general are a little unwieldy and hopefully the future is more weighted towards tsconfig.json and ES6 modules. |
I am not sure why this has been closed without and discussion. Currently you have to manage all these references manually and on very large apps this becomes painful. |
one approach that i have seen to alleviate this issue is to to have smaller files that you would import instead of all files. so you would have something like /// <reference path="./promiseHelper.ts" />
/// <reference path="./loggingHelper.ts" /> then you would include that directly as |
Yeah this is our current strategy, but this is just moving the location of the reference to a more local location to the file itself, you still have to manage them all still as well as managing the index file. |
I think the ultimate fix is an easier way to breakup your code into "projects". this is tracked by #3469. this way you do not even need a reference. also possibly related, is supporting globs in tsconfig. |
👍 |
Any change regarding this issue? I want to create a system of modules. Each one of them gets connected to the state store. So I need to extend the |
Hey all,
Maybe this has been raised before but its something I would really like to see supported in TS. Basically I would like the ability to support referencing TS files using patterns. For example
This
could be
or folder patterns
Thoughts?
The text was updated successfully, but these errors were encountered: