Skip to content

Extend check-packages-test to validate additional required fields (#57510)#57510

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

Extend check-packages-test to validate additional required fields (#57510)#57510
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D111471314

Conversation

@huntie

@huntie huntie commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary:

Extend check-packages-test.js to catch two more classes of manifest drift: published packages missing required fields, and packages under private/ missing the private flag.

Motivation

Inspired by react-native-community/template#241 — avoid a missing field blocking a future RN package publish.

Other changes

  • To satisfy the new files requirement, add an explicit files allowlist to the four config packages that lacked one. As a side effect, this saves some __tests__ files from being distributed.

Changelog: [Internal]

Differential Revision: D111471314

Summary:
Simplify/unify various mechanisms for the monorepo's package invariants.

These checks were previously scattered:
- `private/monorepo-tests` package (manifest field checks)
- `.github/workflow-scripts/lint_files.sh` (`.npmignore` ban)
- `react-native/eslint-plugin-monorepo` (manifest field checks — duplicated)

This folds everything into `scripts/monorepo-tests/__tests__/check-packages-test.js`. A plain Jest test is the most extensible home for future checks.

We also drop the `jsonc-eslint-parser` dependency.

Changelog: [Internal]

Differential Revision: D111471313
@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 Jul 10, 2026
@meta-codesync

meta-codesync Bot commented Jul 10, 2026

Copy link
Copy Markdown

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

huntie added a commit to huntie/react-native that referenced this pull request Jul 10, 2026
…act#57510)

Summary:
Pull Request resolved: react#57510

Extend `check-packages-test.js` to catch two more classes of manifest drift: published packages missing required fields, and packages under `private/` missing the `private` flag.

**Motivation**

Inspired by react-native-community/template#241 — avoid a missing field blocking a future RN package publish.

**Other changes**

- To satisfy the new `files` requirement, add an explicit `files` allowlist to the four config packages that lacked one. As a side effect, this saves some `__tests__`  files from being distributed.

Changelog: [Internal]

Differential Revision: D111471314
@huntie huntie force-pushed the export-D111471314 branch from f401cbb to e7a03b2 Compare July 10, 2026 18:03
@meta-codesync meta-codesync Bot changed the title Extend check-packages-test to validate additional required fields Extend check-packages-test to validate additional required fields (#57510) Jul 10, 2026
…act#57510)

Summary:
Pull Request resolved: react#57510

Extend `check-packages-test.js` to catch two more classes of manifest drift: published packages missing required fields, and packages under `private/` missing the `private` flag.

**Motivation**

Inspired by react-native-community/template#241 — avoid a missing field blocking a future RN package publish.

**Other changes**

- To satisfy the new `files` requirement, add an explicit `files` allowlist to the four config packages that lacked one. As a side effect, this saves some `__tests__`  files from being distributed.

Changelog: [Internal]

Differential Revision: D111471314
@huntie huntie force-pushed the export-D111471314 branch from e7a03b2 to 9a77d4b Compare July 10, 2026 18:09

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 042833e Jul 10, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 10, 2026
@meta-codesync

meta-codesync Bot commented Jul 10, 2026

Copy link
Copy Markdown

This pull request has been merged in 042833e.

@huntie huntie deleted the export-D111471314 branch July 10, 2026 19:31
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. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants