[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:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >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
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.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.