MCPcopy
hub / github.com/ampproject/amphtml / updatePackages

Function updatePackages

build-system/common/update-packages.js:210–219  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

208 * returns almost instantly.
209 */
210function 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.

Callers 3

ensureUpdatedPackagesFunction · 0.85
runReleaseJobFunction · 0.85
runCiJobFunction · 0.85

Calls 7

updateDepsFunction · 0.85
patchWebAnimationsFunction · 0.85
patchResizeObserverFunction · 0.85
patchShadowDomFunction · 0.85
isPullRequestBuildFunction · 0.85
runNpmChecksFunction · 0.85

Tested by

no test coverage detected