--poll option does not work with libraries
Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Repro steps
--poll option does not work with library.
ng build --watch --poll=1000 works but ng build some-library --watch --poll=1000 does not.
The log given by the failure
CHZRHMAC048:design-system cenkm$ ng build design-system-generic
Building Angular Package
Building entry point 'design-system-generic'
Compiling TypeScript sources through ngc
Bundling to FESM2015
Bundling to FESM5
Bundling to UMD
Minifying UMD bundle
Copying declaration files
Writing package metadata
Removing scripts section in package.json as it's considered a potential security vulnerability.
Built design-system-generic
Built Angular Package!
- from: /Users/cenkm/workspace/design-system/projects/design-system-generic
- to: /Users/cenkm/workspace/design-system/dist/design-system-generic
CHZRHMAC048:design-system cenkm$ ng build design-system-generic --watch --poll=1000
Unknown option: '--poll'
Desired functionality
--poll option also works with libraries. It works fine if [project] is not provided.
This will require work to be done at upstream, as we are using ng-packagr to build libraries and this feature is not currently supported from their end either.
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
Closing due to the lack of interest around this feature from the community. Let's re-open if things change.
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.