build(clerk-auth): lint published package (#1042)

pull/1071/head
Jonathan Haines 2025-03-27 12:48:09 +11:00 committed by GitHub
parent aad0ec86b3
commit 243a73c41c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 22 deletions

View File

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

View File

@ -10,10 +10,10 @@
"dist" "dist"
], ],
"scripts": { "scripts": {
"test": "vitest", "build": "tsup ./src/index.ts",
"build": "tsup ./src/index.ts --format esm,cjs --dts", "prepack": "yarn build",
"prerelease": "yarn build && yarn test", "publint": "attw --pack && publint",
"release": "yarn publish" "test": "vitest"
}, },
"exports": { "exports": {
".": { ".": {
@ -34,7 +34,8 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/honojs/middleware.git" "url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/clerk-auth"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
@ -42,16 +43,16 @@
"hono": ">=3.*" "hono": ">=3.*"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@clerk/backend": "^1.0.0", "@clerk/backend": "^1.0.0",
"@types/react": "^18", "@types/react": "^18",
"hono": "^3.11.7", "hono": "^3.11.7",
"node-fetch-native": "^1.4.0", "publint": "^0.3.9",
"react": "^18.2.0", "react": "^18.2.0",
"tsup": "^8.0.1", "tsup": "^8.4.0",
"typescript": "^5.8.2",
"vitest": "^3.0.8" "vitest": "^3.0.8"
}, },
"engines": { "engines": {
"node": ">=16.x.x" "node": ">=16.x.x"
} }
} }

View File

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

View File

@ -2499,13 +2499,13 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/clerk-auth@workspace:packages/clerk-auth" resolution: "@hono/clerk-auth@workspace:packages/clerk-auth"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
"@clerk/backend": "npm:^1.0.0" "@clerk/backend": "npm:^1.0.0"
"@types/react": "npm:^18" "@types/react": "npm:^18"
hono: "npm:^3.11.7" hono: "npm:^3.11.7"
node-fetch-native: "npm:^1.4.0" publint: "npm:^0.3.9"
react: "npm:^18.2.0" react: "npm:^18.2.0"
tsup: "npm:^8.0.1" tsup: "npm:^8.4.0"
typescript: "npm:^5.8.2"
vitest: "npm:^3.0.8" vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
"@clerk/backend": ^1.0.0 "@clerk/backend": ^1.0.0
@ -13933,13 +13933,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"node-fetch-native@npm:^1.4.0":
version: 1.4.1
resolution: "node-fetch-native@npm:1.4.1"
checksum: ab298a42ebf3b1b6c6a8cbc53d8ba703895f55171ed743b0828c2a87d461642d8053143864915a69d41cc01013db86406da105fff6c0a05a00d8caf5c279549c
languageName: node
linkType: hard
"node-fetch@npm:^2.5.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7, node-fetch@npm:^2.6.9, node-fetch@npm:^2.7.0": "node-fetch@npm:^2.5.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7, node-fetch@npm:^2.6.9, node-fetch@npm:^2.7.0":
version: 2.7.0 version: 2.7.0
resolution: "node-fetch@npm:2.7.0" resolution: "node-fetch@npm:2.7.0"