From b1a81024071e688cb4168c81047ac97febb91691 Mon Sep 17 00:00:00 2001 From: Mouadh HSOUMI Date: Fri, 21 Jun 2024 11:10:58 +0200 Subject: [PATCH] feat(core, frameworks-express): Add default exports to package.json for better module support --- packages/core/package.json | 15 ++++++++++----- packages/frameworks-express/package.json | 6 ++++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 7d76069b96..c1c7340c7e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -35,26 +35,31 @@ "exports": { ".": { "types": "./index.d.ts", - "import": "./index.js" + "import": "./index.js", + "default": "./index.js" }, "./adapters": { "types": "./adapters.d.ts", - "import": "./adapters.js" + "import": "./adapters.js", + "default": "./adapters.js" }, "./errors": { "types": "./errors.d.ts", - "import": "./errors.js" + "import": "./errors.js", + "default": "./errors.js" }, "./jwt": { "types": "./jwt.d.ts", - "import": "./jwt.js" + "import": "./jwt.js", + "default": "./jwt.js" }, "./providers": { "types": "./providers/index.d.ts" }, "./providers/*": { "types": "./providers/*.d.ts", - "import": "./providers/*.js" + "import": "./providers/*.js", + "default": "./providers/*.js" }, "./types": { "types": "./types.d.ts" diff --git a/packages/frameworks-express/package.json b/packages/frameworks-express/package.json index b846859954..938928d87f 100644 --- a/packages/frameworks-express/package.json +++ b/packages/frameworks-express/package.json @@ -13,7 +13,8 @@ "exports": { ".": { "types": "./index.d.ts", - "import": "./index.js" + "import": "./index.js", + "default": "./index.js" }, "./providers": { "types": "./providers/index.d.ts" @@ -23,7 +24,8 @@ }, "./providers/*": { "types": "./providers/*.d.ts", - "import": "./providers/*.js" + "import": "./providers/*.js", + "default": "./providers/*.js" }, "./package.json": "./package.json" },