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 11{
22 "name" : " @react-native/compatibility-check" ,
33 "version" : " 0.79.0-main" ,
4+ "private" : true ,
45 "description" : " Check a React Native app's boundary between JS and Native for incompatibilities" ,
56 "license" : " MIT" ,
67 "repository" : {
Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ const isMainBranch = ({Yarn}) => {
6060 * @param {Context } context
6161 */
6262function 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 ) ;
6666 }
67- }
67+ }
6868}
6969
7070/**
You can’t perform that action at this time.
0 commit comments