fix(oidc-auth): Fix "yarn release" for Yarn v4 / Build ESM only (#386)

pull/387/head
Yoshio HANAWA 2024-02-13 23:20:36 +09:00 committed by GitHub
parent 4d8389a8c7
commit fda62dea37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 6 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/oidc-auth': patch
---
Fix "yarn release" and fix npm package

View File

@ -29,6 +29,7 @@
"build:auth-js": "yarn workspace @hono/auth-js build",
"build:bun-transpiler": "yarn workspace @hono/bun-transpiler build",
"build:prometheus": "yarn workspace @hono/prometheus build",
"build:oidc-auth": "yarn workspace @hono/oidc-auth build",
"build": "run-p 'build:*'",
"lint": "eslint 'packages/**/*.{ts,tsx}'",
"lint:fix": "eslint --fix 'packages/**/*.{ts,tsx}'",

View File

@ -4,22 +4,22 @@
"description": "OpenID Connect Authentication middleware for Hono",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage",
"build": "tsup ./src/index.ts --format esm,cjs --dts",
"build": "tsup ./src/index.ts --format esm --dts",
"prerelease": "yarn build && yarn test",
"release": "yarn publish"
"release": "yarn prerelease && yarn npm publish"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"default": "./dist/index.js"
}
}
},
"license": "MIT",