mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-05-07 05:07:40 +02:00
Update dependencies, for real this time
Just why doesn't yarn do this automatically? this is stupid
This commit is contained in:
22
support/actual-update.sh
Executable file
22
support/actual-update.sh
Executable file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user