File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/react-native-compatibility-check Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @react-native/compatibility-check" ,
3
3
"version" : " 0.79.0-main" ,
4
+ "private" : true ,
4
5
"description" : " Check a React Native app's boundary between JS and Native for incompatibilities" ,
5
6
"license" : " MIT" ,
6
7
"repository" : {
Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ const isMainBranch = ({Yarn}) => {
60
60
* @param {Context } context
61
61
*/
62
62
function enforcePrivateReactNativeScopedPackages ( { Yarn} ) {
63
- for ( const dependency of Yarn . dependencies ( ) ) {
64
- if ( dependency . ident . startsWith ( '@react-native/' ) ) {
65
- Yarn . workspace ( { ident : dependency . ident } ) ? .set ( 'private' , true ) ;
63
+ for ( const workspace of Yarn . workspaces ( ) ) {
64
+ if ( workspace . ident ? .startsWith ( '@react-native/' ) && ! PACKAGES_TO_IGNORE . includes ( workspace . ident ) ) {
65
+ workspace . set ( 'private' , true ) ;
66
66
}
67
- }
67
+ }
68
68
}
69
69
70
70
/**
You can’t perform that action at this time.
0 commit comments