diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-24 10:17:44 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-24 10:17:44 +0200 |
commit | 62be8e11e2397f65b773d377ee2bed5f8cf24f09 (patch) | |
tree | f76fab442bc4abb4ccb305041e29a3048e47ff7a | |
parent | 9e580054399e3d40b0cc366afc80ceb7426ad590 (diff) | |
download | PeerTube-62be8e11e2397f65b773d377ee2bed5f8cf24f09.tar.gz PeerTube-62be8e11e2397f65b773d377ee2bed5f8cf24f09.tar.zst PeerTube-62be8e11e2397f65b773d377ee2bed5f8cf24f09.zip |
Don't generate yarn lockfile on upgrade
-rw-r--r-- | package.json | 2 | ||||
-rwxr-xr-x | scripts/upgrade.sh | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/package.json b/package.json index ac542c3f9..f795dff90 100644 --- a/package.json +++ b/package.json | |||
@@ -38,7 +38,7 @@ | |||
38 | "update-host": "ts-node ./scripts/update-host.ts", | 38 | "update-host": "ts-node ./scripts/update-host.ts", |
39 | "test": "scripty", | 39 | "test": "scripty", |
40 | "help": "scripty", | 40 | "help": "scripty", |
41 | "postinstall": "cd client && yarn install", | 41 | "postinstall": "cd client && yarn install --pure-lockfile", |
42 | "tsc": "tsc", | 42 | "tsc": "tsc", |
43 | "nodemon": "nodemon", | 43 | "nodemon": "nodemon", |
44 | "ts-node": "ts-node", | 44 | "ts-node": "ts-node", |
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 748b0d947..ff6dce94f 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh | |||
@@ -25,9 +25,7 @@ fi | |||
25 | 25 | ||
26 | git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1 | 26 | git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1 |
27 | 27 | ||
28 | yarn install | 28 | yarn install --pure-lockfile |
29 | yarn upgrade | ||
30 | cd client && yarn upgrade && cd ../ | ||
31 | npm run build | 29 | npm run build |
32 | 30 | ||
33 | echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts." | 31 | echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts." |