From 47c33d6f2e4d022fcaf644f6d69c6d630ce5701b Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Thu, 5 Jun 2025 10:10:10 -0500 Subject: [PATCH] chore(amplify): update Node version in package.json and streamline amplify.yml This commit updates the Node version in package.json to 22.12.0 and removes unnecessary preBuild commands from amplify.yml, simplifying the build process while ensuring compatibility with the specified Node version. --- amplify.yml | 14 ++------------ package.json | 3 +++ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/amplify.yml b/amplify.yml index 4fac5153..e69489b5 100644 --- a/amplify.yml +++ b/amplify.yml @@ -1,22 +1,12 @@ version: 1 backend: phases: - preBuild: - commands: - - nvm install 22 - - nvm use 22 build: commands: - npm ci --cache .npm --prefer-offline - - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID - + - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - nvm use 22 - - npm ci - build: commands: - npm run build @@ -28,4 +18,4 @@ frontend: paths: - .next/cache/**/* - .npm/**/* - - node_modules/**/* + - node_modules/**/* \ No newline at end of file diff --git a/package.json b/package.json index 5afdbe72..49f69fc1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ "test:watch": "jest --watch", "test:coverage": "jest --coverage" }, + "engines": { + "node": "22.12.0" + }, "lint-staged": { "*.{js,jsx,ts,tsx,json,css,scss,md}": [ "prettier --write"