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",
|
"name": "@hono/clerk-auth",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"description": "A third-party Clerk auth middleware for Hono",
|
"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",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"build": "rimraf dist && tsc",
|
"build": "tsup ./src/index.ts --format esm,cjs --dts",
|
||||||
"prerelease": "yarn build && yarn test",
|
"prerelease": "yarn build && yarn test",
|
||||||
"release": "yarn publish"
|
"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",
|
"license": "MIT",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "https://registry.npmjs.org",
|
"registry": "https://registry.npmjs.org",
|
||||||
|
@ -34,6 +48,6 @@
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"node-fetch-native": "^1.4.0",
|
"node-fetch-native": "^1.4.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"rimraf": "^5.0.5"
|
"tsup": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1824,7 +1824,7 @@ __metadata:
|
||||||
jest: "npm:^29.7.0"
|
jest: "npm:^29.7.0"
|
||||||
node-fetch-native: "npm:^1.4.0"
|
node-fetch-native: "npm:^1.4.0"
|
||||||
react: "npm:^18.2.0"
|
react: "npm:^18.2.0"
|
||||||
rimraf: "npm:^5.0.5"
|
tsup: "npm:^8.0.1"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@clerk/backend": 0.30.*
|
"@clerk/backend": 0.30.*
|
||||||
hono: ">=3.*"
|
hono: ">=3.*"
|
||||||
|
|
Loading…
Reference in New Issue