|
| 1 | +{ |
| 2 | + "name": "openapi-tanstack-query", |
| 3 | + "description": "Fast, type-safe fetch client for your OpenAPI schema. Only 5 kb (min). Works with React, Vue, Svelte, or vanilla JS.", |
| 4 | + "version": "0.0.1", |
| 5 | + "author": { |
| 6 | + "name": "Drew Powers", |
| 7 | + |
| 8 | + }, |
| 9 | + "license": "MIT", |
| 10 | + "type": "module", |
| 11 | + "main": "./dist/index.js", |
| 12 | + "module": "./dist/index.js", |
| 13 | + "types": "./dist/index.d.ts", |
| 14 | + "exports": { |
| 15 | + ".": { |
| 16 | + "import": { |
| 17 | + "types": "./dist/index.d.ts", |
| 18 | + "default": "./dist/index.js" |
| 19 | + }, |
| 20 | + "require": { |
| 21 | + "types": "./dist/cjs/index.d.cts", |
| 22 | + "default": "./dist/cjs/index.cjs" |
| 23 | + } |
| 24 | + }, |
| 25 | + "./*": "./*" |
| 26 | + }, |
| 27 | + "homepage": "https://openapi-ts.dev", |
| 28 | + "repository": { |
| 29 | + "type": "git", |
| 30 | + "url": "https://github.com/openapi-ts/openapi-typescript", |
| 31 | + "directory": "packages/openapi-fetch" |
| 32 | + }, |
| 33 | + "bugs": { |
| 34 | + "url": "https://github.com/openapi-ts/openapi-typescript/issues" |
| 35 | + }, |
| 36 | + "keywords": [ |
| 37 | + "openapi", |
| 38 | + "swagger", |
| 39 | + "rest", |
| 40 | + "api", |
| 41 | + "oapi_3", |
| 42 | + "oapi_3_1", |
| 43 | + "typescript", |
| 44 | + "fetch", |
| 45 | + "react", |
| 46 | + "vue", |
| 47 | + "svelte" |
| 48 | + ], |
| 49 | + "scripts": { |
| 50 | + "build": "pnpm run build:clean && pnpm run build:js && pnpm run build:js-min && pnpm run build:cjs", |
| 51 | + "build:clean": "del-cli dist", |
| 52 | + "build:js": "mkdir -p dist && cp src/* dist", |
| 53 | + "build:js-min": "esbuild --bundle src/index.js --format=esm --minify --outfile=dist/index.min.js && cp dist/index.d.ts dist/index.min.d.ts", |
| 54 | + "build:cjs": "esbuild --bundle src/index.js --format=cjs --outfile=dist/cjs/index.cjs && cp dist/index.d.ts dist/cjs/index.d.cts", |
| 55 | + "format": "biome format . --write", |
| 56 | + "lint": "biome check .", |
| 57 | + "generate-types": "openapi-typescript test/fixtures/api.yaml -o test/fixtures/api.d.ts", |
| 58 | + "pretest": "pnpm run generate-types", |
| 59 | + "test": "pnpm run \"/^test:/\"", |
| 60 | + "test:js": "vitest run", |
| 61 | + "test:ts": "tsc --noEmit", |
| 62 | + "version": "pnpm run prepare && pnpm run build" |
| 63 | + }, |
| 64 | + "dependencies": { |
| 65 | + "@tanstack/react-query": "^5.45.1", |
| 66 | + "nanoid": "^5.0.7", |
| 67 | + "openapi-fetch": "workspace:^", |
| 68 | + "openapi-typescript-helpers": "workspace:^" |
| 69 | + }, |
| 70 | + "devDependencies": { |
| 71 | + "@testing-library/react": "^16.0.0", |
| 72 | + "@types/react": "18.3.1", |
| 73 | + "@vitejs/plugin-react": "^4.3.1", |
| 74 | + "axios": "^1.7.2", |
| 75 | + "del-cli": "^5.1.0", |
| 76 | + "esbuild": "^0.20.2", |
| 77 | + "execa": "^8.0.1", |
| 78 | + "msw": "^2.3.1", |
| 79 | + "openapi-typescript": "workspace:^", |
| 80 | + "openapi-typescript-codegen": "^0.25.0", |
| 81 | + "openapi-typescript-fetch": "^2.0.0", |
| 82 | + "react": "^18.3.1", |
| 83 | + "superagent": "^9.0.2", |
| 84 | + "typescript": "^5.4.5", |
| 85 | + "vitest": "^1.6.0" |
| 86 | + } |
| 87 | +} |
0 commit comments