ci(bun-transpiler): run publint (#1035)

pull/1010/head^2
Jonathan Haines 2025-03-24 21:58:05 +11:00 committed by GitHub
parent 2a6c7f0202
commit 28ff8ed22d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 18 deletions

View File

@ -19,6 +19,7 @@ jobs:
bun-version: 1.1.32 bun-version: 1.1.32
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler - run: yarn workspaces focus hono-middleware @hono/bun-transpiler
- run: yarn workspace @hono/bun-transpiler build - run: yarn workspace @hono/bun-transpiler build
- run: yarn workspace @hono/bun-transpiler publint
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov - run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:

View File

@ -2,23 +2,29 @@
"name": "@hono/bun-transpiler", "name": "@hono/bun-transpiler",
"version": "0.2.0", "version": "0.2.0",
"description": "Bun Transpiler Middleware for Hono", "description": "Bun Transpiler 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": "bun test", "build": "tsup ./src/index.ts --external bun",
"build": "tsup ./src/index.ts --format esm,cjs --dts --external bun", "prepack": "yarn build",
"publint": "publint", "publint": "attw --pack && publint",
"release": "yarn build && yarn test && yarn publint && yarn publish" "test": "bun test"
}, },
"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,16 +34,20 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/honojs/middleware.git" "url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/bun-transpiler"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
"hono": "*" "hono": "*"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@types/bun": "^1.0.0", "@types/bun": "^1.0.0",
"hono": "^3.11.7", "hono": "^3.11.7",
"tsup": "^8.0.1" "publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
}, },
"engines": { "engines": {
"node": ">=18.14.1" "node": ">=18.14.1"

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

@ -2618,9 +2618,12 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/bun-transpiler@workspace:packages/bun-transpiler" resolution: "@hono/bun-transpiler@workspace:packages/bun-transpiler"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
"@types/bun": "npm:^1.0.0" "@types/bun": "npm:^1.0.0"
hono: "npm:^3.11.7" hono: "npm:^3.11.7"
tsup: "npm:^8.0.1" publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
hono: "*" hono: "*"
languageName: unknown languageName: unknown