build(medley-router): lint published package (#1051)

pull/1072/head
Jonathan Haines 2025-03-27 13:21:43 +11:00 committed by GitHub
parent 5792504bdf
commit bcbb7e01c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 10 deletions

View File

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

View File

@ -2,16 +2,30 @@
"name": "@hono/medley-router", "name": "@hono/medley-router",
"version": "0.0.3", "version": "0.0.3",
"description": "Router using @medley/router", "description": "Router using @medley/router",
"type": "module",
"main": "dist/index.js", "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": "rimraf dist && tsc", "prepack": "yarn build",
"prerelease": "yarn build && yarn test", "publint": "attw --pack && publint",
"release": "yarn publish" "test": "vitest"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
}, },
"license": "MIT", "license": "MIT",
"publishConfig": { "publishConfig": {
@ -20,15 +34,18 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/honojs/middleware.git" "url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/medley-router"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
"hono": ">=3.8.0" "hono": ">=3.8.0"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"hono": "^3.11.7", "hono": "^3.11.7",
"rimraf": "^5.0.5", "publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8" "vitest": "^3.0.8"
}, },
"dependencies": { "dependencies": {

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

@ -2671,9 +2671,11 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/medley-router@workspace:packages/medley-router" resolution: "@hono/medley-router@workspace:packages/medley-router"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
"@medley/router": "npm:^0.2.1" "@medley/router": "npm:^0.2.1"
hono: "npm:^3.11.7" hono: "npm:^3.11.7"
rimraf: "npm:^5.0.5" publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8" vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
hono: ">=3.8.0" hono: ">=3.8.0"