-
Notifications
You must be signed in to change notification settings - Fork 24.8k
'[skip ci] [RN] Replace .npmignore files, ignore all test/fixture/docs directories #50784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Differential Revision: D73031559
…s directories Summary: Migrates us from several files to , for the main package. This reduces the size of our npm package by 38 files — in particular, catching previously missed and directories. NOTE: or — one or the other! - Having at the package root does not behave(!). Having as one source of truth is better and safer. See npm/cli#6221. Changelog: [Internal] Differential Revision: D73185321
This pull request was exported from Phabricator. Differential Revision: D73185321 |
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Apr 17, 2025
Summary: Follows facebook#50784. Having any `.npmignore` files is a gotcha — remove and replace with `package.json#files`. Changelog: [Internal] Differential Revision: D73193257
This pull request has been merged in d1cf584. |
This pull request was successfully merged by @huntie in d1cf584 When will my fix make it into a release? | How to file a pick request? |
uffoltzl
pushed a commit
to uffoltzl/react-native
that referenced
this pull request
Apr 18, 2025
…acebook#50784) Summary: Pull Request resolved: facebook#50784 Migrates us from several `.npmignore` files to `package.json#files`, for the main `react-native` package. This reduces the size of our npm package by 38 files — in particular, catching previously missed `__tests__` and `__docs__` directories. ```diff - npm notice package size: 4.4 MB - npm notice unpacked size: 23.7 MB - npm notice total files: 4533 + npm notice package size: 4.4 MB + npm notice unpacked size: 23.7 MB + npm notice total files: 4533 ``` NOTE: `"files"` or `.npmignore` — one or the other! - Having `.npmignore` at the package root does not behave(!). Having `"files"` as one source of truth is better and safer. See npm/cli#6221. Changelog: [Internal] Reviewed By: hoxyq Differential Revision: D73185321 fbshipit-source-id: 429c9fec4f447d63440a38bb8e3f3ce3bd155414
uffoltzl
pushed a commit
to uffoltzl/react-native
that referenced
this pull request
Apr 18, 2025
…#50786) Summary: Pull Request resolved: facebook#50786 Follows facebook#50784. Having any `.npmignore` files is a gotcha — remove and replace with `package.json#files`. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D73193257 fbshipit-source-id: de715d74195e4f53c817c11f244a61c79b8ce5bc
huntie
added a commit
to huntie/react-native
that referenced
this pull request
May 22, 2025
Summary: Alternative to facebook#50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731
huntie
added a commit
to huntie/react-native
that referenced
this pull request
May 22, 2025
Summary: Pull Request resolved: facebook#51530 Alternative to facebook#50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731
facebook-github-bot
pushed a commit
that referenced
this pull request
May 22, 2025
Summary: Pull Request resolved: #51530 Alternative to #50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731 fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571
mdjastrzebski
pushed a commit
to mdjastrzebski/react-native
that referenced
this pull request
Jun 11, 2025
Summary: Pull Request resolved: facebook#51530 Alternative to facebook#50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731 fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571 # Conflicts: # packages/react-native/jest/setup.js
fabriziocucci
pushed a commit
that referenced
this pull request
Jun 23, 2025
Summary: Pull Request resolved: #51530 Alternative to #50784. `__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating. Changelog: [General][Fixed] - Fix missing RefreshControlMock source in Jest preset Reviewed By: rshest Differential Revision: D75215731 fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Jul 21, 2025
Summary: Changelog: [Internal] (Follow up to keep facebook#50784 non-breaking) Differential Revision: D78662770
facebook-github-bot
pushed a commit
that referenced
this pull request
Jul 21, 2025
react-native-bot
pushed a commit
that referenced
this pull request
Jul 28, 2025
kikoso
pushed a commit
to kikoso/react-native
that referenced
this pull request
Aug 26, 2025
Summary: Pull Request resolved: facebook#52735 Changelog: [Internal] (Follow up to keep facebook#50784 non-breaking) Reviewed By: cortinico Differential Revision: D78662770 fbshipit-source-id: 03d931c904c0092481dbd03e8420244639305610
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.
p: Facebook
Partner: Facebook
Partner
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Migrates us from several
.npmignore
files topackage.json#files
, for the mainreact-native
package.This reduces the size of our npm package by 38 files — in particular, catching previously missed
__tests__
and__docs__
directories.Note
"files"
or.npmignore
or — one or the other!Having at the package root does not behave(!). Having as one source of truth is better and safer. See npm/cli#6221.
Changelog: [Internal]
Differential Revision: D73185321