build(oidc-auth): lint published package (#1054)
* build(oidc-auth): lint published package * build(oidc-auth): include require condition in subpath exportspull/1073/head
parent
7c0f04486d
commit
5234436db8
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/oidc-auth
|
- run: yarn workspaces focus hono-middleware @hono/oidc-auth
|
||||||
- run: yarn workspace @hono/oidc-auth build
|
- run: yarn workspace @hono/oidc-auth build
|
||||||
|
- run: yarn workspace @hono/oidc-auth publint
|
||||||
- run: yarn test --coverage --project @hono/oidc-auth
|
- run: yarn test --coverage --project @hono/oidc-auth
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -3,22 +3,26 @@
|
||||||
"version": "1.6.0",
|
"version": "1.6.0",
|
||||||
"description": "OpenID Connect Authentication middleware for Hono",
|
"description": "OpenID Connect Authentication middleware for Hono",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"module": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest",
|
"build": "tsup ./src/index.ts",
|
||||||
"build": "tsup ./src/index.ts --format esm --dts",
|
"prepack": "yarn build",
|
||||||
"prerelease": "yarn build && yarn test",
|
"publint": "attw --pack && publint",
|
||||||
"release": "yarn prerelease && yarn npm publish"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"default": "./dist/index.js"
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -29,18 +33,20 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"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",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"hono": ">=3.*"
|
"hono": ">=3.*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"@types/jsonwebtoken": "^9.0.5",
|
"@types/jsonwebtoken": "^9.0.5",
|
||||||
"hono": "^4.0.1",
|
"hono": "^4.0.1",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"tsup": "^8.0.1",
|
"publint": "^0.3.9",
|
||||||
"typescript": "^5.3.3",
|
"tsup": "^8.4.0",
|
||||||
"vitest": "^3.0.8"
|
"vitest": "^3.0.8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"rootDir": "./src",
|
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"types": ["vitest/globals"]
|
"types": ["vitest/globals"]
|
||||||
},
|
}
|
||||||
"include": ["src/**/*.ts"]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2727,12 +2727,13 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/oidc-auth@workspace:packages/oidc-auth"
|
resolution: "@hono/oidc-auth@workspace:packages/oidc-auth"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
"@types/jsonwebtoken": "npm:^9.0.5"
|
"@types/jsonwebtoken": "npm:^9.0.5"
|
||||||
hono: "npm:^4.0.1"
|
hono: "npm:^4.0.1"
|
||||||
jsonwebtoken: "npm:^9.0.2"
|
jsonwebtoken: "npm:^9.0.2"
|
||||||
oauth4webapi: "npm:^2.6.0"
|
oauth4webapi: "npm:^2.6.0"
|
||||||
tsup: "npm:^8.0.1"
|
publint: "npm:^0.3.9"
|
||||||
typescript: "npm:^5.3.3"
|
tsup: "npm:^8.4.0"
|
||||||
vitest: "npm:^3.0.8"
|
vitest: "npm:^3.0.8"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
hono: ">=3.*"
|
hono: ">=3.*"
|
||||||
|
|
Loading…
Reference in New Issue