Skip to content

package.json updater script#1834

Merged
jacbn merged 4 commits intomainfrom
feature/package-json-updater-script
Jan 30, 2026
Merged

package.json updater script#1834
jacbn merged 4 commits intomainfrom
feature/package-json-updater-script

Conversation

@jacbn
Copy link
Copy Markdown
Contributor

@jacbn jacbn commented Nov 13, 2025

When reviewing dependencies for updates, we often run yarn update-interactive or yarn audit etc. These do not check/update the version numbers specified in package.json, but rather the versions in yarn.lock (those actually used when running yarn). There is no real issue with this, but it means package.json, which would otherwise be a very easy way to check what versions of dependencies we have installed, is often out of date and is not a reliable reference. As some simple housekeeping, I have created a script to go through the genuinely-used versions in yarn.lock and, if there is a discrepancy, print this to the console for manual checking/updating.

@jacbn
Copy link
Copy Markdown
Contributor Author

jacbn commented Nov 13, 2025

Some thoughts:

  • Should scripts exist in a /scripts directory? There are a few we could move now (the release scripts should probably stay where they are) to clean up the root.
  • Should this update the versions automatically or is it best to keep it manual?

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.49%. Comparing base (a0a1a10) to head (c8a1d6d).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1834    +/-   ##
========================================
  Coverage   42.49%   42.49%            
========================================
  Files         575      575            
  Lines       24550    24550            
  Branches     7241     8134   +893     
========================================
  Hits        10433    10433            
+ Misses      14071    13451   -620     
- Partials       46      666   +620     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jacbn jacbn marked this pull request as ready for review December 19, 2025 14:55
@jacbn
Copy link
Copy Markdown
Contributor Author

jacbn commented Jan 30, 2026

We have discussed this script and are happy with it, I was waiting on confirmation on whether to put it in a scripts folder or not. We decided this was a good idea and should generally do this going forwards.

@jacbn jacbn merged commit 1ad837a into main Jan 30, 2026
10 checks passed
@jacbn jacbn deleted the feature/package-json-updater-script branch January 30, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant