Skip to content

Commit

Permalink
fix(typebox-validator): Fix @hono/typebox-validator, when imported as…
Browse files Browse the repository at this point in the history
… esm, transiently importing typebox as cjs (#942)
  • Loading branch information
cfraz89 authored Jan 23, 2025
1 parent 6691c0e commit 63508a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-weeks-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hono/typebox-validator': patch
---

Fix transiently importing typebox as cjs even when typebox-validator imported as esm
4 changes: 2 additions & 2 deletions packages/typebox-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -36,4 +36,4 @@
"jest": "^29.7.0",
"rimraf": "^5.0.5"
}
}
}

0 comments on commit 63508a5

Please sign in to comment.