Skip to content

Remove stray npm lockfile and restore yarn.lock in octicons-react - #1249

Merged
mattcosta7 merged 2 commits into
copilot/optimize-react-octiconsfrom
copilot/remove-npm-lockfiles
Jul 22, 2026
Merged

Remove stray npm lockfile and restore yarn.lock in octicons-react#1249
mattcosta7 merged 2 commits into
copilot/optimize-react-octiconsfrom
copilot/remove-npm-lockfiles

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

PR #1245 accidentally ran npm install in a Yarn repo, adding a foreign package-lock.json and corrupting yarn.lock with ~2,183 lines of unintended churn.

  • Deleted lib/octicons_react/package-lock.json — npm lockfile that should never exist here
  • Restored lib/octicons_react/yarn.lock to match main exactly — package.json dependencies are unchanged in this PR (only exports map was restructured), so all yarn.lock diff was noise from the npm run; yarn install --frozen-lockfile passes cleanly with the restored file

@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6708d20

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

- Delete lib/octicons_react/package-lock.json (added by accident when npm install was run in a Yarn repo)
- Restore lib/octicons_react/yarn.lock to match main (no dependency changes in this PR, so yarn.lock churn was unintended side effect of npm install)

yarn install --frozen-lockfile succeeds with the restored lockfile.
Copilot AI changed the title [WIP] Remove npm lockfile artifacts from Yarn repository Remove stray npm lockfile and restore yarn.lock in octicons-react Jul 22, 2026
@mattcosta7
mattcosta7 marked this pull request as ready for review July 22, 2026 22:28
@mattcosta7
mattcosta7 requested a review from a team as a code owner July 22, 2026 22:28
@mattcosta7
mattcosta7 requested a review from joshblack July 22, 2026 22:28
Copilot AI requested a review from mattcosta7 July 22, 2026 22:28
@mattcosta7
mattcosta7 merged commit de1096d into copilot/optimize-react-octicons Jul 22, 2026
@mattcosta7
mattcosta7 deleted the copilot/remove-npm-lockfiles branch July 22, 2026 22:28
mattcosta7 added a commit that referenced this pull request Jul 23, 2026
…1245)

* Initial plan

* Plan: optimize octicons-react for codesplitting/treeshaking

* Emit per-icon modules, pre-transformed components, and ./* subpath exports

* Add changeset for octicons-react codesplitting (minor)

* Remove stray npm lockfile and restore yarn.lock in octicons-react (#1249)

* Initial plan

* Remove stray npm lockfile and restore yarn.lock to match main

- Delete lib/octicons_react/package-lock.json (added by accident when npm install was run in a Yarn repo)
- Restore lib/octicons_react/yarn.lock to match main (no dependency changes in this PR, so yarn.lock churn was unintended side effect of npm install)

yarn install --frozen-lockfile succeeds with the restored lockfile.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Matthew Costabile <mattcosta7@github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Matthew Costabile <mattcosta7@github.com>
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