build(zod-openapi): lint published package (#1069)
parent
568f407452
commit
ff2c1cd2fc
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/zod-openapi
|
- run: yarn workspaces focus hono-middleware @hono/zod-openapi
|
||||||
- run: yarn workspace @hono/zod-openapi build
|
- run: yarn workspace @hono/zod-openapi build
|
||||||
|
- run: yarn workspace @hono/zod-openapi publint
|
||||||
- run: yarn test --coverage --project @hono/zod-openapi
|
- run: yarn test --coverage --project @hono/zod-openapi
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
"npm-run-all2": "^6.2.2",
|
"npm-run-all2": "^6.2.2",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"tsup": "^8.4.0",
|
"tsup": "^8.4.0",
|
||||||
"typescript": "^5.2.2",
|
"typescript": "^5.8.2",
|
||||||
"vitest": "^3.0.8"
|
"vitest": "^3.0.8"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.0.2"
|
"packageManager": "yarn@4.0.2"
|
||||||
|
|
|
@ -2,27 +2,27 @@
|
||||||
"name": "@hono/zod-openapi",
|
"name": "@hono/zod-openapi",
|
||||||
"version": "0.19.2",
|
"version": "0.19.2",
|
||||||
"description": "A wrapper class of Hono which supports OpenAPI.",
|
"description": "A wrapper class of Hono which supports OpenAPI.",
|
||||||
"main": "dist/index.js",
|
"type": "module",
|
||||||
"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": "vitest run && vitest --typecheck --run --passWithNoTests",
|
"build": "tsup ./src/index.ts",
|
||||||
"build": "tsup ./src/index.ts --format esm,cjs --dts",
|
"prepack": "yarn build",
|
||||||
"publint": "publint",
|
"publint": "attw --pack && publint",
|
||||||
"release": "yarn build && yarn test && yarn publint && yarn publish"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/index.d.mts",
|
|
||||||
"default": "./dist/index.mjs"
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"default": "./dist/index.js"
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -33,7 +33,8 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/honojs/middleware.git"
|
"url": "git+https://github.com/honojs/middleware.git",
|
||||||
|
"directory": "packages/zod-openapi"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/honojs/middleware",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -41,10 +42,10 @@
|
||||||
"zod": "3.*"
|
"zod": "3.*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "^4.20240117.0",
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"hono": "^4.6.10",
|
"hono": "^4.6.10",
|
||||||
"tsup": "^8.0.1",
|
"publint": "^0.3.9",
|
||||||
"typescript": "^5.8.2",
|
"tsup": "^8.4.0",
|
||||||
"vitest": "^3.0.8",
|
"vitest": "^3.0.8",
|
||||||
"yaml": "^2.4.3",
|
"yaml": "^2.4.3",
|
||||||
"zod": "^3.22.1"
|
"zod": "^3.22.1"
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
"types": ["vitest/globals"]
|
||||||
},
|
}
|
||||||
"include": [
|
|
||||||
"src/",
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules",
|
|
||||||
"dist"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "../../tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"types": [
|
|
||||||
"vitest/globals",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src/",
|
|
||||||
"test/"
|
|
||||||
],
|
|
||||||
}
|
|
|
@ -4,7 +4,8 @@ export default defineProject({
|
||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
typecheck: {
|
typecheck: {
|
||||||
tsconfig: './tsconfig.vitest.json',
|
tsconfig: './tsconfig.json',
|
||||||
|
enabled: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
15
yarn.lock
15
yarn.lock
|
@ -855,13 +855,6 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@cloudflare/workers-types@npm:^4.20240117.0":
|
|
||||||
version: 4.20240117.0
|
|
||||||
resolution: "@cloudflare/workers-types@npm:4.20240117.0"
|
|
||||||
checksum: 900b796af2ae97257e1f6171b9c37d718c5f8ae064cea8f8d1c48e52ccde01492c5cfa61716fc703d05a6bd92e50a55f7d9e525d2c91919db76e42458c3e8e76
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"@cloudflare/workers-types@npm:^4.20240222.0":
|
"@cloudflare/workers-types@npm:^4.20240222.0":
|
||||||
version: 4.20240222.0
|
version: 4.20240222.0
|
||||||
resolution: "@cloudflare/workers-types@npm:4.20240222.0"
|
resolution: "@cloudflare/workers-types@npm:4.20240222.0"
|
||||||
|
@ -2977,12 +2970,12 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/zod-openapi@workspace:packages/zod-openapi"
|
resolution: "@hono/zod-openapi@workspace:packages/zod-openapi"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
"@asteasolutions/zod-to-openapi": "npm:^7.1.0"
|
"@asteasolutions/zod-to-openapi": "npm:^7.1.0"
|
||||||
"@cloudflare/workers-types": "npm:^4.20240117.0"
|
|
||||||
"@hono/zod-validator": "npm:0.4.2"
|
"@hono/zod-validator": "npm:0.4.2"
|
||||||
hono: "npm:^4.6.10"
|
hono: "npm:^4.6.10"
|
||||||
tsup: "npm:^8.0.1"
|
publint: "npm:^0.3.9"
|
||||||
typescript: "npm:^5.8.2"
|
tsup: "npm:^8.4.0"
|
||||||
vitest: "npm:^3.0.8"
|
vitest: "npm:^3.0.8"
|
||||||
yaml: "npm:^2.4.3"
|
yaml: "npm:^2.4.3"
|
||||||
zod: "npm:^3.22.1"
|
zod: "npm:^3.22.1"
|
||||||
|
@ -10153,7 +10146,7 @@ __metadata:
|
||||||
npm-run-all2: "npm:^6.2.2"
|
npm-run-all2: "npm:^6.2.2"
|
||||||
prettier: "npm:^2.7.1"
|
prettier: "npm:^2.7.1"
|
||||||
tsup: "npm:^8.4.0"
|
tsup: "npm:^8.4.0"
|
||||||
typescript: "npm:^5.2.2"
|
typescript: "npm:^5.8.2"
|
||||||
vitest: "npm:^3.0.8"
|
vitest: "npm:^3.0.8"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
Loading…
Reference in New Issue