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

View File

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

View File

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

View File

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

View File

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