From de0ab59582d5654ea406546c3ccd120c48cf140f Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Sun, 26 Dec 2021 02:43:06 +0800 Subject: [PATCH] Fix types field to be compatible with nodenext module resolution See https://github.com/microsoft/TypeScript/issues/46770#issuecomment-966612103 for detail, in `nodenext` module resolution it requires a full filename including extension --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index fb090d4..7001c60 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "email": "sindresorhus@gmail.com", "url": "https://sindresorhus.com" }, + "types": "index.d.ts", "engines": { "node": ">=6" },