fix(typebox-validator): Fix @hono/typebox-validator, when imported as esm, transiently importing typebox as cjs (#942)

pull/945/head
Christopher Fraser 2025-01-23 12:51:53 +11:00 committed by GitHub
parent 6691c0e28e
commit 63508a56bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/typebox-validator': patch
---
Fix transiently importing typebox as cjs even when typebox-validator imported as esm

View File

@ -11,7 +11,7 @@
"scripts": {
"test": "jest",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
"build": "rimraf dist && yarn build:cjs && yarn build:esm",
"prerelease": "yarn build && yarn test",
"release": "yarn publish"
@ -36,4 +36,4 @@
"jest": "^29.7.0",
"rimraf": "^5.0.5"
}
}
}