From bbc28ce27749d0e1418f5c8d9ac3a02afa6daf2d Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Thu, 15 Apr 2021 20:30:23 -0500 Subject: [PATCH] chore: Add typesVersions to package.json This is an attempt to fix issues with VS Code auto-import, as described here in this issue: https://github.com/microsoft/TypeScript/issues/43034\#issuecomment-820621280 Related #6067 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 816f214cfd..ab2c5b527b 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "module": "./dist/esm5/index.js", "es2015": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", + "typesVersions": { + ">=4.0": { "*": [ "dist/types/*" ] } + }, "sideEffects": false, "exports": { ".": {