From a0589210ab62dda31d5fde9e51610483e83c3ac0 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Wed, 3 Jul 2024 00:57:03 +0200 Subject: [PATCH] fix: exports configuration --- packages/next/package.json | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/next/package.json b/packages/next/package.json index d855dff..0b23d2f 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -3,9 +3,9 @@ "version": "1.3.0", "description": "Geist is a new font family for Vercel, created by Vercel in collaboration with Basement Studio.", "main": "./dist/font.js", + "type": "module", "module": "./dist/font.js", - "typings": "font.d.ts", - "types": "font.d.ts", + "types": "./font.d.ts", "scripts": { "prepare": "cp ../../LICENSE.TXT ." }, @@ -26,29 +26,24 @@ ], "exports": { "./font": { - "import": "./dist/font.js", - "require": "./dist/font.js", - "default": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/font.js" }, "./font/mono": { - "import": "./dist/mono.js", - "require": "./dist/mono.js", - "default": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/mono.js" }, "./font/mono-non-variable": { - "import": "./dist/mono-non-variable.js", - "require": "./dist/mono-non-variable.js", - "default": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/mono-non-variable.js" }, "./font/sans": { - "import": "./dist/sans.js", - "require": "./dist/sans.js", - "default": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/sans.js" }, "./font/sans-non-variable": { - "import": "./dist/sans-non-variable.js", - "require": "./dist/sans-non-variable.js", - "default": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "default": "./dist/sans-non-variable.js" } }, "license": "SIL OPEN FONT LICENSE",