fix(zod-validator): fix commonjs import problem (#968)

* fix(zod-validator): fix commonjs import problem

* add changeset
pull/969/head
Yusuke Wada 2025-02-15 10:40:26 +09:00 committed by GitHub
parent 305f463cf6
commit b65d5a5861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 8 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/zod-validator': patch
---
fix: fix commonjs import problem

View File

@ -1,3 +0,0 @@
{
"type": "commonjs"
}

View File

@ -3,14 +3,13 @@
"version": "0.4.2", "version": "0.4.2",
"description": "Validator middleware using Zod", "description": "Validator middleware using Zod",
"type": "module", "type": "module",
"main": "dist/index.cjs", "main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"exports": { "exports": {
"./package.json": "./package.json",
".": { ".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js", "import": "./dist/index.js",
"require": "./dist/index.cjs" "default": "./dist/index.cjs"
} }
}, },
"files": [ "files": [