Skip to content

Commit

Permalink
read elm-core version from json before symlinking
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysarson committed Apr 24, 2021
1 parent b65fc2f commit a888bfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ rm -rf "$ELM_HOME" && mkdir -p "$ELM_HOME";
rm -rf elm-stuff;

# Create a link to the git package
CORE_LINK="${ELM_HOME}/0.19.1/packages/elm/core/1.0.5"
VERSION=$(node -e "console.log(require('../elm.json').version)")
CORE_LINK="${ELM_HOME}/0.19.1/packages/elm/core/${VERSION}"
CORE_GIT_DIR="$(dirname $PWD)"
echo;
echo "Linking $CORE_LINK to $CORE_GIT_DIR"
Expand Down

0 comments on commit a888bfe

Please sign in to comment.