build(arktype-validator): lint published package (#1033)

* build(arktype-validator): lint published package

* ci(arktype-validator): run publint
pull/1010/head^2
Jonathan Haines 2025-03-24 21:46:35 +11:00 committed by GitHub
parent 3eab82809a
commit 6e268318bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 26 additions and 18 deletions

View File

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

View File

@ -1 +0,0 @@
export { default } from '../../tsup.config'

View File

@ -2,22 +2,29 @@
"name": "@hono/arktype-validator",
"version": "2.0.0",
"description": "ArkType validator middleware",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "vitest --run",
"build": "tsup ./src/index.ts --format esm,cjs --dts",
"release": "yarn build && yarn test && yarn publish"
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
@ -27,7 +34,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/honojs/middleware.git"
"url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/arktype-validator"
},
"homepage": "https://github.com/honojs/middleware",
"peerDependencies": {
@ -35,9 +43,11 @@
"hono": "*"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"arktype": "^2.0.0-dev.14",
"hono": "^3.11.7",
"tsup": "^8.0.1",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
}
}

View File

@ -1,10 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
},
"include": [
"src/**/*.ts"
],
}
"outDir": "./dist"
}
}

View File

@ -2584,9 +2584,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/arktype-validator@workspace:packages/arktype-validator"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
arktype: "npm:^2.0.0-dev.14"
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:
arktype: ^2.0.0-dev.14