Skip to content

Commit

Permalink
fix issue denoland#228
Browse files Browse the repository at this point in the history
  • Loading branch information
Macil committed Dec 19, 2022
1 parent 57fbda4 commit af24076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/package_json.ts
Expand Up @@ -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;
Expand Down

0 comments on commit af24076

Please sign in to comment.