From 151b7fb5202973de7a98c7619a3208187a25d31f Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Thu, 9 Jan 2020 16:36:06 +0100 Subject: [PATCH] fix: improve yarn lock scan, always run --- husky.config.js | 2 +- package.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/husky.config.js b/husky.config.js index 4c2ec3ae8..ebac8829f 100644 --- a/husky.config.js +++ b/husky.config.js @@ -1,6 +1,6 @@ module.exports = { hooks: { - 'pre-commit': 'lint-staged', + 'pre-commit': 'lint-staged && node ./scripts/yarn-lock-scan.js', 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', }, }; diff --git a/package.json b/package.json index e022ac308..f032adec1 100644 --- a/package.json +++ b/package.json @@ -74,9 +74,6 @@ ], "*package.json": [ "node ./scripts/lint-versions.js" - ], - "yarn.lock": [ - "node ./scripts/yarn-lock-scan.js" ] }, "bundlesize": [