Update dependencies, for real this time
Just why doesn't yarn do this automatically? this is stupid
This commit is contained in:
parent
221d7c1072
commit
f794c724c0
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Really yarn, why the hell am I supposed to do this?
|
||||
# If I tell you to upgrade, upgrade everything
|
||||
|
||||
# Go to this script parent
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||||
|
||||
# Print a list of all packages
|
||||
# Get ndjson stream from yarn
|
||||
# Strip the quotes from the package names
|
||||
# Strip the version from the package names
|
||||
# Concat all package names into a single line with spaces
|
||||
# Run "yarn up -R {all-packages}" to update all packages
|
||||
yarn info --name-only -R -A --json | \
|
||||
jq | \
|
||||
sed 's/\"//g' | \
|
||||
sed 's/@.*//g' | \
|
||||
sort | \
|
||||
uniq | \
|
||||
xargs yarn up -R
|
||||
|
Loading…
Reference in New Issue