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

Commit 46f8dfd

Browse files
onpawsmilesrichardson
authored andcommitted
Fix another case of yarn naming scheme in setup.sh
1 parent f5b47f6 commit 46f8dfd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,18 @@ ensure_yarn() {
4141
fi
4242

4343
# Account for releases with naming scheme yarn-2*.(js|cjs)
44-
if test ls "$SPLITGRAPH_DIR"/.yarn/releases/yarn-2.6* 2>/dev/null ; then
44+
if test ls "$SPLITGRAPH_DIR"/.yarn/releases/yarn-2* 2>/dev/null ; then
4545
mv "$SPLITGRAPH_DIR"/.yarn/releases/yarn-2* \
4646
"$SPLITGRAPH_DIR"/.yarn/releases/yarn-berry.js \
4747
&& sed -Ei 's/yarn-[0-9+\.]+\.(cjs|js)/yarn-berry.js/' "$SPLITGRAPH_DIR"/.yarnrc.yml
4848
fi
49+
50+
# Account for releases with naming scheme yarn-berry.cjs
51+
if test -f "$SPLITGRAPH_DIR"/.yarn/releases/yarn-berry.cjs ; then
52+
mv "$SPLITGRAPH_DIR"/.yarn/releases/yarn-berry.cjs \
53+
"$SPLITGRAPH_DIR"/.yarn/releases/yarn-berry.js \
54+
&& sed -i 's/yarn-berry\.cjs/yarn-berry\.js/' "$SPLITGRAPH_DIR"/.yarnrc.yml
55+
fi
4956
fi
5057

5158
if ! dir_has_yarn_plugins "$SPLITGRAPH_DIR" ; then

0 commit comments

Comments
 (0)