chore(amplify): simplify npm ci command and remove husky scripts#69
Conversation
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.
WalkthroughThe updates remove conditional Husky setup commands from both the build pipeline configuration and the npm scripts in Changes
Possibly related PRs
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
amplify.yml (1)
18-18: Ensure dev dependencies are omitted and caching is consistent
Thenpm ciinvocation now lacks both the--omit=dev(or--production) flag—meaning dev deps may still be installed unlessNODE_ENV=production—and the cache options used in the backend preBuild. Confirm this is intentional. For clearer intent and faster builds, consider:- - npm ci + - npm ci --omit=dev --cache .npm --prefer-offlineAlso remove the trailing space at the end of the original line.
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 18-18: trailing spaces
(trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
amplify.yml(1 hunks)package.json(0 hunks)
💤 Files with no reviewable changes (1)
- package.json
🧰 Additional context used
🪛 YAMLlint (1.37.1)
amplify.yml
[error] 18-18: trailing spaces
(trailing-spaces)
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.
Summary by CodeRabbit