From 0ef8a4c60d1ec25c93febc37bca2f7a7b9a5667b Mon Sep 17 00:00:00 2001 From: Moreno Feltscher Date: Thu, 12 Feb 2026 15:09:00 +0100 Subject: [PATCH 1/2] fix: use correct named exports --- package.json | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4a734bf..eaa9575 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,24 @@ "name": "@smartive/datocms-utils", "version": "1.0.0", "description": "A set of utilities and helpers to work with DatoCMS in a Next.js project.", - "source": "src/index.ts", - "main": "dist/index.js", + "type": "module", + "source": "./src/index.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "redis": "./dist/cache-tags-redis.js", - "postgres": "./dist/cache-tags.js" + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, + "./redis": { + "types": "./dist/cache-tags-redis.d.ts", + "import": "./dist/cache-tags-redis.js" + }, + "./postgres": { + "types": "./dist/cache-tags-postgres.d.ts", + "import": "./dist/cache-tags-postgres.js" + } }, - "type": "module", "scripts": { "build": "tsc", "lint": "eslint src", From 31685561aa2a191e29818b48234577f663c10d57 Mon Sep 17 00:00:00 2001 From: Moreno Feltscher Date: Thu, 12 Feb 2026 15:10:48 +0100 Subject: [PATCH 2/2] idefix --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eaa9575..6d986c8 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "import": "./dist/cache-tags-redis.js" }, "./postgres": { - "types": "./dist/cache-tags-postgres.d.ts", - "import": "./dist/cache-tags-postgres.js" + "types": "./dist/cache-tags.d.ts", + "import": "./dist/cache-tags.js" } }, "scripts": {