diff --git a/package.json b/package.json index 00c8cc4..0a23d36 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test": "webpack --display-modules --mode development", "dist": "npm run license && electron-builder", "pack": "npm run license && electron-builder --dir", - "release": "npm run license && electron-builder" + "release": "npm run license && electron-builder", + "check-outdated": "check-outdated --ignore-pre-releases --ignore-dev-dependencies --ignore-packages package1,package2 --columns name,type,current,latest,changes --types major,minor,patch,reverted", + "preversion": "npm run lint && npm run test && npm run check-outdated" }, "repository": { "type": "git", @@ -34,6 +36,7 @@ "babel-loader": "^7.0.0", "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.16.0", + "check-outdated": "^2.11.0", "css-loader": "^5.0.0", "electron": "^13.0.0", "electron-builder": "^22.11.0", diff --git a/yarn.lock b/yarn.lock index e5e6535..8797b7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1867,6 +1867,11 @@ chart.js@^1.1.1: resolved "https://registry.yarnpkg.com/chart.js/-/chart.js-1.1.1.tgz#a9b17054220bd45cbdb176fd6bcb8783ef871a7d" integrity sha1-qbFwVCIL1Fy9sXb9a8uHg++HGn0= +check-outdated@^2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/check-outdated/-/check-outdated-2.11.0.tgz#f4af68089c229095b2f350b818119f377ba39807" + integrity sha512-YZmbRlpWCi2plPRpKLNPJLeel+86qvHMK1Tt9Dpt/APjtSCDrI9YpMvXr4lGrsx8aH0QJev7VJUyfcfwKQ/CCg== + chokidar@^2.1.8: version "2.1.8" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"