fix(typebox-validator): Fix @hono/typebox-validator, when imported as esm, transiently importing typebox as cjs (#942)
parent
6691c0e28e
commit
63508a56bb
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/typebox-validator': patch
|
||||
---
|
||||
|
||||
Fix transiently importing typebox as cjs even when typebox-validator imported as esm
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue