Closed jonthysell closed 7 months ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Yup this is a regression, to some extent.
It's not filtered in the package.json AFAIK, so maybe in some script?
We do use .npmignore
to filter those out.
Fix for this issue is here:
Do we need this to be backported to 0.74 @jonthysell ?
Yup this is a regression, to some extent.
It's not filtered in the package.json AFAIK, so maybe in some script?
We do use .npmignore
to filter those out.
Fix for this issue is here:
Do we need this to be backported to 0.74 @jonthysell ?
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 👍
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: https://github.com/microsoft/react-native-windows/pull/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
https://github.com/microsoft/react-native-windows/pull/12761
Screenshots and Videos
No response