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

View File

@ -3,9 +3,9 @@
"version": "1.2.0", "version": "1.2.0",
"description": "Validator middleware using Effect Schema", "description": "Validator middleware using Effect Schema",
"type": "module", "type": "module",
"main": "dist/cjs/index.js", "main": "dist/index.cjs",
"module": "dist/esm/index.js", "module": "dist/index.js",
"types": "dist/esm/index.d.ts", "types": "dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"import": { "import": {
@ -22,10 +22,10 @@
"dist" "dist"
], ],
"scripts": { "scripts": {
"test": "vitest --run", "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"
}, },
"license": "MIT", "license": "MIT",
"publishConfig": { "publishConfig": {
@ -34,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/effect-validator"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
@ -42,10 +43,11 @@
"hono": ">=4.4.13" "hono": ">=4.4.13"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"effect": "3.10.0", "effect": "3.10.0",
"hono": "^4.4.13", "hono": "^4.4.13",
"tsup": "^8.1.0", "publint": "^0.3.9",
"typescript": "^5.5.3", "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",
"exactOptionalPropertyTypes": true "exactOptionalPropertyTypes": true
}, }
"include": [
"src/**/*.ts"
],
} }

View File

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