From 54fe059370fb30d5f4d49cfc3f8e181f225c0fb7 Mon Sep 17 00:00:00 2001 From: Sina Ahmadi <14019938+tanacosa@users.noreply.github.com> Date: Sun, 14 Jun 2026 20:17:05 +0200 Subject: [PATCH] Add ./dist/* subpath to package exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node and Deno enforce the package exports field: any subpath not listed is rejected with ERR_PACKAGE_PATH_NOT_EXPORTED. With only "." exported, deep imports of compiled modules are blocked — which prevents consumers from reaching classes that are not re-exported from the index (e.g. subclassing CustomerOrderInteraction for a custom order) and breaks Deno-based runtimes (edge functions, Deno Deploy, Cloudflare Workers with Node compat) that have no node_modules to fall back on. Adding "./dist/*": "./dist/*" exposes the built output by deep path while leaving the "." entry untouched, so existing 'lib-fints' imports are unaffected. Verified by packing the tarball and importing it as a consumer: the root import keeps resolving and the previously blocked deep imports now resolve. Co-Authored-By: Claude Opus 4.8 (1M context) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8138658..b3fb1ca 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "types": "./dist/types/index.d.ts", "default": "./dist/index.js" } - } + }, + "./dist/*": "./dist/*" }, "scripts": { "build": "rm -rf ./dist && tsc",