UNPKG

trpc-to-openapi

Version:
94 lines (93 loc) 2.52 kB
{ "name": "trpc-to-openapi", "version": "3.1.0", "description": "tRPC OpenAPI", "author": "mcampa", "private": false, "license": "MIT", "keywords": [ "trpc", "openapi", "swagger" ], "homepage": "https://github.com/mcampa/trpc-to-openapi", "repository": "github:mcampa/trpc-to-openapi", "bugs": "https://github.com/mcampa/trpc-to-openapi/issues", "main": "dist/cjs/index.js", "module": "dist/esm/index.mjs", "typings": "dist/cjs/index.d.ts", "files": [ "dist/cjs", "dist/esm" ], "exports": { ".": { "require": "./dist/cjs/index.js", "import": "./dist/esm/index.mjs", "types": "./dist/cjs/index.d.ts" } }, "workspaces": [ ".", "examples/with-nextjs-appdir", "examples/with-nextjs", "examples/with-express", "examples/with-interop", "examples/with-serverless", "examples/with-fastify", "examples/with-nuxtjs" ], "scripts": { "t": "jest", "test": "tsc --noEmit && jest --verbose", "lint": "eslint . --ext .ts", "lint-fix": "eslint . --ext .ts --fix", "format": "prettier --write ./src ./test ./examples", "build": "npm test && rimraf dist && npm run build:cjs && npm run build:esm", "build:cjs": "tsc -p tsconfig.build.cjs.json", "build:esm": "tsc -p tsconfig.build.esm.json", "postbuild": "node rename.js" }, "peerDependencies": { "@trpc/server": "^11.1.0", "zod": "^4.0.0", "zod-openapi": "^5.0.1" }, "dependencies": { "co-body": "6.2.0", "h3": "1.15.1", "openapi3-ts": "4.4.0" }, "devDependencies": { "@trpc/client": "^11.1.0", "@types/aws-lambda": "^8.10.115", "@types/co-body": "^6.1.0", "@types/express": "^4.17.17", "@types/jest": "^29.5.1", "@types/koa": "^2.15.0", "@types/node": "^22", "@types/node-fetch": "^2.6.12", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "eslint": "^8.57.0", "express": "^4.18.2", "fastify": "^5.1.0", "formatter-for-jest-snapshots": "npm:prettier@^2", "jest": "^29.5.0", "koa": "^2.15.3", "next": "^15.3.1", "node-fetch": "^2.6.11", "node-mocks-http": "^1.12.2", "openapi-schema-validator": "^12.1.1", "prettier": "^3.4.1", "rimraf": "^6.0.1", "superjson": "^1.12.3", "ts-jest": "^29.1.0", "ts-node": "^10.9.1", "typescript": "^5.8.3", "zod-openapi": "^5.0.1" }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.6.1" } }