build(esbuild-transpiler): lint published package (#1046)

* build(esbuild-transpiler): lint published package

* chore: fix repository directory reference
pull/1017/head
Jonathan Haines 2025-03-27 13:06:41 +11:00 committed by Tim Barley
parent 7a8b23d8c8
commit 66c265f7ea
4 changed files with 42 additions and 28 deletions

View File

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

View File

@ -2,32 +2,48 @@
"name": "@hono/esbuild-transpiler",
"version": "0.1.3",
"description": "esbuild Transpiler Middleware for Hono",
"main": "dist/index.js",
"type": "module",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "vitest run",
"build": "tsup ./src/*.ts ./src/transpilers/*.ts --format esm,cjs --dts --no-splitting --external esbuild-wasm,esbuild",
"publint": "publint",
"release": "yarn build && yarn test && yarn publint && yarn publish"
"build": "tsup ./src/*.ts ./src/transpilers/*.ts --no-splitting --external esbuild-wasm,esbuild",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./wasm": {
"types": "./dist/transpilers/wasm.d.ts",
"import": "./dist/transpilers/wasm.js",
"require": "./dist/transpilers/wasm.cjs"
"import": {
"types": "./dist/transpilers/wasm.d.ts",
"default": "./dist/transpilers/wasm.js"
},
"require": {
"types": "./dist/transpilers/wasm.d.cts",
"default": "./dist/transpilers/wasm.cjs"
}
},
"./node": {
"types": "./dist/transpilers/node.d.ts",
"import": "./dist/transpilers/node.js",
"require": "./dist/transpilers/node.cjs"
"import": {
"types": "./dist/transpilers/node.d.ts",
"default": "./dist/transpilers/node.js"
},
"require": {
"types": "./dist/transpilers/node.d.cts",
"default": "./dist/transpilers/node.cjs"
}
}
},
"typesVersions": {
@ -47,17 +63,20 @@
},
"repository": {
"type": "git",
"url": "https://github.com/honojs/middleware.git"
"url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/esbuild-transpiler"
},
"homepage": "https://github.com/honojs/middleware",
"peerDependencies": {
"hono": ">=3.9.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"esbuild": "^0.19.9",
"esbuild-wasm": "^0.19.5",
"hono": "^3.11.7",
"tsup": "^8.0.1",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -1,14 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": false,
"rootDir": "./src",
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"dist"
]
"skipLibCheck": false
}
}

View File

@ -2570,10 +2570,12 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/esbuild-transpiler@workspace:packages/esbuild-transpiler"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
esbuild: "npm:^0.19.9"
esbuild-wasm: "npm:^0.19.5"
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:
hono: ">=3.9.2"