Skip to content

Remove name and metadata from root package.json#54521

Closed
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D86869720
Closed

Remove name and metadata from root package.json#54521
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D86869720

Conversation

@huntie

@huntie huntie commented Nov 12, 2025

Copy link
Copy Markdown
Member

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

meta-codesync Bot commented Nov 12, 2025

Copy link
Copy Markdown

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

…4519)

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

meta-codesync Bot commented Nov 13, 2025

Copy link
Copy Markdown

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
Copy Markdown
Contributor

This pull request has been reverted by aab370b.

douglowder pushed a commit to react-native-tvos/react-native-tvos that referenced this pull request Nov 15, 2025
Summary:
Pull Request resolved: react/react-native#54521

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

fbshipit-source-id: dcc5fd33bb8c2354d94306e3fb37bbae3f4af43e
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