build(hello): lint published package (#1050)

pull/1017/head
Jonathan Haines 2025-03-27 13:20:23 +11:00 committed by Tim Barley
parent c1adb69a5c
commit 6a7e42d4ee
4 changed files with 16 additions and 14 deletions

View File

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

View File

@ -9,10 +9,10 @@
"dist" "dist"
], ],
"scripts": { "scripts": {
"test": "vitest --run", "build": "tsup ./src/index.ts",
"build": "tsup ./src/index.ts --format esm,cjs --dts", "prepack": "yarn build",
"publint": "publint", "publint": "attw --pack && publint",
"release": "yarn build && yarn test && yarn publint && yarn publish" "test": "vitest"
}, },
"exports": { "exports": {
".": { ".": {
@ -33,15 +33,18 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/honojs/middleware.git" "url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/hello"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
"hono": "*" "hono": "*"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"hono": "^4.4.12", "hono": "^4.4.12",
"tsup": "^8.1.0", "publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -1,10 +1,6 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"rootDir": "./src", "outDir": "./dist"
"outDir": "./dist", }
},
"include": [
"src/**/*.ts"
],
} }

View File

@ -2657,8 +2657,10 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/hello@workspace:packages/hello" resolution: "@hono/hello@workspace:packages/hello"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
hono: "npm:^4.4.12" hono: "npm:^4.4.12"
tsup: "npm:^8.1.0" publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8" vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
hono: "*" hono: "*"