Revive generation script, which seems to have failed untraceably until recently

This commit is contained in:
Amit Davidi
2019-06-18 13:55:55 +03:00
parent 5f0317a833
commit 4a6f5ea04f
+5 -4
View File
@@ -13,10 +13,10 @@ if [ "isGitClean" = true ] ; then
git stash
fi
npm run build
if [[ $(git diff -- . ':(exclude)/*package.json') ]]; then
gitDiff=`git --no-pager diff -- .. ":(exclude)../**/package.json"`
if [[ -n "${gitDiff}" ]]; then
printf "\n\n"
echo "There seem to be changes after running the code generation."
echo "This might be because you updated a native dependency and forgot to run the code generation."
@@ -25,7 +25,8 @@ if [[ $(git diff -- . ':(exclude)/*package.json') ]]; then
echo "Another source of this error might be that you have changed generated code and checked it in."
echo "You should not be doing this, please change the source of the generated code and not the code itself."
printf "\n"
echo "$(git diff)"
echo "Diff summary:"
echo "${gitDiff}"
if [ "isGitClean" = true ] ; then
git stash pop
@@ -35,4 +36,4 @@ else
if [ "isGitClean" = true ] ; then
git stash pop
fi
fi
fi