Skip to content

Conversation

@huntie
Copy link
Member

@huntie huntie commented Nov 12, 2025

Summary:
Following D86869721, this removes the unused name, version, and license fields from the project level package.json (previously named react-native/monorepo).

Motivation

  • Simplicity: Our root package.json is a Yarn project manifest, not a package, with the version field serving no functional purpose. react-native/monorepo was never published to npm, and so name, version, and license were never read.
  • Correctness: Since D86869721 and our recent work to formalise monorepo dependencies in private/, the workspace root no longer needs to be referenced by any part of our containing fbsource codebase — and this is a conceptual footgun (Yarn-installing a package that is itself a workspace). react-native/monorepo no longer needs to be named, addressable, or installable.

Or, phrased another way:

  • Delete name — never try to reference this as an npm package!
  • Delete version — never think about versioning this file!
  • Delete license — unread, duplicate of LICENSE.md.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D86869720

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 12, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 12, 2025

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86869720.

…cebook#54519)

Summary:

**Background**

`react-native/eslint` was relocated and renamed to `react-native/eslint-plugin-monorepo` in D76088698.

**This diff**

This updates all call sites to correctly address the `react-native/eslint-plugin-monorepo` package, enabling us to remove the monorepo itself from fbsource's `package.json#workspaces` (which was the only reason this kept working before).

Changelog: [Internal]

Differential Revision: D86869721
Summary:

Following D86869721, this removes the unused `name`, `version`, and `license` fields from the project level `package.json` (previously named `react-native/monorepo`).

**Motivation**

- **Simplicity**: Our root package.json is a Yarn project manifest, not a package, with the `version` field serving no functional purpose. `react-native/monorepo` was never published to npm, and so `name`, `version`, and `license` were never read.
- **Correctness**: Since D86869721 and our recent work to formalise monorepo dependencies in `private/`, the workspace root no longer needs to be referenced by any part of our containing fbsource codebase — and this is a conceptual footgun (Yarn-installing a package that is itself a workspace). `react-native/monorepo` no longer needs to be named, addressable, or installable.

Or, phrased another way:

- Delete `name` — never try to reference this as an npm package!
- Delete `version` — never think about versioning this file!
- Delete `license` — unread, duplicate of `LICENSE.md`.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D86869720
@meta-codesync meta-codesync bot closed this in 5df92e1 Nov 13, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 13, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 13, 2025

This pull request has been merged in 5df92e1.

@huntie huntie deleted the export-D86869720 branch November 13, 2025 16:08
@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by aab370b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants