-
-
Notifications
You must be signed in to change notification settings - Fork 432
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 tsconfig.json files #9
Comments
+1 |
FYI, here's the function I use in my project. /**
* Convert tsconfig.json file to ts-loader options.
*
* @param tsconfig {String} tsconfig.json path.
*/
function tsOptions(tsconfig) {
var config = require(tsconfig);
var options = config.compilerOptions;
options.additionalFiles = config.files.map(function(file) {
return fp.resolve(fp.join(fp.dirname(tsconfig), file));
});
options.instance = "additionalFiles";
return JSON.stringify(options);
} |
jbrantly
added a commit
that referenced
this issue
May 6, 2015
jbrantly
added a commit
that referenced
this issue
May 6, 2015
Added in v0.4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should try to add support for tsconfig.json files prior to the release of TS 1.5. See microsoft/TypeScript#1692
Part of this change should also include updating the
additionalFiles
configuration to just befiles
which matches what is in the configuration file.The text was updated successfully, but these errors were encountered: