From 7e02a9265acba7159eb0b39fd83e2761668388f0 Mon Sep 17 00:00:00 2001 From: Kuray Date: Sat, 15 Aug 2026 19:56:05 +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 react and react-native peers were missing and are now declared; react-native-text-input-interactive is genuinely imported and stays in dependencies. The published tarball shipped .idea, .husky, .github, dotfiles, TypeScript sources and tsbuildinfo; a files whitelist restricts the package to the build directory. A types + exports map is added, types condition first. --- package.json | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ee0bc28..9910ad3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-login-screen", - "version": "5.0.0", + "version": "5.0.1", "description": "Fully Customizable & Ready to use Login Screen for React Native", "keywords": [ "login", @@ -58,5 +58,22 @@ "copy:package": "cpx '../package.json' '../build/dist/'", "husky:lint": "npx husky add .husky/pre-commit 'npm run lint'", "husky:prettier": "npx husky set .husky/pre-commit 'npm run prettier'" - } + }, + "peerDependencies": { + "react": ">=17.0.0", + "react-native": ">=0.64.0" + }, + "types": "./build/dist/index.d.ts", + "exports": { + ".": { + "types": "./build/dist/index.d.ts", + "default": "./build/dist/index.js" + }, + "./package.json": "./package.json" + }, + "files": [ + "build", + "!build/dist/package.json", + "!build/dist/tsconfig.tsbuildinfo" + ] }