From fd4967d0120cd20af66506b3b3c69ad226bda6fc Mon Sep 17 00:00:00 2001 From: Kuray Date: Sat, 15 Aug 2026 19:47:25 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20packaging=20hygiene=20=E2=80=94=20add=20?= =?UTF-8?q?peers,=20types/exports=20map,=20files=20whitelist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The published tarball shipped both v5-example/ and v6-example/ apps (gradle wrappers, Podfile.locks, yarn.lock, debug keystore), .husky, .idea and dotfiles. react/react-native were missing from peers. Added a files whitelist (build/dist only), react/react-native peers next to the existing @react-navigation/native peer, and an explicit types + exports map. Version set to 2.3.2 since npm already has 2.3.1 while the repo said 2.3.0. No source changes. --- package.json | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2bf753f..e17448d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-navigation-helpers", - "version": "2.3.0", + "version": "2.3.2", "description": "Easy to use React Navigation with these helpers for React Navigation on React Native", "keywords": [ "v5", @@ -23,11 +23,28 @@ "homepage": "https://www.freakycoder.com", "bugs": "https://github.com/WrathChaos/react-navigation-helpers/issues", "main": "./build/dist/NavigationService.js", + "types": "./build/dist/NavigationService.d.ts", + "exports": { + ".": { + "types": "./build/dist/NavigationService.d.ts", + "default": "./build/dist/NavigationService.js" + }, + "./package.json": "./package.json" + }, + "files": [ + "build/dist", + "!build/dist/build", + "!build/dist/lib", + "!build/dist/package.json", + "!build/dist/tsconfig.tsbuildinfo" + ], "repository": "git@github.com:WrathChaos/react-navigation-helpers.git", "author": "Kuray (FreakyCoder) ", "license": "MIT", "peerDependencies": { - "@react-navigation/native": ">= 4.x.x" + "@react-navigation/native": ">= 4.x.x", + "react": ">=17.0.0", + "react-native": ">=0.64.0" }, "devDependencies": { "@commitlint/cli": "^19.3.0",