Script for updating to latest versions.

This commit is contained in:
Ben Newman
2019-11-26 12:13:14 -05:00
parent a2e1adc4df
commit 897882fa4f
3 changed files with 25 additions and 0 deletions

15
scripts/update-versions Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash -eux
cd $(dirname $0)/..
npm i $(node -p 'Object.keys(require("./package.json").dependencies).map(d => d + "@latest").join(" ")')
npm i --save-dev --save-exact @babel/core@latest
git add package.json
git commit -m "Update eligible dependencies to latest versions."
git rm -f package-lock.json
rm -rf node_modules
npm i
git add package-lock.json
git commit -m "Update package-lock.json."