fix(firebase-auth): export esm (#337)

* fix(firebase-auth): export esm

* add changeset
pull/338/head
Yusuke Wada 2024-01-03 12:14:06 +09:00 committed by GitHub
parent 42f9a1bd77
commit 75841d6b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 4 deletions

View File

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

View File

@ -2,7 +2,9 @@
"name": "@hono/firebase-auth",
"version": "1.3.3",
"description": "A third-party firebase 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"
@ -11,10 +13,23 @@
"start-firebase-emulator": "firebase emulators:start --project example-project12345",
"test-with-emulator": "firebase emulators:exec --project example-project12345 'vitest run'",
"test": "vitest run",
"build": "tsc",
"prerelease": "yarn build",
"build": "tsup ./src/index.ts --format esm,cjs --dts",
"publint": "publint",
"prerelease": "yarn build && arn publint",
"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",
"repository": {
"type": "git",
@ -38,7 +53,8 @@
"hono": "^3.11.7",
"miniflare": "^3.20231025.1",
"prettier": "^2.7.1",
"tsup": "^8.0.1",
"typescript": "^4.7.4",
"vitest": "^0.34.6"
}
}
}

View File

@ -1426,6 +1426,7 @@ __metadata:
hono: "npm:^3.11.7"
miniflare: "npm:^3.20231025.1"
prettier: "npm:^2.7.1"
tsup: "npm:^8.0.1"
typescript: "npm:^4.7.4"
vitest: "npm:^0.34.6"
peerDependencies: