question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2] Add ability to override tsconfig

See original GitHub issue

Type 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:29 (16 by maintainers)

github_iconTop GitHub Comments

6reactions
villecodercommented, Feb 27, 2018

@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?

6reactions
DavidParks8commented, Nov 18, 2017

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:

{
  "tsconfig": "./../tsconfig.app.json"
}

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found