fix: Package does not contain valid config plugin

This commit is contained in:
Lethe 2025-11-01 19:40:26 +09:00
parent 1cc3830f37
commit 39114342fd
2 changed files with 32 additions and 28 deletions

View File

@ -1,11 +1,33 @@
{
"name": "react-native-capture-protection",
"version": "2.3.2",
"version": "2.3.3",
"description": "🛡️ A React Native library to prevent and detect for screen capture, screenshots and app switcher for enhanced security. Fully compatible with both Expo and CLI.",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
"types": "./lib/typescript/commonjs/index.d.ts",
"source": "src/index",
"types": "./lib/typescript/index.d.ts",
"exports": {
".": {
"react-native": {
"types": "./lib/typescript/index.d.ts",
"default": "./lib/module/index.js"
},
"module": {
"types": "./lib/typescript/index.d.ts",
"default": "./lib/module/index.js"
},
"module-sync": {
"types": "./lib/typescript/index.d.ts",
"default": "./lib/module/index.js"
},
"default": {
"types": "./lib/typescript/index.d.ts",
"default": "./lib/commonjs/index.js"
}
},
"./package.json": "./package.json",
"./app.plugin.js": "./app.plugin.js",
"./plugins/withPlugin": "./plugins/withPlugin.js"
},
"files": [
"app.plugin.js",
"plugins",
@ -67,9 +89,9 @@
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"expo": "^51.0.39",
"expo-dev-client": ">=5.2.1",
"expo-module-scripts": ">=3.0.0",
"expo-dev-client": "~5.2.1",
"expo-module-scripts": "^3.0.0",
"expo": ">=47",
"jest": "^28.1.1",
"pod-install": "^0.1.0",
"prettier": "^2.0.5",
@ -81,20 +103,16 @@
"typescript": "^4.5.2"
},
"resolutions": {
"@react": "17.0.21"
"react": "^18"
},
"peerDependencies": {
"expo": ">=47.0.0",
"react": "*",
"react-native": "*",
"expo-dev-client": ">=5.0.0"
"react-native": "*"
},
"peerDependenciesMeta": {
"expo": {
"optional": true
},
"expo-dev-client": {
"optional": true
}
},
"engines": {
@ -157,18 +175,8 @@
"source": "src",
"output": "lib",
"targets": [
[
"module",
{
"esm": true
}
],
[
"commonjs",
{
"esm": true
}
],
"module",
"commonjs",
"typescript"
]
},

View File

@ -4,8 +4,6 @@
"build:android": {
"inputs": [
"package.json",
"plugins",
"app.plugin.js",
"android",
"!android/build",
"src/*.ts",
@ -22,8 +20,6 @@
"inputs": [
"package.json",
"*.podspec",
"plugins",
"app.plugin.js",
"ios",
"src/*.ts",
"src/*.tsx",