Skip to content

Commit

Permalink
fix(clerk-auth): export esm
Browse files Browse the repository at this point in the history
  • Loading branch information
hadeeb committed Mar 21, 2024
1 parent 6bdbf88 commit 75e42a5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-taxis-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hono/clerk-auth': patch
---

fix: export esm
20 changes: 17 additions & 3 deletions packages/clerk-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"
Expand Down

0 comments on commit 75e42a5

Please sign in to comment.