Skip to content

Commit

Permalink
package.json: add script for updating caniuse browser support list
Browse files Browse the repository at this point in the history
This is used for babel transpilation targets via browserslist and is needed to be updated
sporadically.

We don't follow the official usage instructions to do "npx update-browserslist-db@latest"
to reduce the risk of blindly executing code of a malicious version of the script.
Instead, the package update-browserslist-db should be updated manually occasionally,
which doesn't have to be regularly though.
  • Loading branch information
danimoh committed Jul 7, 2024
1 parent 672cb97 commit bdc2096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test": "yarn test:unit",
"pr": "yarn lint && yarn build:ci && yarn test && cd client && yarn lint && yarn build",
"postinstall": "patch-package && cd client && yarn",
"update-browserslist": "yarn update-browserslist-db",
"i18n:extract": "node ./node_modules/webpack-i18n-tools/index.js ./src/i18n/en.po",
"i18n:pull": "tx pull --all --force --minimum-perc 90",
"i18n:push": "tx push --source",
Expand Down
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4512,12 +4512,7 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001219:
version "1.0.30001617"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001617.tgz"
integrity sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==

caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001629:
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219, caniuse-lite@^1.0.30001629:
version "1.0.30001640"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz#32c467d4bf1f1a0faa63fc793c2ba81169e7652f"
integrity sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==
Expand Down

0 comments on commit bdc2096

Please sign in to comment.