From f6b5f25b220165801a2d455ebc7e8db7155b5a32 Mon Sep 17 00:00:00 2001 From: Simek Date: Fri, 12 Sep 2025 11:28:43 +0200 Subject: [PATCH 1/2] Define `files` array to exclude files in the published bundle --- package.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 396606773..a35b77839 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,17 @@ "source": "./src/", "types": "dist/index.d.ts", "react-native": "src/index", - "dependencies": {}, + "files": [ + "android", + "build", + "dist", + "ios", + "src", + "LICENSE", + "ReactNativeCameraKit.podspec" + ], "license": "MIT", + "dependencies": {}, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", From 90c8e6c4d2b3397e47dd78602d38470c92dc4038 Mon Sep 17 00:00:00 2001 From: Simek Date: Fri, 12 Sep 2025 11:36:48 +0200 Subject: [PATCH 2/2] LICENSE file is always automatically included --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index a35b77839..a24c1bf5f 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "dist", "ios", "src", - "LICENSE", "ReactNativeCameraKit.podspec" ], "license": "MIT",