From 88c51c6f6e09ceebea1e4b0f09d8b7d8d5ed2256 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Tue, 9 May 2023 16:06:40 +0300 Subject: [PATCH] UHF-7006: Added preinstall for package.json that checks if there is updates for browserslist db --- public/themes/custom/hdbt_subtheme/package-lock.json | 11 ++++++++--- public/themes/custom/hdbt_subtheme/package.json | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/themes/custom/hdbt_subtheme/package-lock.json b/public/themes/custom/hdbt_subtheme/package-lock.json index 48dbfe51..7b79cb19 100644 --- a/public/themes/custom/hdbt_subtheme/package-lock.json +++ b/public/themes/custom/hdbt_subtheme/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "hdbt_subtheme", "version": "1.0.0", + "hasInstallScript": true, "license": "MIT", "dependencies": { "@babel/core": "^7.14.3", @@ -3074,9 +3075,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001451", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001451.tgz", - "integrity": "sha512-XY7UbUpGRatZzoRft//5xOa69/1iGJRBlrieH6QYrkKLIFn3m7OVEJ81dSrKoy2BnKsdbX5cLrOispZNYo9v2w==", + "version": "1.0.30001486", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz", + "integrity": "sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg==", "funding": [ { "type": "opencollective", @@ -3085,6 +3086,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, diff --git a/public/themes/custom/hdbt_subtheme/package.json b/public/themes/custom/hdbt_subtheme/package.json index e5d6a327..07db5050 100644 --- a/public/themes/custom/hdbt_subtheme/package.json +++ b/public/themes/custom/hdbt_subtheme/package.json @@ -8,6 +8,7 @@ "scripts": { "dev": "webpack --progress --mode=development --config webpack.config.js --watch", "build": "webpack --progress --mode=production --config webpack.config.js", + "preinstall": "npx browserslist@latest --update-db", "lint": "lint-staged", "lint:js": "eslint --fix src/" },