build(typebox-validator): lint published package (#1066)
parent
85e67a12c0
commit
568f407452
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/typebox-validator
|
- run: yarn workspaces focus hono-middleware @hono/typebox-validator
|
||||||
- run: yarn workspace @hono/typebox-validator build
|
- run: yarn workspace @hono/typebox-validator build
|
||||||
|
- run: yarn workspace @hono/typebox-validator publint
|
||||||
- run: yarn test --coverage --project @hono/typebox-validator
|
- run: yarn test --coverage --project @hono/typebox-validator
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -2,22 +2,29 @@
|
||||||
"name": "@hono/typebox-validator",
|
"name": "@hono/typebox-validator",
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
"description": "Validator middleware using TypeBox",
|
"description": "Validator middleware using TypeBox",
|
||||||
"types": "dist/esm/index.d.ts",
|
"type": "module",
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
"import": "./dist/esm/index.js",
|
".": {
|
||||||
"require": "./dist/cjs/index.js",
|
"import": {
|
||||||
"types": "./dist/esm/index.d.ts"
|
"types": "./dist/index.d.ts",
|
||||||
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest",
|
"build": "tsup ./src/index.ts",
|
||||||
"build:cjs": "tsc -p tsconfig.cjs.json",
|
"prepack": "yarn build",
|
||||||
"build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
|
"publint": "attw --pack && publint",
|
||||||
"build": "rimraf dist && yarn build:cjs && yarn build:esm",
|
"test": "vitest"
|
||||||
"prerelease": "yarn build && yarn test",
|
|
||||||
"release": "yarn publish"
|
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
@ -26,7 +33,8 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"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",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -34,9 +42,11 @@
|
||||||
"hono": ">=3.9.0"
|
"hono": ">=3.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"@sinclair/typebox": "^0.31.15",
|
"@sinclair/typebox": "^0.31.15",
|
||||||
"hono": "^3.11.7",
|
"hono": "^3.11.7",
|
||||||
"rimraf": "^5.0.5",
|
"publint": "^0.3.9",
|
||||||
|
"tsup": "^8.4.0",
|
||||||
"vitest": "^3.0.8"
|
"vitest": "^3.0.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "CommonJS",
|
|
||||||
"declaration": false,
|
|
||||||
"outDir": "./dist/cjs"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "ESNext",
|
|
||||||
"declaration": true,
|
|
||||||
"outDir": "./dist/esm"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
|
||||||
"types": ["vitest/globals"]
|
"types": ["vitest/globals"]
|
||||||
},
|
}
|
||||||
"include": ["src/**/*.ts"]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2932,9 +2932,11 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/typebox-validator@workspace:packages/typebox-validator"
|
resolution: "@hono/typebox-validator@workspace:packages/typebox-validator"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
"@sinclair/typebox": "npm:^0.31.15"
|
"@sinclair/typebox": "npm:^0.31.15"
|
||||||
hono: "npm:^3.11.7"
|
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"
|
vitest: "npm:^3.0.8"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@sinclair/typebox": ">=0.31.15 <1"
|
"@sinclair/typebox": ">=0.31.15 <1"
|
||||||
|
|
Loading…
Reference in New Issue