build(trpc-server): lint published package (#1064)
parent
ee540d95fe
commit
d9671a5891
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/trpc-server
|
- run: yarn workspaces focus hono-middleware @hono/trpc-server
|
||||||
- run: yarn workspace @hono/trpc-server build
|
- run: yarn workspace @hono/trpc-server build
|
||||||
|
- run: yarn workspace @hono/trpc-server publint
|
||||||
- run: yarn test --coverage --project @hono/trpc-server
|
- run: yarn test --coverage --project @hono/trpc-server
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -2,19 +2,29 @@
|
||||||
"name": "@hono/trpc-server",
|
"name": "@hono/trpc-server",
|
||||||
"version": "0.3.4",
|
"version": "0.3.4",
|
||||||
"description": "tRPC Server Middleware for Hono",
|
"description": "tRPC Server Middleware for Hono",
|
||||||
"main": "dist/cjs/index.js",
|
"type": "module",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/index.js",
|
||||||
"types": "dist/esm/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"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",
|
"publint": "attw --pack && publint",
|
||||||
"build": "rimraf dist && yarn build:cjs && yarn build:esm",
|
"test": "vitest"
|
||||||
"prerelease": "yarn build && yarn test",
|
},
|
||||||
"release": "yarn publish"
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
@ -23,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/trpc-server"
|
||||||
},
|
},
|
||||||
"homepage": "https://honojs.dev",
|
"homepage": "https://honojs.dev",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@ -31,13 +42,15 @@
|
||||||
"hono": ">=4.*"
|
"hono": ">=4.*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@trpc/server": "^10.10.0 || >11.0.0-rc",
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
|
"@trpc/server": "^11.0.0",
|
||||||
"hono": "^4.3.6",
|
"hono": "^4.3.6",
|
||||||
"rimraf": "^5.0.5",
|
"publint": "^0.3.9",
|
||||||
|
"tsup": "^8.4.0",
|
||||||
"vitest": "^3.0.8",
|
"vitest": "^3.0.8",
|
||||||
"zod": "^3.20.2"
|
"zod": "^3.20.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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"]
|
|
||||||
}
|
}
|
||||||
|
|
16
yarn.lock
16
yarn.lock
|
@ -2898,9 +2898,11 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/trpc-server@workspace:packages/trpc-server"
|
resolution: "@hono/trpc-server@workspace:packages/trpc-server"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@trpc/server": "npm:^10.10.0 || >11.0.0-rc"
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
|
"@trpc/server": "npm:^11.0.0"
|
||||||
hono: "npm:^4.3.6"
|
hono: "npm:^4.3.6"
|
||||||
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"
|
||||||
zod: "npm:^3.20.2"
|
zod: "npm:^3.20.2"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -4547,10 +4549,12 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@trpc/server@npm:^10.10.0 || >11.0.0-rc":
|
"@trpc/server@npm:^11.0.0":
|
||||||
version: 11.0.0-rc.433
|
version: 11.0.0
|
||||||
resolution: "@trpc/server@npm:11.0.0-rc.433"
|
resolution: "@trpc/server@npm:11.0.0"
|
||||||
checksum: feb96e58b049566ab4b10ab563130db360ddd80f211a0048e92f5cbbefa0bf174befe776a7fbd8dd799eece61578b3a8d7ce4eca122e1257e49b99f2bd467cd3
|
peerDependencies:
|
||||||
|
typescript: ">=5.7.2"
|
||||||
|
checksum: 0fa6b9fd44d0378471df827fa1f35623d2ef463fe1af7c89de9433b22c81d0db5d60695a77a5ca723e91d2b77be08a48dee77703851109151c8e9febab478125
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue