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:
parent
73cafd16da
commit
6404cfd269
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "katex",
|
"name": "katex",
|
||||||
"version": "0.8.0-pre",
|
|
||||||
"main": [
|
"main": [
|
||||||
"dist/katex.js",
|
"dist/katex.js",
|
||||||
"dist/katex.css"
|
"dist/katex.css"
|
||||||
|
|
|
@ -45,8 +45,7 @@ git add .gitignore dist/
|
||||||
# http://stackoverflow.com/a/22084103 for why we need the .bak file to make
|
# http://stackoverflow.com/a/22084103 for why we need the .bak file to make
|
||||||
# this mac & linux compatible)
|
# this mac & linux compatible)
|
||||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$VERSION'",|' package.json
|
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
|
||||||
rm -f package.json.bak bower.json.bak
|
|
||||||
|
|
||||||
# Make the commit and tag, and push them.
|
# Make the commit and tag, and push them.
|
||||||
git add package.json bower.json
|
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
|
# 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",|' package.json
|
||||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' bower.json
|
rm -f package.json.bak
|
||||||
rm -f package.json.bak bower.json.bak
|
|
||||||
|
|
||||||
git add package.json bower.json
|
git add package.json bower.json
|
||||||
git commit -n -m "Bump master to v$NEXT_VERSION-pre"
|
git commit -n -m "Bump master to v$NEXT_VERSION-pre"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user