From af240763b33387630fd08a7c223551c19ee3078f Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Sun, 18 Dec 2022 21:06:39 -0800 Subject: [PATCH] fix issue #228 --- lib/package_json.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package_json.ts b/lib/package_json.ts index a46f97c..a79101b 100644 --- a/lib/package_json.ts +++ b/lib/package_json.ts @@ -129,10 +129,10 @@ export function getPackageJson({ function getPathOrTypesObject(path: string) { if (includeDeclarations) { return { - default: path, types: (e.name === "." ? packageJsonObj.types : undefined) ?? `./types/${e.types}`, + default: path, }; } else { return path;