jvandemo / jvandemo/generator-angular2-library

`dist/` should not be deleted on rebuilds, only contents instead

Open
#91 15 comments 3 reactions 0 assignees View on GitHub
Priority: Medium Type: Bug
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

@jvandemo heya, I recently discovered a [shortcoming in my starter](https://github.com/filipesilva/angular-quickstart-lib/commit/ce13ea3ee5a962e5c46edeef7678e8339265a74d), where the `dist/` dir is always deleted.

This causes linked libraries to not update the project that are using it, since the link is broken when `dist/` is deleted. Instead, only its contents should be deleted.

Details and repro can be found at https://github.com/angular/angular-cli/issues/6195.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the linked-library problem described in the issue and inspect the rebuild step that removes dist/. Change the behavior so the dist/ directory remains while its contents are cleared, then verify that linked libraries continue updating the consuming project. Use the Angular CLI issue 6195 for the detailed reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.