build(event-emitter): lint published package (#1047)

pull/1071/head
Jonathan Haines 2025-03-27 12:59:12 +11:00 committed by GitHub
parent 2939ab7493
commit 2514e03382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 27 additions and 19 deletions

View File

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

View File

@ -2,23 +2,29 @@
"name": "@hono/event-emitter", "name": "@hono/event-emitter",
"version": "2.0.0", "version": "2.0.0",
"description": "Event Emitter middleware for Hono", "description": "Event Emitter middleware for Hono",
"type": "module",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.mjs", "module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"files": [ "files": [
"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": {
".": { ".": {
"types": "./dist/index.d.mts", "import": {
"import": "./dist/index.mjs", "types": "./dist/index.d.ts",
"require": "./dist/index.js" "default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
} }
}, },
"license": "MIT", "license": "MIT",
@ -28,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/event-emitter"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"author": "David Havl <contact@davidhavl.com> (https://github.com/DavidHavl)", "author": "David Havl <contact@davidhavl.com> (https://github.com/DavidHavl)",
@ -36,8 +43,10 @@
"hono": "*" "hono": "*"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"hono": "^4.3.6", "hono": "^4.3.6",
"tsup": "^8.0.1", "publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8" "vitest": "^3.0.8"
}, },
"engines": { "engines": {

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

@ -2605,8 +2605,10 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/event-emitter@workspace:packages/event-emitter" resolution: "@hono/event-emitter@workspace:packages/event-emitter"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
hono: "npm:^4.3.6" hono: "npm:^4.3.6"
tsup: "npm:^8.0.1" publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8" vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
hono: "*" hono: "*"