-
Notifications
You must be signed in to change notification settings - Fork 46
Support configuration inheritance #215
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
Conversation
update .gitignore: exclude npm 5 artifact
This looks fantastic, thank you! Couple of questions:-
|
I am not quite sure but, after thinking it over, it should probably be a major version bump since it could easily change the emit for existing setups.
This is a really important question. It currently uses the same resolution as the primary tsconfig.json files which means that I think we need to think this over. My instinct is to align with TypeScript's behavior, raising an error if the path is not relative or rooted, something this PR currently does not do. I also need to add tests using physical files. |
I agree, I prefer to err on the side of caution.
My opinion is that it should support systemjs resolution. While it does not align with typescript's behaviour it does not take anything away from the user because they can just use ./ to get the relative path. Also because |
As @aluanhaddad mentioned in his comment, my current issue with {
"extends": "@namespace/core/tsconfig"
} This is already solved and working as expected in {
// Temporary fix until https://github.com/Microsoft/TypeScript/issues/18865 is fixed.
"extends": "./node_nodules/@namespace/core/tsconfig",
"compilerOptions": {
"outDir": "./build"
}
} So In 1 level of inheritance it works:
Because the relative path (
This is because now As soon as this is fixed, the workflow will be great because the duplication of settings will be drastically reduced and centralized, and that will be awesome. |
@lukeshiru I have made some changes in version 9.0.0 which I hope will resolve your issue. |
Adds support for inheritance via the
"extends" options in
tsconfig.json` files.Additional tests may be necessary.
Resolves #214