Skip to content

Commit

Permalink
fix: add types export definition for lib/locales/*
Browse files Browse the repository at this point in the history
This change fixes an issue that prevented Zod from being build and
served through the Skypack CDN. Namely, Skypack was unable to resolve
the declaration file `lib/locales/en.d.ts` because it was not exposed by
the `exports` definition in `package.json`.
  • Loading branch information
disintegrator committed Aug 10, 2024
1 parent 1b38419 commit 0542198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
"import": "./lib/index.mjs"
},
"./package.json": "./package.json",
"./locales/*": "./lib/locales/*"
"./locales/*": {
"types": "./lib/locales/*.d.ts",
"require": "./lib/locales/*.js"
}
},
"bugs": {
"url": "https://github.com/colinhacks/zod/issues"
Expand Down

0 comments on commit 0542198

Please sign in to comment.