]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't generate yarn lockfile on upgrade
authorChocobozzz <florian.bigard@gmail.com>
Sat, 24 Jun 2017 08:17:44 +0000 (10:17 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Sat, 24 Jun 2017 08:17:44 +0000 (10:17 +0200)
package.json
scripts/upgrade.sh

index ac542c3f9e866a44b7deb2176aed56e48051210d..f795dff9075e923d5cf7e93e79e812c440fdb393 100644 (file)
@@ -38,7 +38,7 @@
     "update-host": "ts-node ./scripts/update-host.ts",
     "test": "scripty",
     "help": "scripty",
-    "postinstall": "cd client && yarn install",
+    "postinstall": "cd client && yarn install --pure-lockfile",
     "tsc": "tsc",
     "nodemon": "nodemon",
     "ts-node": "ts-node",
index 748b0d947fde5ddcd41d4d3e6c273e8c96512106..ff6dce94f4d8d25a6648f6cb4a64bc0bf98bed4d 100755 (executable)
@@ -25,9 +25,7 @@ fi
 
 git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
 
-yarn install
-yarn upgrade
-cd client && yarn upgrade && cd ../
+yarn install --pure-lockfile
 npm run build
 
 echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."