Skip to content

React native square in app payments contains invalid package.json and requires this patch to work #262

Description

@FurySwordXD

Here's a patch-package patch to fix the issue:

diff --git a/node_modules/react-native-square-in-app-payments/package.json b/node_modules/react-native-square-in-app-payments/package.json
index 7617121..724ba4b 100644
--- a/node_modules/react-native-square-in-app-payments/package.json
+++ b/node_modules/react-native-square-in-app-payments/package.json
@@ -2,13 +2,13 @@
   "name": "react-native-square-in-app-payments",
   "version": "2.0.0",
   "description": "An open source React Native plugin for calling Square’s native In-App Payments SDK to take in-app payments on iOS and Android.",
-  "main": "./lib/module/index.js",
-  "types": "./lib/typescript/src/index.d.ts",
+  "main": "./src/index.ts",
+  "types": "./src/types/index.ts",
   "exports": {
     ".": {
       "source": "./src/index.tsx",
-      "types": "./lib/typescript/src/index.d.ts",
-      "default": "./lib/module/index.js"
+      "types": "./src/types/index.ts",
+      "default": "./src/index.ts"
     },
     "./package.json": "./package.json",
     "./app.plugin.js": "./app.plugin.js"

Originally posted by @todesignandconquer in #259

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions