File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252if [[ -f package.json && " ${local_package_checksum} " == " ${remote_package_checksum} " ]]; then
5353 echo " ---> Reusing package.json"
5454 cp -r " ${node_modules_layer_dir} " " ./node_modules"
55- else
55+ elif [[ -f package.json ]] ; then
5656 echo " ---> Installing package.json with npm install."
5757 rm " ${node_modules_layer_dir} " -rf
5858 npm install
Original file line number Diff line number Diff line change 22set -eo pipefail
33
44# 1. CHECK IF APPLICABLE
5- if [ ! -f " package.json" ] || [ ! -f " .node_version " ]; then
5+ if [ ! -f " package.json" ] || [ ! -f " .node-version " ]; then
66 exit 100
77fi
88
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ if [[ -f "${extensions_layer_dir}.toml" ]]; then
7676fi
7777if [[ -f extensions.json && " ${local_extensions_checksum} " == " ${remote_extensions_checksum} " ]]; then
7878 echo " ---> Reusing extensions.json"
79- else
79+ elif [[ -f extensions.json ]] ; then
8080 echo " ---> Config pecl"
8181 pecl config-set php_dir " ${php_layer_dir} "
8282 pecl config-set bin_dir " ${php_layer_dir} " /bin
Original file line number Diff line number Diff line change 22set -eo pipefail
33
44# 1. CHECK IF APPLICABLE
5- if [[ ! -f composer.json ]] && [[ ! -f index.php ]]; then
5+ if [[ ! -f composer.json ]] && [[ ! -f index.php ]] && [[ ! -f .php-version ]] ; then
66 exit 100
77fi
88
Original file line number Diff line number Diff line change 8787
8888if [[ -f requirements.txt && " ${local_requirements_checksum} " == " ${remote_requirements_checksum} " ]]; then
8989 echo " ---> Reusing requirements"
90- else
90+ elif [[ -f requirements.txt ]] ; then
9191 echo " ---> Installing requirements with pip"
9292 python -m pip install -r requirements.txt \
9393 --exists-action=w --src=" ${python_layer_dir} " /src \
Original file line number Diff line number Diff line change 22set -eo pipefail
33
44# 1. CHECK IF APPLICABLE
5- if [ ! -f " requirements.txt" ] && [ ! -f " setup.py" ]; then
5+ if [ ! -f " requirements.txt" ] && [ ! -f " setup.py" ] && [ ! -f " .python-version " ] ; then
66 exit 100
77fi
88
You can’t perform that action at this time.
0 commit comments