From 3f1be7a3e5fa1183fc9726f6621da28220a9d212 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 13 Aug 2023 19:39:05 +0200 Subject: [PATCH] feat(tool): Install setup tools from workspace Signed-off-by: jld3103 --- tool/setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tool/setup.sh b/tool/setup.sh index f92e2636..5a480169 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -2,8 +2,10 @@ set -euxo pipefail cd "$(dirname "$0")/.." -dart pub global activate melos 3.1.0 -dart pub global activate fvm 2.4.1 +for package in $(yq -r ".dev_dependencies | keys | .[]" pubspec.yaml); do + version="$(yq -r ".dev_dependencies.$package" pubspec.yaml)" + dart pub global activate "$package" "$version" +done echo "y" | fvm install melos exec --concurrency=1 flutter pub get dart run husky install