feat: enable yarnhook to keep node_modules up-to-date

This commit is contained in:
Igor Gassmann 2018-03-23 15:45:32 -04:00 committed by Igor Gassmann
parent 95e04b1d96
commit 6f7a12bfa6
2 changed files with 24 additions and 1 deletions

View file

@ -27,6 +27,9 @@
"build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null",
"release": "yarn compile && electron-builder build",
"precommit": "lint-staged",
"postmerge": "yarnhook",
"postcheckout": "yarnhook",
"postrewrite": "yarnhook",
"postinstall": "electron-builder install-app-deps && node build/downloadDaemon.js",
"lint": "eslint 'src/**/*.{js,jsx}' --fix",
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write"
@ -110,7 +113,8 @@
"prettier": "^1.11.1",
"sass-loader": "^6.0.7",
"webpack": "^3.10.0",
"webpack-build-notifier": "^0.1.23"
"webpack-build-notifier": "^0.1.23",
"yarnhook": "^0.1.1"
},
"engines": {
"node": ">=6",

View file

@ -3429,6 +3429,18 @@ execa@^0.7.0:
signal-exit "^3.0.0"
strip-eof "^1.0.0"
execa@^0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da"
dependencies:
cross-spawn "^5.0.1"
get-stream "^3.0.0"
is-stream "^1.1.0"
npm-run-path "^2.0.0"
p-finally "^1.0.0"
signal-exit "^3.0.0"
strip-eof "^1.0.0"
execa@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/execa/-/execa-0.9.0.tgz#adb7ce62cf985071f60580deb4a88b9e34712d01"
@ -9531,6 +9543,13 @@ yargs@~3.10.0:
decamelize "^1.0.0"
window-size "0.1.0"
yarnhook@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/yarnhook/-/yarnhook-0.1.1.tgz#6e67757327e6390cb313f371bdc44ded7c5e047b"
dependencies:
execa "^0.8.0"
find-parent-dir "^0.3.0"
yauzl@2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"