From a89d77680dab7f0cfb2109ec09d81119deca63c8 Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Fri, 13 Oct 2023 17:13:43 +0100 Subject: [PATCH 1/3] fix: typescript export --- package.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1ba298d..8e5051d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-flickity-component", - "version": "4.0.6", + "version": "4.0.7", "description": "react flickity component", "files": [ "dist", @@ -10,8 +10,14 @@ "module": "./dist/react-flickity-component.es.js", "exports": { ".": { - "import": "./dist/react-flickity-component.es.js", - "require": "./dist/react-flickity-component.umd.js" + "import": { + "default": "./dist/react-flickity-component.es.js", + "types": "./src/index.d.ts" + }, + "require": { + "default": "./dist/react-flickity-component.umd.js", + "types": "./src/index.f.ts" + } } }, "scripts": { From 0e4651a01656f33cb43bfa93b201592c746de572 Mon Sep 17 00:00:00 2001 From: Yao Ding Date: Fri, 13 Oct 2023 12:55:21 -0400 Subject: [PATCH 2/3] use top level types --- package.json | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 8e5051d..b3e8ff1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-flickity-component", - "version": "4.0.7", + "version": "4.0.6", "description": "react flickity component", "files": [ "dist", @@ -9,15 +9,10 @@ "main": "./dist/react-flickity-component.umd.js", "module": "./dist/react-flickity-component.es.js", "exports": { - ".": { - "import": { - "default": "./dist/react-flickity-component.es.js", - "types": "./src/index.d.ts" - }, - "require": { - "default": "./dist/react-flickity-component.umd.js", - "types": "./src/index.f.ts" - } + ".": { + "types": "./src/index.d.ts", + "import": "./dist/react-flickity-component.es.js", + "require": "./dist/react-flickity-component.umd.js" } }, "scripts": { From dd31f4a5056311da94e0ac6dddfb95de9957c5ac Mon Sep 17 00:00:00 2001 From: Yao Ding Date: Fri, 13 Oct 2023 12:55:40 -0400 Subject: [PATCH 3/3] format --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b3e8ff1..756c481 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "main": "./dist/react-flickity-component.umd.js", "module": "./dist/react-flickity-component.es.js", "exports": { - ".": { + ".": { "types": "./src/index.d.ts", "import": "./dist/react-flickity-component.es.js", "require": "./dist/react-flickity-component.umd.js"