From b1e2e5a68ef41040fd80d40230b185be94e5b2bc Mon Sep 17 00:00:00 2001 From: Simek Date: Mon, 23 Mar 2026 09:34:14 -0700 Subject: [PATCH] Do not include test files in `gradle-plugin` bundle (#56193) Summary: While analysing dependency trees of several React Native libraries I have spotted that `react-native/gradle-plugin` package bundle includes test files. This PR adds the exclude rule in package.json `files` array which prevents from adding test files to the dist. ## Changelog: [INTERNAL] [CHANGED] - Do not include test files in `react-native/gradle-plugin` package bundle Pull Request resolved: https://github.com/facebook/react-native/pull/56193 Test Plan: ``` npm pack --dry-run ``` ### Before Screenshot 2026-03-23 at 13 46 43 ### After Screenshot 2026-03-23 at 13 46 59 Reviewed By: christophpurrer Differential Revision: D97753123 Pulled By: cortinico fbshipit-source-id: 98b614115fca56b9abcbbd54109053689805b175 --- packages/gradle-plugin/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gradle-plugin/package.json b/packages/gradle-plugin/package.json index 2546a9aa433..1906aefbd29 100644 --- a/packages/gradle-plugin/package.json +++ b/packages/gradle-plugin/package.json @@ -31,6 +31,7 @@ "gradlew.bat", "README.md", "react-native-gradle-plugin", + "!react-native-gradle-plugin/src/test", "settings-plugin", "shared", "shared-testutil"