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.

[ng update] Allow specifying path to tsconfig file

See original GitHub issue

πŸš€ Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

Considering there is a project with tsconfig.ts file somewhere deep in folder structure. Node_modules folder and package.json file lays in the root of an application. When running "ng update" command from the root of an application it will update package.json and throw an error saying "Could not find any tsconfig file. Cannot migrate DOCUMENT to new import source". Which is obvious, since there is no single tsconfig on the root, but multiple tcsonfig files across the application.

Describe the solution you’d like

It would be great if we could run migration tool specifying a path to tsconfig.ts file.

Describe alternatives you’ve considered

Updating all files manually is painful. The folder structure is designed this way for a reason and is unlikely to be changed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alxhubcommented, Jun 18, 2019

I think the root issue here is attempting to apply an ng update migration to a non-CLI application? I don’t believe we support this use case today. You might have some luck running the migration scripts manually, but I don’t know off the top of my head how to do this.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 15, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use paths in tsconfig.json? - Stack Overflow
Just specify the baseUrl, config will take care of your relative path. way to config: tsconfig.json file add the below properties. "baseUrl": "Β ......
Read more >
TypeScript configuration - Angular
A given Angular workspace contains several TypeScript configuration files. At the root tsconfig.json file specifies the base TypeScript and Angular compilerΒ ...
Read more >
Angular-CLI with paths in tsconfig
I am configuring the paths property in the tsconfig.app.json. ... as the file is excluded from tsconfig.json, path mappings specified thereΒ ...
Read more >
Angular 10 - Towards the Better future for Angular - InDepth.Dev
Let's see what was included in the release and why it is important for ... it specifies the path for different tsconfig file...
Read more >
What's new in Angular CLI 8.0? - Ninja Squad
The default target in tsconfig.json is now es2015 which means the default target of ng build is now the modern browsers that support...
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