-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Tests moved from Libraries to src/private are now being published in the NPM package #43242
Comments
|
Yup this is a regression, to some extent.
We do use Do we need this to be backported to 0.74 @jonthysell ? |
1 similar comment
Yup this is a regression, to some extent.
We do use Do we need this to be backported to 0.74 @jonthysell ? |
Ping here @jonthysell as we need to know if this needs to go inside RC3 or not 👍 |
@cortinico It would be good to get into 0.74 but I don't think it's a high priority. We haven't even snapped RNW's 0.74 yet, and our workaround was to add that folder to ignore in our .flowconfig to fix the flow checks. Having the files present doesn't seem to have any other side-effects for us AFAIK. |
Description
It looks like some part of the NPM publish process filters out the
__tests__
folders withinreact-native/Libraries
from being published. It's not filtered in thepackage.json
AFAIK, so maybe in some script?Anyway, when moving files to
src/private
(particularly insrc/private/webapis/dom/oldstylecollections/
) that filtering is no longer being applied, so those test files are now being published.This probably isn't a problem for most, but downstream in
react-native-windows
this breaks our validation as flow checks fail for those files. We're trying to catch up so we can publish 0.74. We're hitting the issue here, integrating to0.74.0-nightly-20240122-4e92f87df
in this PR: microsoft/react-native-windows#12761Example:
Steps to reproduce
React Native Version
0.74.0.rc.1
Affected Platforms
Build - Windows
Output of
npx react-native info
Stacktrace or Logs
Reproducer
microsoft/react-native-windows#12761
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: