From 075a107d3d5c5e48a247ccc72de509fcbceabe77 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Wed, 4 Jun 2025 21:16:39 -0500 Subject: [PATCH] chore(amplify): simplify npm ci command and remove husky scripts This commit modifies the npm ci command to exclude development dependencies and removes husky setup scripts from package.json, streamlining the build process for production environments. --- amplify.yml | 3 +-- package.json | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/amplify.yml b/amplify.yml index 34174f9e..83c90f5d 100644 --- a/amplify.yml +++ b/amplify.yml @@ -15,8 +15,7 @@ frontend: preBuild: commands: - nvm use 22 - - npm ci --include=dev - - echo "Skipping husky setup in production" + - npm ci build: commands: - npm run build diff --git a/package.json b/package.json index 665c6dc7..30fdfa58 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,6 @@ "build": "next build", "start": "next start", "lint": "next lint", - "prepare": "if command -v husky >/dev/null 2>&1; then husky; fi", - "postinstall": "if [ \"$NODE_ENV\" != \"production\" ] && command -v husky >/dev/null 2>&1; then husky; fi", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage"