From 0578a8ec8bcf4e115dbfeaacad7f1cc7e45e77b8 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 31 Aug 2021 20:20:33 +0200 Subject: [PATCH] Update node dependencies --- package-lock.json | 37 ++++++++++++++++++++++++------------- package.json | 12 ++++-------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index aee9d2d..df2ae99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "regenerator-runtime": "^0.13.9", "stylelint": "^13.13.1", "stylelint-config-standard": "^22.0.0", - "terser-webpack-plugin": "^5.1.4", + "terser-webpack-plugin": "^5.2.0", "webpack": "^5.51.1", "webpack-cli": "^4.8.0", "webpack-merge": "^5.8.0" @@ -10908,17 +10908,17 @@ } }, "node_modules/terser-webpack-plugin": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.1.4.tgz", - "integrity": "sha512-C2WkFwstHDhVEmsmlCxrXUtVklS+Ir1A7twrYzrDrQQOIMOaVAYykaoo/Aq1K0QRkMoY2hhvDQY1cm4jnIMFwA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.0.tgz", + "integrity": "sha512-FpR4Qe0Yt4knSQ5u2bA1wkM0R8VlVsvhyfSHvomXRivS4vPLk0dJV2IhRBIHRABh7AFutdMeElIA5y1dETwMBg==", "dev": true, "dependencies": { - "jest-worker": "^27.0.2", + "jest-worker": "^27.0.6", "p-limit": "^3.1.0", - "schema-utils": "^3.0.0", + "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.0", "source-map": "^0.6.1", - "terser": "^5.7.0" + "terser": "^5.7.2" }, "engines": { "node": ">= 10.13.0" @@ -10929,6 +10929,17 @@ }, "peerDependencies": { "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } } }, "node_modules/terser-webpack-plugin/node_modules/p-limit": { @@ -20281,17 +20292,17 @@ } }, "terser-webpack-plugin": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.1.4.tgz", - "integrity": "sha512-C2WkFwstHDhVEmsmlCxrXUtVklS+Ir1A7twrYzrDrQQOIMOaVAYykaoo/Aq1K0QRkMoY2hhvDQY1cm4jnIMFwA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.0.tgz", + "integrity": "sha512-FpR4Qe0Yt4knSQ5u2bA1wkM0R8VlVsvhyfSHvomXRivS4vPLk0dJV2IhRBIHRABh7AFutdMeElIA5y1dETwMBg==", "dev": true, "requires": { - "jest-worker": "^27.0.2", + "jest-worker": "^27.0.6", "p-limit": "^3.1.0", - "schema-utils": "^3.0.0", + "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.0", "source-map": "^0.6.1", - "terser": "^5.7.0" + "terser": "^5.7.2" }, "dependencies": { "p-limit": { diff --git a/package.json b/package.json index 7426365..920f1c0 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "lint:css": "stylelint css/src/main.css", "lint:js": "eslint js/src/*.js", "build": "webpack --config webpack.prod.js", - "build:dev": "webpack --config webpack.dev.js" + "build:dev": "webpack --config webpack.dev.js", + "prepare": "husky install" }, "repository": { "type": "git", @@ -46,7 +47,7 @@ "regenerator-runtime": "^0.13.9", "stylelint": "^13.13.1", "stylelint-config-standard": "^22.0.0", - "terser-webpack-plugin": "^5.1.4", + "terser-webpack-plugin": "^5.2.0", "webpack": "^5.51.1", "webpack-cli": "^4.8.0", "webpack-merge": "^5.8.0" @@ -87,10 +88,5 @@ }, "browserslist": [ "defaults" - ], - "husky": { - "hooks": { - "pre-push": "node .githooks/build-status.js" - } - } + ] }