-
Notifications
You must be signed in to change notification settings - Fork 74
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 custom locations for 'tsconfig.json' #132
Comments
Yep, both options make sense (and the latter was already suggested at #84). I've just never gotten around to it. PRs welcome, of course. But I could probably knock this one out pretty quickly... |
Okay, so as far as option 1 goes, I've made the change, but it won't work properly with TypeScript <1.9, since |
Option 2, same caveat when configuring it with a directory. Specifying a file works fine. This will be out shortly. |
Okay, try updating to v0.15.1. This adds support for |
I tried 0.15.1 with |
Thanks a bunch @smrq! |
So how do you define --project in tsify can't see a working example and --project is a command line argument, how am i supposed to use that in the gulp task? |
@azarus tsify accepts compiler options specifed via the plugin options argument:
Also, if a project is not specified, tsify uses TypeScript's |
That doesn't seemed to work, anyways i went with a workaround requiring the json file manually. And tried to use the project option but didn't work for some reason. |
it works. but if you use complex build system.. then it may not works. i think using browserify "paths" option is best choice. const browserify_option = {
paths: [path.join(frontend, 'src')]
...
} (my 5 hours conclusion.. Xd) |
The fact that tsify tries to figure out the appropriate
tsconfig.json
is great, but some projects have several differenttsconfig.json
files (e.g. one for source alone, one for tests, etc.). @sandersn ran into this issue.I would think there are two separate (but not mutually exclusive!) ways of going about this:
basedir
setting when looking for atsconfig.json
.project
ortsconfigPath
option.I think it would be a good idea to do both, but doing just one would go a long way.
The text was updated successfully, but these errors were encountered: