ng generate component in library doesn't update public_api and exports
- Dominant language
- TypeScript
- Stars
- 27k
- Forks
- 11.8k
- Avg merge
- 14h 23m
- Merged PRs (30d)
- 162
Description
### Bug Report or Feature Request (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x ] feature request
```
### Command (mark with an `x`)
```
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
```
### Versions:
```
Angular CLI: 7.2.1
Node: 8.11.3
OS: win32 x64
Angular: 7.2.0
```
After generating `library`, I need to add a component to my library by following:
```
ng generate component foo --project=foo-lib
```
It doesn't update `public_api.ts` and `exports` in `my-lib.module.ts` file. These steps must be done by hand.
Contributor guide
Research direction
Start by reproducing `ng generate component foo --project=foo-lib` with the reported Angular CLI 7.2.1 setup, then inspect the generated `public_api.ts` and `my-lib.module.ts` files. The change is done when component generation updates the library's public API and module exports without manual edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100