Skip to content

--poll option does not work with libraries #12487

@mcenkar

Description

@mcenkar

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions