Skip to content

Commit 8d6a63b

Browse files
committed
package.json: add script for updating caniuse browser support list
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.
1 parent 75fb81e commit 8d6a63b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"lint": "vue-cli-service lint",
88
"storybook": "yarn i18n:extract && yarn i18n:lib && start-storybook -p 6006 -c .storybook -s .",
99
"build-storybook": "build-storybook -c .storybook -o dist-storybook",
10+
"update-browserslist": "yarn update-browserslist-db",
1011
"i18n:extract": "node ./node_modules/webpack-i18n-tools/index.js ./src/i18n/en.po",
1112
"i18n:pull": "tx pull --force --all",
1213
"i18n:push": "tx push --source",

yarn.lock

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4213,14 +4213,9 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
42134213
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000856.tgz#fbebb99abe15a5654fc7747ebb5315bdfde3358f"
42144214
integrity sha1-++u5mr4VpWVPx3R+u1MVvf3jNY8=
42154215

4216-
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000815, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30000864, caniuse-lite@^1.0.30001023:
4217-
version "1.0.30001027"
4218-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001027.tgz#283e2ef17d94889cc216a22c6f85303d78ca852d"
4219-
integrity sha512-7xvKeErvXZFtUItTHgNtLgS9RJpVnwBlWX8jSo/BO8VsF6deszemZSkJJJA1KOKrXuzZH4WALpAJdq5EyfgMLg==
4220-
4221-
caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001629:
4216+
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000815, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30000864, caniuse-lite@^1.0.30001023, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001629:
42224217
version "1.0.30001640"
4223-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz#32c467d4bf1f1a0faa63fc793c2ba81169e7652f"
4218+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz"
42244219
integrity sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==
42254220

42264221
case-sensitive-paths-webpack-plugin@^2.1.2, case-sensitive-paths-webpack-plugin@^2.3.0:

0 commit comments

Comments
 (0)