fix(clerk-auth): export esm (#460)
* fix(clerk-auth): export esm * update extension of `jest.config`pull/462/head
parent
0bf53d18b9
commit
6497f5772f
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/clerk-auth': patch
|
||||
---
|
||||
|
||||
fix: export esm
|
|
@ -2,17 +2,31 @@
|
|||
"name": "@hono/clerk-auth",
|
||||
"version": "1.0.1",
|
||||
"description": "A third-party Clerk auth middleware for Hono",
|
||||
"main": "dist/index.js",
|
||||
"type": "module",
|
||||
"main": "dist/index.cjs",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"build": "rimraf dist && tsc",
|
||||
"build": "tsup ./src/index.ts --format esm,cjs --dts",
|
||||
"prerelease": "yarn build && yarn test",
|
||||
"release": "yarn publish"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.cts",
|
||||
"default": "./dist/index.cjs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org",
|
||||
|
@ -34,6 +48,6 @@
|
|||
"jest": "^29.7.0",
|
||||
"node-fetch-native": "^1.4.0",
|
||||
"react": "^18.2.0",
|
||||
"rimraf": "^5.0.5"
|
||||
"tsup": "^8.0.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue