Skip to content

Commit 28ff8ed

Browse files
ci(bun-transpiler): run publint (#1035)
1 parent 2a6c7f0 commit 28ff8ed

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

.github/workflows/ci-bun-transpiler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
bun-version: 1.1.32
2020
- run: yarn workspaces focus hono-middleware @hono/bun-transpiler
2121
- run: yarn workspace @hono/bun-transpiler build
22+
- run: yarn workspace @hono/bun-transpiler publint
2223
- run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov
2324
- uses: codecov/codecov-action@v5
2425
with:

packages/bun-transpiler/package.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@
22
"name": "@hono/bun-transpiler",
33
"version": "0.2.0",
44
"description": "Bun Transpiler Middleware for Hono",
5+
"type": "module",
56
"main": "dist/index.js",
6-
"module": "dist/index.mjs",
7+
"module": "dist/index.js",
78
"types": "dist/index.d.ts",
89
"files": [
910
"dist"
1011
],
1112
"scripts": {
12-
"test": "bun test",
13-
"build": "tsup ./src/index.ts --format esm,cjs --dts --external bun",
14-
"publint": "publint",
15-
"release": "yarn build && yarn test && yarn publint && yarn publish"
13+
"build": "tsup ./src/index.ts --external bun",
14+
"prepack": "yarn build",
15+
"publint": "attw --pack && publint",
16+
"test": "bun test"
1617
},
1718
"exports": {
1819
".": {
19-
"types": "./dist/index.d.mts",
20-
"import": "./dist/index.mjs",
21-
"require": "./dist/index.js"
20+
"import": {
21+
"types": "./dist/index.d.ts",
22+
"default": "./dist/index.js"
23+
},
24+
"require": {
25+
"types": "./dist/index.d.cts",
26+
"default": "./dist/index.cjs"
27+
}
2228
}
2329
},
2430
"license": "MIT",
@@ -28,16 +34,20 @@
2834
},
2935
"repository": {
3036
"type": "git",
31-
"url": "https://github.com/honojs/middleware.git"
37+
"url": "git+https://github.com/honojs/middleware.git",
38+
"directory": "packages/bun-transpiler"
3239
},
3340
"homepage": "https://github.com/honojs/middleware",
3441
"peerDependencies": {
3542
"hono": "*"
3643
},
3744
"devDependencies": {
45+
"@arethetypeswrong/cli": "^0.17.4",
3846
"@types/bun": "^1.0.0",
3947
"hono": "^3.11.7",
40-
"tsup": "^8.0.1"
48+
"publint": "^0.3.9",
49+
"tsup": "^8.4.0",
50+
"vitest": "^3.0.8"
4151
},
4252
"engines": {
4353
"node": ">=18.14.1"
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"rootDir": "./src",
5-
"outDir": "./dist",
6-
},
7-
"include": [
8-
"src/**/*.ts"
9-
],
10-
}
4+
"outDir": "./dist"
5+
}
6+
}

yarn.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2618,9 +2618,12 @@ __metadata:
26182618
version: 0.0.0-use.local
26192619
resolution: "@hono/bun-transpiler@workspace:packages/bun-transpiler"
26202620
dependencies:
2621+
"@arethetypeswrong/cli": "npm:^0.17.4"
26212622
"@types/bun": "npm:^1.0.0"
26222623
hono: "npm:^3.11.7"
2623-
tsup: "npm:^8.0.1"
2624+
publint: "npm:^0.3.9"
2625+
tsup: "npm:^8.4.0"
2626+
vitest: "npm:^3.0.8"
26242627
peerDependencies:
26252628
hono: "*"
26262629
languageName: unknown

0 commit comments

Comments
 (0)