From e2fb30e5abfc66a419b920a1eb74943a49efbf3b Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 20 Sep 2022 03:07:40 +0200 Subject: [PATCH] npm: Remove node-notifier --- build/utils.js | 18 ------------------ package.json | 1 - yarn.lock | 13 +------------ 3 files changed, 1 insertion(+), 31 deletions(-) diff --git a/build/utils.js b/build/utils.js index c96d0936..a96bf97e 100644 --- a/build/utils.js +++ b/build/utils.js @@ -88,21 +88,3 @@ exports.styleLoaders = function(options) { return output } - -exports.createNotifierCallback = () => { - const notifier = require('node-notifier') - - return (severity, errors) => { - if (severity !== 'error') return - - const error = errors[0] - const filename = error.file && error.file.split('!').pop() - - notifier.notify({ - title: packageConfig.name, - message: severity + ': ' + error.name, - subtitle: filename || '', - icon: path.join(__dirname, 'logo.png') - }) - } -} diff --git a/package.json b/package.json index 14a81b9e..7a3e92aa 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,6 @@ "jest": "25.5.4", "jest-transform-stub": "2.0.0", "mini-css-extract-plugin": "0.12.0", - "node-notifier": "5.4.5", "sass": "1.54.8", "optimize-css-assets-webpack-plugin": "5.0.8", "ora": "3.4.0", diff --git a/yarn.lock b/yarn.lock index 9750eed1..5b79a019 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7073,17 +7073,6 @@ node-libs-browser@^2.2.1: util "^0.11.0" vm-browserify "^1.0.1" -node-notifier@5.4.5: - version "5.4.5" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.5.tgz#0cbc1a2b0f658493b4025775a13ad938e96091ef" - integrity sha512-tVbHs7DyTLtzOiN78izLA85zRqB9NvEXkAf014Vx3jtSvn/xBl6bR8ZYifj+dFcFrKI21huSQgJZ6ZtL3B4HfQ== - dependencies: - growly "^1.3.0" - is-wsl "^1.1.0" - semver "^5.5.0" - shellwords "^0.1.1" - which "^1.3.0" - node-notifier@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-6.0.0.tgz#cea319e06baa16deec8ce5cd7f133c4a46b68e12" @@ -10673,7 +10662,7 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== -which@^1.2.14, which@^1.2.9, which@^1.3.0, which@^1.3.1: +which@^1.2.14, which@^1.2.9, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==