mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
Revive generation script, which seems to have failed untraceably until recently
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user