From bcb01b4029449fe8cb7a625d3e78b9c69b019ec8 Mon Sep 17 00:00:00 2001 From: Tim Shamilov Date: Tue, 27 Jun 2023 21:02:31 -0400 Subject: [PATCH] chore: add react native compat --- packages/ipfs-unixfs-exporter/package.json | 5 +++++ packages/ipfs-unixfs-importer/package.json | 4 ++++ packages/ipfs-unixfs/package.json | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/packages/ipfs-unixfs-exporter/package.json b/packages/ipfs-unixfs-exporter/package.json index a051d914..a39c3141 100644 --- a/packages/ipfs-unixfs-exporter/package.json +++ b/packages/ipfs-unixfs-exporter/package.json @@ -26,6 +26,11 @@ "!dist/test", "!**/*.tsbuildinfo" ], + "react-native": { + "index": "./dist/src/index.js", + "fs": false, + "readable-stream": false + }, "exports": { ".": { "types": "./dist/src/index.d.ts", diff --git a/packages/ipfs-unixfs-importer/package.json b/packages/ipfs-unixfs-importer/package.json index d2c9585d..bcdc0d49 100644 --- a/packages/ipfs-unixfs-importer/package.json +++ b/packages/ipfs-unixfs-importer/package.json @@ -42,6 +42,10 @@ "!dist/test", "!**/*.tsbuildinfo" ], + "react-native": { + "fs": false, + "index": "./dist/src/index.js" + }, "exports": { ".": { "types": "./dist/src/index.d.ts", diff --git a/packages/ipfs-unixfs/package.json b/packages/ipfs-unixfs/package.json index e38eec14..192285dc 100644 --- a/packages/ipfs-unixfs/package.json +++ b/packages/ipfs-unixfs/package.json @@ -26,6 +26,10 @@ "!dist/test", "!**/*.tsbuildinfo" ], + "react-native": { + "index": "./dist/src/index.js", + "fs": false + }, "exports": { ".": { "types": "./dist/src/index.d.ts",