-
Notifications
You must be signed in to change notification settings - Fork 122
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 TypeScript 2.0's compiler options baseUrl, paths and rootDirs #339
Comments
This will be added to grunt-ts vNext as soon as I get the chance to implement it. Thank you for the report. |
Do you know when this enhancement will land? |
It's possible to pass any arguments you wish to https://github.com/TypeStrong/grunt-ts#additionalflags Native support for TypeScript flags are generally added to grunt-ts shortly after the official release due to churn/flags getting renamed or pulled, etc. |
Hi @nycdotnet thanks for the response, yes you can pass any argument to
|
I see. If that is the case, it may be difficult to support other than using the passthrough option. I will have to look into why the TypeScript team decided to not support that option from the command-line. |
Indeed. I suspected that it would be difficult to support, I did have a look through the code and issue and didn't find any specific reasoning behind not supporting the option on the command line. Perhaps it could be because maps are hard to represent as a command line option. Yes currently I am using the |
I almost wonder if we need to get into the business of writing out a temporary tsconfig.json file based on the grunt setup, and then essentially always using pass-through. Do you see a downside there? |
Hi there, I face this same problem still. My project needs the Here is my Gruntfile.js:
Much thanks! |
make tsconfig an object.
|
Ah, that works! Thanks @nycdotnet ! |
You can workaround the limitation as I did: https://github.com/javatlacati/liniobuzz/blob/master/typescryptimplementation/Gruntfile.js |
I'd appreciate grunt-ts to support compiler options
baseUrl
,paths
androotDirs
of the next TypeScript release.Currently, it works for me using
passThrough
but that's a bit cumbersome.The text was updated successfully, but these errors were encountered: