Commit 01e4fba
authored
fix(ng-update): do not throw if project does not have dependencies (#18470)
The v9 hammerjs migration in some cases tries to remove `hammerjs`
from the workspace `package.json`. It always assumes that there is
a `dependencies` property. This is not always guaranteed because a
project doesn't need to define this property.
This change guards against this case and avoids a runtime migration
exception.
Fixes #18469.1 parent aea79f0 commit 01e4fba
File tree
1 file changed
+2
-3
lines changed- src/material/schematics/ng-update/upgrade-rules/hammer-gestures-v9
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
857 | | - | |
858 | | - | |
| 856 | + | |
| 857 | + | |
859 | 858 | | |
860 | 859 | | |
861 | 860 | | |
| |||
0 commit comments