diff --git a/deploy.sh b/deploy.sh index d1c0854..d6a92d7 100644 --- a/deploy.sh +++ b/deploy.sh @@ -92,7 +92,7 @@ selectNodeVersion if [ -e "$DEPLOYMENT_TARGET/package.json" ]; then cd "$DEPLOYMENT_TARGET" echo "Running yarn install" - yarn install --ignore-engines + yarn install exitWithMessageOnError "yarn failed" cd - > /dev/null fi diff --git a/package.json b/package.json index 2c2107c..1b504f9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Partio-ohjelmasovelluksen backend", "main": "index.js", "engines": { - "node": "18.x" + "node": "18.x || 14.x" }, "scripts": { "start": "node dist/index.js",