From 662434d271daf6cf79f54df795f64b7348ac5483 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Mon, 25 Jul 2022 10:45:43 -0400 Subject: [PATCH] Support React Native @react-native-community/cli (used by expo and I *think* react native), parses package.json to determine package paths. This is necessary to build react native projects. See https://github.com/react-native-community/cli/issues/1168 for more details. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cd77039..a09693a 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "unpkg": "dist/d3-scale.min.js", "exports": { "umd": "./dist/d3-scale.min.js", - "default": "./src/index.js" + "default": "./src/index.js", + "./package.json": "./package.json" }, "sideEffects": false, "dependencies": {