Skip to content

Commit 9ed9bbd

Browse files
authored
Merge pull request microsoft#392 from Microsoft/qz2017/fix_build
Fix a bug in how "rush build --from" calculates dependents.
2 parents 02543da + 3db232b commit 9ed9bbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/rush/src/actions/RebuildAction.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default class RebuildAction extends BaseRushAction {
239239
*/
240240
private _collectAllDependents(project: string): Set<string> {
241241
const deps: Set<string> = new Set<string>();
242-
this._dependentList.get(project)!.forEach((dep) => {
242+
(this._dependentList.get(project) || new Set<string>()).forEach((dep) => {
243243
deps.add(dep);
244244
});
245245
deps.forEach(dep => this._collectAllDependents(dep).forEach(innerDep => deps.add(innerDep)));

0 commit comments

Comments
 (0)