From 3708df1e74b6e503b7dabfe1225ee6c2e23bd633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 28 Sep 2018 15:44:25 +0200 Subject: [PATCH 1/2] Fixes workbox dependencies --- .../workbox-webpack-plugin/package-lock.json | 23 ++++++++++++++++++- packages/workbox-webpack-plugin/package.json | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/packages/workbox-webpack-plugin/package-lock.json b/packages/workbox-webpack-plugin/package-lock.json index f045480d3..ec55b9829 100644 --- a/packages/workbox-webpack-plugin/package-lock.json +++ b/packages/workbox-webpack-plugin/package-lock.json @@ -1,7 +1,23 @@ { - "requires": true, + "name": "workbox-webpack-plugin", + "version": "3.6.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + } + }, + "core-js": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" + }, "json-stable-stringify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", @@ -14,6 +30,11 @@ "version": "0.0.0", "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" } } } diff --git a/packages/workbox-webpack-plugin/package.json b/packages/workbox-webpack-plugin/package.json index 79eb599c3..88fb118dd 100644 --- a/packages/workbox-webpack-plugin/package.json +++ b/packages/workbox-webpack-plugin/package.json @@ -28,6 +28,7 @@ "node": ">=4.0.0" }, "dependencies": { + "babel-runtime": "^6.26.0", "json-stable-stringify": "^1.0.1", "workbox-build": "^3.6.1" }, From debb46f53015ca59266e4612265bc755702a1179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Fri, 28 Sep 2018 16:09:37 +0200 Subject: [PATCH 2/2] Fixes the depcheck --- test/workbox-webpack-plugin/node/dependency-check.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/workbox-webpack-plugin/node/dependency-check.js b/test/workbox-webpack-plugin/node/dependency-check.js index 79db588c3..2fb03b366 100644 --- a/test/workbox-webpack-plugin/node/dependency-check.js +++ b/test/workbox-webpack-plugin/node/dependency-check.js @@ -10,6 +10,9 @@ describe(`[workbox-webpack-plugin] Test Dependencies`, function() { 'build', 'demo', ], + ignoreMatches: [ + 'babel-runtime', + ], }, (unusedDeps) => { if (unusedDeps.dependencies.length > 0) { return reject(new Error(`Unused dependencies defined in package.json: ${JSON.stringify(unusedDeps.dependencies)}`));