openapi-react-query
Version:
Fast, type-safe @tanstack/react-query client to work with your OpenAPI schema.
87 lines • 2.44 kB
JSON
{
"name": "openapi-react-query",
"description": "Fast, type-safe @tanstack/react-query client to work with your OpenAPI schema.",
"version": "0.3.1",
"author": {
"name": "Martin Paucot",
"email": "contact@martin-paucot.fr"
},
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
},
"./*": "./*"
},
"homepage": "https://openapi-ts.dev",
"repository": {
"type": "git",
"url": "https://github.com/openapi-ts/openapi-typescript",
"directory": "packages/openapi-react-query"
},
"bugs": {
"url": "https://github.com/openapi-ts/openapi-typescript/issues"
},
"keywords": [
"openapi",
"swagger",
"rest",
"api",
"oapi_3",
"oapi_3_1",
"typescript",
"fetch",
"react",
"react-query",
"tanstack"
],
"dependencies": {
"openapi-typescript-helpers": "^0.0.15"
},
"devDependencies": {
"@tanstack/react-query": "^5.66.9",
"@testing-library/react": "^16.2.0",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"del-cli": "^5.1.0",
"esbuild": "^0.25.0",
"execa": "^9.5.2",
"msw": "^2.7.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.1.2",
"openapi-fetch": "^0.13.5",
"openapi-typescript": "^7.6.1"
},
"peerDependencies": {
"@tanstack/react-query": "^5.25.0",
"openapi-fetch": "^0.13.5"
},
"scripts": {
"build": "pnpm run build:clean && pnpm run build:esm && pnpm run build:cjs",
"build:clean": "del-cli dist",
"build:esm": "tsc -p tsconfig.build.json",
"build:cjs": "esbuild --bundle --platform=node --target=es2019 --outfile=dist/index.cjs --external:typescript src/index.ts",
"dev": "tsc -p tsconfig.build.json --watch",
"format": "biome format . --write",
"lint": "biome check .",
"generate-types": "openapi-typescript test/fixtures/api.yaml -o test/fixtures/api.d.ts",
"pretest": "pnpm run generate-types",
"test": "pnpm run \"/^test:/\"",
"test:js": "vitest run",
"test:ts": "tsc --noEmit",
"version": "pnpm run prepare && pnpm run build"
}
}