fix(build): upgrade npm to 11.18.0 - #14181
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14181 +/- ##
==========================================
+ Coverage 49.93% 55.17% +5.23%
==========================================
Files 102 103 +1
Lines 26315 26373 +58
Branches 6292 6301 +9
==========================================
+ Hits 13140 14550 +1410
+ Misses 11427 9907 -1520
- Partials 1748 1916 +168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for the suggestion @subhwastaken! I think this gets us halfway there. IMHO, we should probably set the |
|
Thanks for the suggestion! I'll look into centralizing the npm version via the |
|
@hangy I've updated the PR to add the packageManager field to package.json to declare the npm version in a central location. I also looked through the current GitHub Actions workflows and Dockerfile.frontend. The workflows already use actions/setup-node, while the Docker build still installs npm@11.18.0 explicitly. I couldn't find an existing mechanism in the repository to reuse the packageManager value from package.json during the Docker build. If you have a preferred approach for that part, I'd be happy to update the PR accordingly. |
|



Summary
Why
The repository's frontend build reports that npm 10.9.4 is outdated and should be upgraded to 11.18.0.
Fixes #14139