Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions component-tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ if [[ -z "$1" ]]; then
exit -1
fi

TAG="$1"
VERSION="$1"
SUFFIX="$2"

TAG="$VERSION$SUFFIX"

if [[ ! -z "$(git tag | grep "^$TAG\$")" ]]; then
echo "tag $1 already exists"
Expand All @@ -18,7 +21,7 @@ test -f "$work/$0"

td="$(mktemp -d)"
cd "$td"
npm install codemirror@$TAG
npm install codemirror@$VERSION


cd "$work"
Expand Down