Skip to content

Commit 42532b9

Browse files
feat: add support for pkg new (#179)
* feat: add support for pkg new * ci: add missing step name --------- Co-authored-by: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
1 parent 134361d commit 42532b9

File tree

4 files changed

+529
-84
lines changed

4 files changed

+529
-84
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release preview
2+
on: [push, pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v5
13+
14+
- name: Use Node.js 22.x
15+
uses: actions/setup-node@v5
16+
with:
17+
node-version: 22.x
18+
package-manager-cache: false
19+
20+
- name: Install PNPM
21+
uses: pnpm/action-setup@v4
22+
23+
- name: Install dependencies
24+
run: pnpm install
25+
26+
- name: Build packages
27+
run: pnpm build
28+
29+
- name: Create release preview PR
30+
run: pnpm exec pkg-pr-new publish "."

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout repository
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v5
1212

1313
- name: Setup Node.js LTS
1414
uses: actions/setup-node@v4

package.json

Lines changed: 84 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,84 @@
1-
{
2-
"name": "hono-openapi",
3-
"description": "OpenAPI schema generator for Hono",
4-
"version": "1.0.8",
5-
"type": "module",
6-
"main": "dist/index.cjs",
7-
"module": "dist/index.js",
8-
"types": "dist/index.d.ts",
9-
"files": [
10-
"dist"
11-
],
12-
"license": "MIT",
13-
"scripts": {
14-
"build": "pkgroll --clean-dist",
15-
"lint": "biome check .",
16-
"format": "biome check --write .",
17-
"prepare": "is-ci || husky",
18-
"test": "vitest"
19-
},
20-
"keywords": [
21-
"hono",
22-
"openapi",
23-
"zod",
24-
"valibot",
25-
"typebox",
26-
"arktype",
27-
"effect"
28-
],
29-
"homepage": "https://github.com/rhinobase/hono-openapi",
30-
"publishConfig": {
31-
"access": "public"
32-
},
33-
"repository": {
34-
"type": "git",
35-
"url": "git+https://github.com/rhinobase/hono-openapi.git"
36-
},
37-
"bugs": {
38-
"url": "https://github.com/rhinobase/hono-openapi/issues"
39-
},
40-
"exports": {
41-
"import": {
42-
"types": "./dist/index.d.ts",
43-
"default": "./dist/index.js"
44-
},
45-
"require": {
46-
"types": "./dist/index.d.cts",
47-
"default": "./dist/index.cjs"
48-
}
49-
},
50-
"peerDependencies": {
51-
"@hono/standard-validator": "^0.1.2",
52-
"@standard-community/standard-json": "^0.3.1",
53-
"@standard-community/standard-openapi": "^0.2.4",
54-
"@types/json-schema": "^7.0.15",
55-
"hono": "^4.8.3",
56-
"openapi-types": "^12.1.3"
57-
},
58-
"peerDependenciesMeta": {
59-
"@hono/standard-validator": {
60-
"optional": true
61-
},
62-
"hono": {
63-
"optional": true
64-
}
65-
},
66-
"devDependencies": {
67-
"@biomejs/biome": "^2.0.6",
68-
"@standard-schema/spec": "^1.0.0",
69-
"@valibot/to-json-schema": "^1.3.0",
70-
"arktype": "^2.1.22",
71-
"effect": "^3.17.13",
72-
"husky": "^9.1.7",
73-
"is-ci": "^4.1.0",
74-
"nano-staged": "^0.8.0",
75-
"pkgroll": "^2.13.1",
76-
"typescript": "^5.8.3",
77-
"valibot": "^1.1.0",
78-
"vitest": "^3.2.4",
79-
"zod": "^3.23.8",
80-
"zod-openapi": "^4"
81-
},
82-
"packageManager": "pnpm@10.0.0"
83-
}
1+
{
2+
"name": "hono-openapi",
3+
"description": "OpenAPI schema generator for Hono",
4+
"version": "1.0.8",
5+
"type": "module",
6+
"main": "dist/index.cjs",
7+
"module": "dist/index.js",
8+
"types": "dist/index.d.ts",
9+
"files": [
10+
"dist"
11+
],
12+
"license": "MIT",
13+
"scripts": {
14+
"build": "pkgroll --clean-dist",
15+
"lint": "biome check .",
16+
"format": "biome check --write .",
17+
"prepare": "is-ci || husky",
18+
"test": "vitest"
19+
},
20+
"keywords": [
21+
"hono",
22+
"openapi",
23+
"zod",
24+
"valibot",
25+
"typebox",
26+
"arktype",
27+
"effect"
28+
],
29+
"homepage": "https://github.com/rhinobase/hono-openapi",
30+
"publishConfig": {
31+
"access": "public"
32+
},
33+
"repository": {
34+
"type": "git",
35+
"url": "git+https://github.com/rhinobase/hono-openapi.git"
36+
},
37+
"bugs": {
38+
"url": "https://github.com/rhinobase/hono-openapi/issues"
39+
},
40+
"exports": {
41+
"import": {
42+
"types": "./dist/index.d.ts",
43+
"default": "./dist/index.js"
44+
},
45+
"require": {
46+
"types": "./dist/index.d.cts",
47+
"default": "./dist/index.cjs"
48+
}
49+
},
50+
"peerDependencies": {
51+
"@hono/standard-validator": "^0.1.2",
52+
"@standard-community/standard-json": "^0.3.1",
53+
"@standard-community/standard-openapi": "^0.2.4",
54+
"@types/json-schema": "^7.0.15",
55+
"hono": "^4.8.3",
56+
"openapi-types": "^12.1.3"
57+
},
58+
"peerDependenciesMeta": {
59+
"@hono/standard-validator": {
60+
"optional": true
61+
},
62+
"hono": {
63+
"optional": true
64+
}
65+
},
66+
"devDependencies": {
67+
"@biomejs/biome": "^2.0.6",
68+
"@standard-schema/spec": "^1.0.0",
69+
"@valibot/to-json-schema": "^1.3.0",
70+
"arktype": "^2.1.22",
71+
"effect": "^3.17.13",
72+
"husky": "^9.1.7",
73+
"is-ci": "^4.1.0",
74+
"nano-staged": "^0.8.0",
75+
"pkg-pr-new": "^0.0.60",
76+
"pkgroll": "^2.13.1",
77+
"typescript": "^5.8.3",
78+
"valibot": "^1.1.0",
79+
"vitest": "^3.2.4",
80+
"zod": "^3.23.8",
81+
"zod-openapi": "^4"
82+
},
83+
"packageManager": "pnpm@10.0.0"
84+
}

0 commit comments

Comments
 (0)