build(effect-validator): lint published package (#1045)

pull/1017/head
Jonathan Haines 2025-03-27 12:56:28 +11:00 committed by Tim Barley
parent 4f2744b181
commit 23b4cdd414
4 changed files with 19 additions and 39 deletions

View File

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

View File

@ -3,9 +3,9 @@
"version": "1.2.0",
"description": "Validator middleware using Effect Schema",
"type": "module",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
@ -22,10 +22,10 @@
"dist"
],
"scripts": {
"test": "vitest --run",
"build": "tsup ./src/index.ts --format esm,cjs --dts",
"publint": "publint",
"release": "yarn build && yarn test && yarn publint && yarn publish"
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"license": "MIT",
"publishConfig": {
@ -34,7 +34,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/honojs/middleware.git"
"url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/effect-validator"
},
"homepage": "https://github.com/honojs/middleware",
"peerDependencies": {
@ -42,10 +43,11 @@
"hono": ">=4.4.13"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"effect": "3.10.0",
"hono": "^4.4.13",
"tsup": "^8.1.0",
"typescript": "^5.5.3",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
}
}
}

View File

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

View File

@ -2553,10 +2553,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/effect-validator@workspace:packages/effect-validator"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
effect: "npm:3.10.0"
hono: "npm:^4.4.13"
tsup: "npm:^8.1.0"
typescript: "npm:^5.5.3"
publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8"
peerDependencies:
effect: ">=3.10.0"
@ -18490,16 +18491,6 @@ __metadata:
languageName: node
linkType: hard
"typescript@npm:^5.5.3":
version: 5.5.3
resolution: "typescript@npm:5.5.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: f52c71ccbc7080b034b9d3b72051d563601a4815bf3e39ded188e6ce60813f75dbedf11ad15dd4d32a12996a9ed8c7155b46c93a9b9c9bad1049766fe614bbdd
languageName: node
linkType: hard
"typescript@npm:^5.7.3":
version: 5.7.3
resolution: "typescript@npm:5.7.3"
@ -18570,16 +18561,6 @@ __metadata:
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A^5.5.3#optional!builtin<compat/typescript>":
version: 5.5.3
resolution: "typescript@patch:typescript@npm%3A5.5.3#optional!builtin<compat/typescript>::version=5.5.3&hash=e012d7"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 5a437c416251334deeaf29897157032311f3f126547cfdc4b133768b606cb0e62bcee733bb97cf74c42fe7268801aea1392d8e40988cdef112e9546eba4c03c5
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A^5.7.3#optional!builtin<compat/typescript>":
version: 5.7.3
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=e012d7"