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 node-version: 20.x
- run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler - run: yarn workspaces focus hono-middleware @hono/esbuild-transpiler
- run: yarn workspace @hono/esbuild-transpiler build - run: yarn workspace @hono/esbuild-transpiler build
- run: yarn workspace @hono/esbuild-transpiler publint
- run: yarn test --coverage --project @hono/esbuild-transpiler - run: yarn test --coverage --project @hono/esbuild-transpiler
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:

View File

@ -2,32 +2,48 @@
"name": "@hono/esbuild-transpiler", "name": "@hono/esbuild-transpiler",
"version": "0.1.3", "version": "0.1.3",
"description": "esbuild Transpiler Middleware for Hono", "description": "esbuild Transpiler Middleware for Hono",
"main": "dist/index.js",
"type": "module", "type": "module",
"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/*.ts ./src/transpilers/*.ts --no-splitting --external esbuild-wasm,esbuild",
"build": "tsup ./src/*.ts ./src/transpilers/*.ts --format esm,cjs --dts --no-splitting --external esbuild-wasm,esbuild", "prepack": "yarn build",
"publint": "publint", "publint": "attw --pack && publint",
"release": "yarn build && yarn test && yarn publint && yarn publish" "test": "vitest"
}, },
"exports": { "exports": {
".": { ".": {
"import": "./dist/index.js", "import": {
"require": "./dist/index.cjs" "types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}, },
"./wasm": { "./wasm": {
"import": {
"types": "./dist/transpilers/wasm.d.ts", "types": "./dist/transpilers/wasm.d.ts",
"import": "./dist/transpilers/wasm.js", "default": "./dist/transpilers/wasm.js"
"require": "./dist/transpilers/wasm.cjs" },
"require": {
"types": "./dist/transpilers/wasm.d.cts",
"default": "./dist/transpilers/wasm.cjs"
}
}, },
"./node": { "./node": {
"import": {
"types": "./dist/transpilers/node.d.ts", "types": "./dist/transpilers/node.d.ts",
"import": "./dist/transpilers/node.js", "default": "./dist/transpilers/node.js"
"require": "./dist/transpilers/node.cjs" },
"require": {
"types": "./dist/transpilers/node.d.cts",
"default": "./dist/transpilers/node.cjs"
}
} }
}, },
"typesVersions": { "typesVersions": {
@ -47,17 +63,20 @@
}, },
"repository": { "repository": {
"type": "git", "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", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
"hono": ">=3.9.2" "hono": ">=3.9.2"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"esbuild": "^0.19.9", "esbuild": "^0.19.9",
"esbuild-wasm": "^0.19.5", "esbuild-wasm": "^0.19.5",
"hono": "^3.11.7", "hono": "^3.11.7",
"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,14 +1,6 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"skipLibCheck": false, "skipLibCheck": false
"rootDir": "./src", }
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"dist"
]
} }

View File

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