From e29e3c3f7b996ee382bef4cb7ed1f85b5752cfc5 Mon Sep 17 00:00:00 2001 From: Anton Dosta Date: Sun, 2 Jun 2024 17:26:19 -0700 Subject: [PATCH] fix: resolved an issue where types were not being properly picked up in some ESM TS projects (resolves #62) --- package.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6e93985..a445d7c 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,19 @@ }, "main": "dist/index.js", "module": "dist/index.mjs", - "types": "dist/index.d.ts", "exports": { ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, + "types": "dist/index.d.ts", "keywords": [ "apify", "sqlite",