From 22586ae057f737a360c87be1b0f53cccb57b7e35 Mon Sep 17 00:00:00 2001 From: nvsd Date: Thu, 11 Dec 2025 02:51:37 -0600 Subject: [PATCH] Fix default field in package.json Updated the 'default' field to include types which avoids import issues such as the below error: Could not find a declaration file for module '@lob/lob-typescript-sdk'. implicitly has an 'any' type. There are types at 'f/node_modules/@lob/lob-typescript-sdk/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@lob/lob-typescript-sdk' library may need to update its package.json or typings. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6658839..199f0df 100755 --- a/package.json +++ b/package.json @@ -51,7 +51,10 @@ "require": "./dist/index.cjs.js", "types": "./dist/index.d.ts" }, - "default": "./dist/index.mjs" + "default": { + "import": "./dist/index.mjs", + "types": "./dist/index.d.ts" + } }, "dependencies": { "axios": "^1.9.0",