mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove name and metadata from root package.json (#54521)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
1ab5cb67be
commit
5df92e1843
2 files changed
+1
-4
No files matched your search
@@ -89,7 +89,7 @@ async function setVersion(
|
||||
...Object.values(packages),
|
||||
];
|
||||
|
||||
// Update all workspace packages
|
||||
// Update dependency versions in workspace packages
|
||||
await Promise.all(
|
||||
packagesToUpdate.map(pkg => updatePackageJson(pkg, newPackageVersions)),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user