build(typebox-validator): lint published package (#1066)

pull/1073/head
Jonathan Haines 2025-03-27 17:06:50 +11:00 committed by GitHub
parent 85e67a12c0
commit 568f407452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 28 additions and 33 deletions

View File

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

View File

@ -2,22 +2,29 @@
"name": "@hono/typebox-validator",
"version": "0.3.2",
"description": "Validator middleware using TypeBox",
"types": "dist/esm/index.d.ts",
"type": "module",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/esm/index.d.ts"
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist"
],
"scripts": {
"test": "vitest",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
"build": "rimraf dist && yarn build:cjs && yarn build:esm",
"prerelease": "yarn build && yarn test",
"release": "yarn publish"
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"license": "MIT",
"publishConfig": {
@ -26,7 +33,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/honojs/middleware.git"
"url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/typebox-validator"
},
"homepage": "https://github.com/honojs/middleware",
"peerDependencies": {
@ -34,9 +42,11 @@
"hono": ">=3.9.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@sinclair/typebox": "^0.31.15",
"hono": "^3.11.7",
"rimraf": "^5.0.5",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
}
}

View File

@ -1,8 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"declaration": false,
"outDir": "./dist/cjs"
}
}

View File

@ -1,8 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"declaration": true,
"outDir": "./dist/esm"
}
}

View File

@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": ["vitest/globals"]
},
"include": ["src/**/*.ts"]
}
}

View File

@ -2932,9 +2932,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/typebox-validator@workspace:packages/typebox-validator"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
"@sinclair/typebox": "npm:^0.31.15"
hono: "npm:^3.11.7"
rimraf: "npm:^5.0.5"
publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8"
peerDependencies:
"@sinclair/typebox": ">=0.31.15 <1"