Drop version field from bower.json

According to bower docs, that field is deprecated and ignored.
Git tag names (or commit ids) are the way to identify a given version.
This commit is contained in:
Martin von Gagern 2017-01-09 22:49:45 +01:00
parent 73cafd16da
commit 6404cfd269
2 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,5 @@
{
"name": "katex",
"version": "0.8.0-pre",
"main": [
"dist/katex.js",
"dist/katex.css"

View File

@ -45,8 +45,7 @@ git add .gitignore dist/
# http://stackoverflow.com/a/22084103 for why we need the .bak file to make
# this mac & linux compatible)
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$VERSION'",|' package.json
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$VERSION'",|' bower.json
rm -f package.json.bak bower.json.bak
rm -f package.json.bak
# Make the commit and tag, and push them.
git add package.json bower.json
@ -63,8 +62,7 @@ if [ ! -z "$NEXT_VERSION" ]; then
# Edit package.json and bower.json to the right version
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' package.json
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' bower.json
rm -f package.json.bak bower.json.bak
rm -f package.json.bak
git add package.json bower.json
git commit -n -m "Bump master to v$NEXT_VERSION-pre"