From 0542198a1670433096555de2bdd5f0548c72fd4e Mon Sep 17 00:00:00 2001 From: Georges Haidar Date: Sat, 10 Aug 2024 16:56:01 +0000 Subject: [PATCH] fix: add types export definition for lib/locales/* 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`. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 639030673..a0216fb53 100644 --- a/package.json +++ b/package.json @@ -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"