Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit f5b47f6

Browse files
In setup.sh, delete any leftover yarn release artifacts
1 parent fd6a3af commit f5b47f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,16 @@ dir_has_yarn_release() {
101101
local prefixDir="$1"
102102
shift
103103

104+
# Clean up old files that are deprecated and shouldn't be checked in anymore if they exist
104105
if test -f "$prefixDir"/.yarn/releases/yarn-rc.js ; then
105106
rm "$prefixDir"/.yarn/releases/yarn-rc.js
106107
fi
108+
if test -f "$prefixDir"/.yarn/releases/yarn-berry.cjs ; then
109+
rm "$prefixDir"/.yarn/releases/yarn-berry.cjs
110+
fi
111+
if test -f "$prefixDir"/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs ; then
112+
rm "$prefixDir"/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
113+
fi
107114

108115
if has_broken_yarn "$prefixDir" ; then
109116
echo "yarn seems broken in $prefixDir, remove .yarnrc.yml"

0 commit comments

Comments
 (0)