Merge pull request #955 from lbryio/issue/954

Keeps node_modules up-to-date when yarn.lock changes due to git
This commit is contained in:
Igor Gassmann 2018-01-18 14:35:08 -03:00 committed by GitHub
commit 12cbf5a76c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -22,6 +22,9 @@
"build": "yarn compile && electron-builder build",
"build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null",
"postinstall": "electron-builder install-app-deps",
"postmerge": "yarnhook",
"postcheckout": "yarnhook",
"postrewrite": "yarnhook",
"precommit": "lint-staged",
"lint": "eslint 'src/**/*.{js,jsx}' --fix",
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write"
@ -100,7 +103,8 @@
"prettier": "^1.4.2",
"sass-loader": "^6.0.6",
"webpack": "^3.10.0",
"webpack-build-notifier": "^0.1.18"
"webpack-build-notifier": "^0.1.18",
"yarnhook": "^0.1.1"
},
"resolutions": {
"webpack/webpack-sources": "1.0.1"

View file

@ -9448,6 +9448,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"