[v2] Add ability to override tsconfig
See original GitHub issueType of Issue
[ ] Bug Report
[X] Feature Request
Description
I know that the idea of ng-packagr is to remove as much config as possible from the user but there are cases where being able to manage the tsconfig used by ng-packagr would be very useful, for example adding paths or alternate/additional typeroots. There could be an additional and optional flag to point to the desired tsconfig.
It can cause some difficult to troubleshoot issues when you need to use one config to test your library and another unseen one is used to build.
ng-packagr: v1.5.0
node: v8.6.0
@angular: v5.0.0
rxjs: 5.2.2
zone.js: latest
Thanks for the awesome work! I might be able to help with a PR if it is something @dherges thinks it is a valuable usecase
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:29 (16 by maintainers)
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
The configuration from the base file are loaded first, then overridden by those in the inheriting ... Consider adding 'undefined' to the type...
Read more >Override tsconfig.json in a VS2019 solution/MSBuild?
I've found a way to do this, but it's horrible and I'd happily accept a better answer. tsc can take custom config file...
Read more >tsconfig-paths - npm
Load node modules according to tsconfig paths, in run-time or via API. ... is set it will override the value of baseUrl in...
Read more >TypeScript - Parcel
TypeScript is a typed superset of JavaScript that compiles to JavaScript. Parcel supports TypeScript out of the box without any additional configuration.
Read more >TypeScript tutorial with Visual Studio Code
json for project settings and compiler options. Add a simple tsconfig.json that set the options to compile to ES5 and use CommonJS modules....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dherges How do you use the API? I don’t see a sample in the repository. What tool are you using to execute the sample code?
This is very much related to my https://github.com/dherges/ng-packagr/issues/162#issuecomment-335665479. I would like to reiterate my proposal here and see if people agree. Essentially, I propose we add another config property to allow the specification of an override tsconfig:
This property would have to be clearly documented such that everyone is aware of what can, and can not be overridden in the
tsconfig.json
file.