diff --git a/.github/workflows/ci-clerk-auth.yml b/.github/workflows/ci-clerk-auth.yml index 28e9c94c..9b830d08 100644 --- a/.github/workflows/ci-clerk-auth.yml +++ b/.github/workflows/ci-clerk-auth.yml @@ -19,6 +19,7 @@ jobs: node-version: 18.x - run: yarn workspaces focus hono-middleware @hono/clerk-auth - run: yarn workspace @hono/clerk-auth build + - run: yarn workspace @hono/clerk-auth publint - run: yarn test --coverage --project @hono/clerk-auth - uses: codecov/codecov-action@v5 with: diff --git a/packages/clerk-auth/package.json b/packages/clerk-auth/package.json index a84af5c4..1187f79e 100644 --- a/packages/clerk-auth/package.json +++ b/packages/clerk-auth/package.json @@ -10,10 +10,10 @@ "dist" ], "scripts": { - "test": "vitest", - "build": "tsup ./src/index.ts --format esm,cjs --dts", - "prerelease": "yarn build && yarn test", - "release": "yarn publish" + "build": "tsup ./src/index.ts", + "prepack": "yarn build", + "publint": "attw --pack && publint", + "test": "vitest" }, "exports": { ".": { @@ -34,7 +34,8 @@ }, "repository": { "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", "peerDependencies": { @@ -42,16 +43,16 @@ "hono": ">=3.*" }, "devDependencies": { + "@arethetypeswrong/cli": "^0.17.4", "@clerk/backend": "^1.0.0", "@types/react": "^18", "hono": "^3.11.7", - "node-fetch-native": "^1.4.0", + "publint": "^0.3.9", "react": "^18.2.0", - "tsup": "^8.0.1", - "typescript": "^5.8.2", + "tsup": "^8.4.0", "vitest": "^3.0.8" }, "engines": { "node": ">=16.x.x" } -} +} \ No newline at end of file diff --git a/packages/clerk-auth/tsconfig.json b/packages/clerk-auth/tsconfig.json index af5bfa77..103e4e38 100644 --- a/packages/clerk-auth/tsconfig.json +++ b/packages/clerk-auth/tsconfig.json @@ -1,9 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "rootDir": "./src", "outDir": "./dist", "types": ["vitest/globals"] - }, - "include": ["src/**/*.ts"] + } } diff --git a/yarn.lock b/yarn.lock index 0580c060..ec6d6b76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2499,13 +2499,13 @@ __metadata: version: 0.0.0-use.local resolution: "@hono/clerk-auth@workspace:packages/clerk-auth" dependencies: + "@arethetypeswrong/cli": "npm:^0.17.4" "@clerk/backend": "npm:^1.0.0" "@types/react": "npm:^18" hono: "npm:^3.11.7" - node-fetch-native: "npm:^1.4.0" + publint: "npm:^0.3.9" react: "npm:^18.2.0" - tsup: "npm:^8.0.1" - typescript: "npm:^5.8.2" + tsup: "npm:^8.4.0" vitest: "npm:^3.0.8" peerDependencies: "@clerk/backend": ^1.0.0 @@ -13933,13 +13933,6 @@ __metadata: languageName: node 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": version: 2.7.0 resolution: "node-fetch@npm:2.7.0"