* This function updates repo root packages. * * 1. Update root-level packages if necessary. * 2. Apply various custom patches if not already applied. * 3. During CI, make sure that the root package files were correctly updated. * * During local development, work is done only during first time
()
| 208 | * returns almost instantly. |
| 209 | */ |
| 210 | function updatePackages() { |
| 211 | updateDeps(); |
| 212 | patchWebAnimations(); |
| 213 | patchIntersectionObserver(); |
| 214 | patchResizeObserver(); |
| 215 | patchShadowDom(); |
| 216 | if (isPullRequestBuild()) { |
| 217 | runNpmChecks(); |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * This function updates the packages in a given task directory. |
no test coverage detected