From 161da64a84b59ddcef74725e5efedc9cb924614d Mon Sep 17 00:00:00 2001 From: Ross Gardiner Date: Thu, 11 Aug 2022 10:05:50 +0200 Subject: [PATCH] Fix exports map for TypeScript (#1655) * Update exports map in `framer-motion` * Fix exports map in `framer-motion-3d` --- packages/framer-motion-3d/package.json | 6 ++---- packages/framer-motion/package.json | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/framer-motion-3d/package.json b/packages/framer-motion-3d/package.json index 2b508ef7c6..32203e0085 100644 --- a/packages/framer-motion-3d/package.json +++ b/packages/framer-motion-3d/package.json @@ -6,11 +6,9 @@ "module": "dist/es/index.mjs", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/cjs/index.js", - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/es/index.mjs" - }, + "import": "./dist/es/index.mjs", "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" diff --git a/packages/framer-motion/package.json b/packages/framer-motion/package.json index c7fd7fb64a..f73fb622a0 100644 --- a/packages/framer-motion/package.json +++ b/packages/framer-motion/package.json @@ -6,11 +6,9 @@ "module": "dist/es/index.mjs", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/cjs/index.js", - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/es/index.mjs" - }, + "import": "./dist/es/index.mjs", "default": "./dist/cjs/index.js" }, "./package.json": "./package.json"