diff options
-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." |