From ce48613b9b916e9213e743328ed1716b823e44e4 Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Sun, 13 Oct 2024 17:50:08 +0200 Subject: [PATCH] Always use scripts directory from main --- publish.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/publish.sh b/publish.sh index 4d88314e..f6183dbc 100755 --- a/publish.sh +++ b/publish.sh @@ -68,6 +68,10 @@ function generate_docs_for_version { rm -rf $tmp_flame_src/doc/_sphinx cp -r $tmp_stash/_sphinx $tmp_flame_src/doc/ cp -r $tmp_stash/melos.yaml $tmp_flame_src/ + # Since the scripts used in melos.yaml are the scripts from main we have to + # replace the script directory with the newest one. + rm -rf $tmp_flame_src/scripts + cp -r $tmp_stash/scripts $tmp_flame_src # This is a very fragile work around for the fact that older versions don't # have a pubspec.yaml in the root which is required by Melos 3. cp -r $tmp_stash/pubspec.yaml $tmp_flame_src/