build(typia-validator): lint published package (#1067)
parent
0e43d03cd4
commit
780cb787d1
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/typia-validator
|
- run: yarn workspaces focus hono-middleware @hono/typia-validator
|
||||||
- run: yarn workspace @hono/typia-validator build
|
- run: yarn workspace @hono/typia-validator build
|
||||||
|
- run: yarn workspace @hono/typia-validator publint
|
||||||
- run: yarn test --coverage --project @hono/typia-validator
|
- run: yarn test --coverage --project @hono/typia-validator
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -3,33 +3,38 @@
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"description": "Validator middleware using Typia",
|
"description": "Validator middleware using Typia",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/cjs/index.js",
|
"module": "dist/index.js",
|
||||||
"module": "dist/esm/index.js",
|
"types": "dist/index.d.ts",
|
||||||
"types": "dist/esm/index.d.ts",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"require": "./dist/cjs/index.js",
|
"import": {
|
||||||
"import": "./dist/esm/index.js",
|
"types": "./dist/index.d.ts",
|
||||||
"types": "./dist/esm/index.d.ts",
|
"default": "./dist/index.js"
|
||||||
"default": "./dist/cjs/index.js"
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"./http": {
|
"./http": {
|
||||||
"require": "./dist/cjs/http.js",
|
"import": {
|
||||||
"import": "./dist/esm/http.js",
|
"types": "./dist/http.d.ts",
|
||||||
"types": "./dist/esm/http.d.ts",
|
"default": "./dist/http.js"
|
||||||
"default": "./dist/cjs/http.js"
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/http.d.cts",
|
||||||
|
"default": "./dist/http.cjs"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest",
|
"build": "tsup ./src/index.ts ./src/http.ts",
|
||||||
"build:cjs": "tsc -p tsconfig.cjs.json",
|
"prepack": "yarn build",
|
||||||
"build:esm": "tsc -p tsconfig.esm.json",
|
"publint": "attw --pack --profile node16 && 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": {
|
||||||
|
@ -38,7 +43,8 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/honojs/middleware.git"
|
"url": "git+https://github.com/honojs/middleware.git",
|
||||||
|
"directory": "packages/typia-validator"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/honojs/middleware",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -46,9 +52,10 @@
|
||||||
"typia": "^7.0.0 || ^8.0.0"
|
"typia": "^7.0.0 || ^8.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"hono": "^3.11.7",
|
"hono": "^3.11.7",
|
||||||
"rimraf": "^5.0.5",
|
"publint": "^0.3.9",
|
||||||
"typescript": "^5.4.0",
|
"tsup": "^8.4.0",
|
||||||
"typia": "^8.0.3",
|
"typia": "^8.0.3",
|
||||||
"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,10 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
|
||||||
"types": ["vitest/globals"]
|
"types": ["vitest/globals"]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts"],
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
"transform": "typia/lib/transform"
|
"transform": "typia/lib/transform"
|
||||||
|
|
25
yarn.lock
25
yarn.lock
|
@ -2941,9 +2941,10 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/typia-validator@workspace:packages/typia-validator"
|
resolution: "@hono/typia-validator@workspace:packages/typia-validator"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
hono: "npm:^3.11.7"
|
hono: "npm:^3.11.7"
|
||||||
rimraf: "npm:^5.0.5"
|
publint: "npm:^0.3.9"
|
||||||
typescript: "npm:^5.4.0"
|
tsup: "npm:^8.4.0"
|
||||||
typia: "npm:^8.0.3"
|
typia: "npm:^8.0.3"
|
||||||
vitest: "npm:^3.0.8"
|
vitest: "npm:^3.0.8"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -17001,16 +17002,6 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"typescript@npm:^5.4.0":
|
|
||||||
version: 5.7.2
|
|
||||||
resolution: "typescript@npm:5.7.2"
|
|
||||||
bin:
|
|
||||||
tsc: bin/tsc
|
|
||||||
tsserver: bin/tsserver
|
|
||||||
checksum: a873118b5201b2ef332127ef5c63fb9d9c155e6fdbe211cbd9d8e65877283797cca76546bad742eea36ed7efbe3424a30376818f79c7318512064e8625d61622
|
|
||||||
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"
|
||||||
|
@ -17071,16 +17062,6 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"typescript@patch:typescript@npm%3A^5.4.0#optional!builtin<compat/typescript>":
|
|
||||||
version: 5.7.2
|
|
||||||
resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin<compat/typescript>::version=5.7.2&hash=e012d7"
|
|
||||||
bin:
|
|
||||||
tsc: bin/tsc
|
|
||||||
tsserver: bin/tsserver
|
|
||||||
checksum: c891ccf04008bc1305ba34053db951f8a4584b4a1bf2f68fd972c4a354df3dc5e62c8bfed4f6ac2d12e5b3b1c49af312c83a651048f818cd5b4949d17baacd79
|
|
||||||
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"
|
||||||
|
|
Loading…
Reference in New Issue