Skip to content

Commit 5c909b4

Browse files
authored
ci: mark unforked monorepo packages as private (#2483)
## Summary: It's not clear (both to humans and to build tools like `nx`) that the only packages we fork from the React Native monorepo upstream are ` 'react-native' --> 'react-native-macos'` and `'@react-native/virtualized-lists' --> '@react-native-mac/virtualized-lists'`. The rest of the packages should essentially only ever be used in local development, while the published package `react-native-macos` uses the upstream versions of these packages. We can solve this by marking the packages as private. ## Test Plan: IIRC, this caused some build failure last time I tried this.. let's see how CI reacts to this change. Further testing with `nx release` should be done locally to make sure the nx build graph stops marking the unforked monoreppo packages as dependencies.
1 parent c5ab90f commit 5c909b4

File tree

19 files changed

+19
-0
lines changed

19 files changed

+19
-0
lines changed

packages/assets/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/assets-registry",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Asset support code for React Native.",
56
"license": "MIT",
67
"repository": {

packages/babel-plugin-codegen/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/babel-plugin-codegen",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Babel plugin to generate native module and view manager code for React Native.",
56
"license": "MIT",
67
"repository": {

packages/community-cli-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/community-cli-plugin",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Core CLI commands for React Native",
56
"keywords": [
67
"react-native",

packages/core-cli-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/core-cli-utils",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "React Native CLI library for Frameworks to build on",
56
"license": "MIT",
67
"main": "./src/index.flow.js",

packages/debugger-frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/debugger-frontend",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Debugger frontend for React Native based on Chrome DevTools",
56
"keywords": [
67
"react-native",

packages/dev-middleware/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/dev-middleware",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Dev server middleware for React Native",
56
"keywords": [
67
"react-native",

packages/eslint-config-react-native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/eslint-config",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "ESLint config for React Native",
56
"license": "MIT",
67
"repository": {

packages/eslint-plugin-react-native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/eslint-plugin",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "ESLint rules for @react-native/eslint-config",
56
"license": "MIT",
67
"repository": {

packages/eslint-plugin-specs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/eslint-plugin-specs",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "ESLint rules to validate NativeModule and Component Specs",
56
"license": "MIT",
67
"repository": {

packages/gradle-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/gradle-plugin",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Gradle Plugin for React Native",
56
"license": "MIT",
67
"repository": {

packages/metro-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/metro-config",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Metro configuration for React Native.",
56
"license": "MIT",
67
"repository": {

packages/normalize-color/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/normalize-colors",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Color normalization for React Native.",
56
"license": "MIT",
67
"repository": {

packages/polyfills/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/js-polyfills",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Polyfills for React Native.",
56
"license": "MIT",
67
"repository": {

packages/react-native-babel-preset/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/babel-preset",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Babel preset for React Native applications",
56
"main": "src/index.js",
67
"repository": {

packages/react-native-babel-transformer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/metro-babel-transformer",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Babel transformer for React Native applications.",
56
"main": "src/index.js",
67
"repository": {

packages/react-native-codegen/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/codegen",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Code generation tools for React Native",
56
"license": "MIT",
67
"repository": {

packages/react-native-popup-menu-android/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/popup-menu-android",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "PopupMenu for the Android platform",
56
"main": "index.js",
67
"files": [

packages/typescript-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native/typescript-config",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Default TypeScript configuration for React Native apps",
56
"license": "MIT",
67
"repository": {

packages/virtualized-lists/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@react-native-mac/virtualized-lists",
33
"version": "0.77.0-main",
4+
"private": true,
45
"description": "Virtualized lists for React Native macOS.",
56
"license": "MIT",
67
"repository": {

0 commit comments

Comments
 (0)