Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade lockfiles to version 3 #2031

Merged
merged 1 commit into from
Mar 5, 2024
Merged

chore: Upgrade lockfiles to version 3 #2031

merged 1 commit into from
Mar 5, 2024

Conversation

just-boris
Copy link
Member

Description

  1. Run npm install --lockfile-version 3 to convert lockfiles to the latest version
  2. Updated unlocker script and removed a duplicate inside bundle size workflow

Related links, issue #, if available: n/a

How has this been tested?

PR build

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -4,8 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"build": "node build.js",
"preinstall": "node ./unlock-package-lock.cjs"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script had no effect, because preinstall actually runs after all modules already installed 🤷
npm/cli#2660


const lockfiles = [
'package-lock.json',
'backstop/package-lock.json',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file does not have dependencies on our components, but I think having an index of all lockfiles in the repository is useful.

Copy link

codecov bot commented Mar 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.84%. Comparing base (9aa87cd) to head (566f40a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2031   +/-   ##
=======================================
  Coverage   94.84%   94.84%           
=======================================
  Files         669      669           
  Lines       18114    18114           
  Branches     6003     6003           
=======================================
  Hits        17180    17180           
  Misses        869      869           
  Partials       65       65           

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

@just-boris just-boris marked this pull request as ready for review March 2, 2024 18:34
@just-boris just-boris requested a review from a team as a code owner March 2, 2024 18:34
@just-boris just-boris requested review from YueyingLu and removed request for a team March 2, 2024 18:34
@just-boris just-boris merged commit 887ba76 into main Mar 5, 2024
33 checks passed
@just-boris just-boris deleted the upgrade-lockfiles branch March 5, 2024 10:44
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.

2 participants