fix(clerk-auth): export esm (#460)

* fix(clerk-auth): export esm

* update extension of `jest.config`
pull/462/head
Hadeeb Farhan 2024-04-19 05:30:06 +05:30 committed by GitHub
parent 0bf53d18b9
commit 6497f5772f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/clerk-auth': patch
---
fix: export esm

View File

@ -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"
}
}

View File

@ -1824,7 +1824,7 @@ __metadata:
jest: "npm:^29.7.0"
node-fetch-native: "npm:^1.4.0"
react: "npm:^18.2.0"
rimraf: "npm:^5.0.5"
tsup: "npm:^8.0.1"
peerDependencies:
"@clerk/backend": 0.30.*
hono: ">=3.*"