From 98cce1275cd5526fd84b07f76072e15c99c7bddc Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Tue, 16 Aug 2022 21:33:09 +0200 Subject: [PATCH] add types entry --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9faec549..c159d04d 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,17 @@ "umd:main": "dist/index.js", "module": "dist/index.module.js", "jsnext:main": "dist/index.module.js", + "typings": "src/index.d.ts", + "types": "src/index.d.ts", "exports": { ".": { + "types": "./src/index.d.ts", "import": "./dist/index.mjs", "browser": "./dist/index.module.js", "require": "./dist/index.js" }, "./jsx": { + "types": "./jsx.d.ts", "import": "./dist/jsx.mjs", "browser": "./dist/jsx.module.js", "require": "./dist/jsx.js" @@ -91,7 +95,6 @@ }, "author": "Jason Miller ", "license": "MIT", - "typings": "src/index.d.ts", "repository": "developit/preact-render-to-string", "bugs": "https://github.com/developit/preact-render-to-string/issues", "homepage": "https://github.com/developit/preact-render-to-string",