diff --git a/package.json b/package.json index 4a734bf..6d986c8 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.d.ts", + "import": "./dist/cache-tags.js" + } }, - "type": "module", "scripts": { "build": "tsc", "lint": "eslint src",