build(oidc-auth): lint published package (#1054)

* build(oidc-auth): lint published package

* build(oidc-auth): include require condition in subpath exports
pull/1073/head
Jonathan Haines 2025-03-27 14:56:33 +11:00 committed by GitHub
parent 7c0f04486d
commit 5234436db8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 13 deletions

View File

@ -19,6 +19,7 @@ jobs:
node-version: 20.x
- run: yarn workspaces focus hono-middleware @hono/oidc-auth
- run: yarn workspace @hono/oidc-auth build
- run: yarn workspace @hono/oidc-auth publint
- run: yarn test --coverage --project @hono/oidc-auth
- uses: codecov/codecov-action@v5
with:

View File

@ -3,22 +3,26 @@
"version": "1.6.0",
"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": "vitest",
"build": "tsup ./src/index.ts --format esm --dts",
"prerelease": "yarn build && yarn test",
"release": "yarn prerelease && yarn npm publish"
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
@ -29,18 +33,20 @@
},
"repository": {
"type": "git",
"url": "https://github.com/honojs/middleware.git"
"url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/oidc-auth"
},
"homepage": "https://github.com/honojs/middleware",
"peerDependencies": {
"hono": ">=3.*"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@types/jsonwebtoken": "^9.0.5",
"hono": "^4.0.1",
"jsonwebtoken": "^9.0.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
},
"dependencies": {

View File

@ -2,9 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"rootDir": "./src",
"outDir": "./dist",
"types": ["vitest/globals"]
},
"include": ["src/**/*.ts"]
}
}

View File

@ -2727,12 +2727,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/oidc-auth@workspace:packages/oidc-auth"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
"@types/jsonwebtoken": "npm:^9.0.5"
hono: "npm:^4.0.1"
jsonwebtoken: "npm:^9.0.2"
oauth4webapi: "npm:^2.6.0"
tsup: "npm:^8.0.1"
typescript: "npm:^5.3.3"
publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8"
peerDependencies:
hono: ">=3.*"