Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Generate .yarnrc to use a persistent link folder
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <tmader@redhat.com>
  • Loading branch information
tsmaeder committed Feb 16, 2021
1 parent c18af79 commit f85e4c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions linktheia.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
BASEDIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
THEIA_LOCATION=/projects/theia

if [ ! -f "/projects/.yarnrc" ]; then
echo "--link-folder /projects/links" > /projects/.yarnrc
else
echo .yarnrc already exists
fi

if [ ! -d "/projects/links" ]; then
mkdir /projects/links
else
echo links folder exists
fi

for r in packages dev-packages examples; do
for d in ` ls $THEIA_LOCATION/$r/`; do
directory=$THEIA_LOCATION/$r/$d
Expand Down

0 comments on commit f85e4c2

Please sign in to comment.