Skip to content

Commit

Permalink
Try again to commit package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Feb 14, 2019
1 parent 3fa0ee5 commit 073a025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ echo "npm version"
# manually commit the result.
npm version --no-git-tag-version "$release"

# commit package-lock.json if it exists and is versioned
if [[ -f package-lock.json && -z `git status --porcelain --ignored package-lock.json` ]];
# commit package-lock.json if it exists, is versioned, and is modified
if [[ -f package-lock.json && `git status --porcelain package-lock.json | grep '^ M'` ]];
then
pkglock='package-lock.json'
else
Expand Down

0 comments on commit 073a025

Please sign in to comment.