Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dc57bf

Browse files
committed
misc(release): add script for updating critical dependencies
1 parent c46d269 commit 0dc57bf

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

core/scripts/upgrade-deps.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env bash
2+
3+
##
4+
# @license Copyright 2025 Google LLC
5+
# SPDX-License-Identifier: Apache-2.0
6+
##
7+
8+
DIRNAME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
9+
LH_ROOT="$DIRNAME/../.."
10+
cd $LH_ROOT
11+
12+
set -ex
13+
14+
yarn upgrade --latest \
15+
axe-core \
16+
chrome-devtools-frontend \
17+
chrome-launcher \
18+
csp_evaluator \
19+
devtools-protocol \
20+
js-library-detector \
21+
lighthouse-logger \
22+
lighthouse-stack-packs \
23+
puppeteer \
24+
puppeteer-core \
25+
speedline-core \
26+
third-party-web \
27+
28+
# Do some stuff that may update checked-in files.
29+
yarn build-all
30+
yarn update:sample-json
31+
32+
# Just print something nice to copy/paste as a PR description.
33+
34+
set +x
35+
36+
echo '```diff'
37+
git diff -U0 package.json | grep -E '^[-] ' | sort
38+
echo
39+
git diff -U0 package.json | grep -E '^[+] ' | sort
40+
echo '```'

docs/releasing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ We follow [semver](https://semver.org/) versioning semantics (`vMajor.Minor.Patc
3636

3737
### Update various dependencies
3838

39-
In general, Lighthouse should be using the latest version of all of these dependencies:
39+
In general, Lighthouse should be using the latest version of its critical dependencies. These are listed in the following script. It's ok to not be on the very latest, use your judgement.
40+
41+
```sh
42+
bash core/scripts/upgrade-deps.sh
43+
```
4044

4145
1. https://github.com/GoogleChrome/lighthouse-stack-packs
4246
1. `puppeteer` and `puppeteer-core`

0 commit comments

Comments
 (0)