UNPKG

@kubb/plugin-swr

Version:

SWR hooks generator plugin for Kubb, creating type-safe data fetching hooks from OpenAPI specifications for React and Next.js applications.

108 lines 2.57 kB
{ "name": "@kubb/plugin-swr", "version": "4.29.1", "description": "SWR hooks generator plugin for Kubb, creating type-safe data fetching hooks from OpenAPI specifications for React and Next.js applications.", "keywords": [ "swr", "react", "nextjs", "next", "next.js", "vercel", "data-fetching", "react-hooks", "hooks", "api-client", "sdk-generator", "typescript", "type-safe", "openapi", "swagger", "oas", "code-generator", "codegen", "plugins", "kubb" ], "repository": { "type": "git", "url": "git+https://github.com/kubb-labs/kubb.git", "directory": "packages/plugin-swr" }, "license": "MIT", "author": "stijnvanhulle", "sideEffects": false, "type": "module", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./components": { "import": "./dist/components.js", "require": "./dist/components.cjs" }, "./generators": { "import": "./dist/generators.js", "require": "./dist/generators.cjs" }, "./package.json": "./package.json" }, "types": "./dist/index.d.ts", "typesVersions": { "*": { "components": [ "./dist/components.d.ts" ], "generators": [ "./dist/generators.d.ts" ] } }, "files": [ "src", "dist", "!/**/**.test.**", "!/**/__tests__/**" ], "size-limit": [ { "path": "./dist/*.js", "limit": "510 KiB", "gzip": true } ], "dependencies": { "@kubb/react-fabric": "0.13.1", "remeda": "^2.33.6", "@kubb/core": "4.29.1", "@kubb/oas": "4.29.1", "@kubb/plugin-client": "4.29.1", "@kubb/plugin-oas": "4.29.1", "@kubb/plugin-ts": "4.29.1", "@kubb/plugin-zod": "4.29.1" }, "peerDependencies": { "@kubb/react-fabric": "0.13.0" }, "engines": { "node": ">=20" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "scripts": { "build": "tsdown && size-limit", "clean": "rimraf ./dist", "lint": "bun biome lint .", "lint:fix": "bun biome lint --fix --unsafe .", "release": "pnpm publish --no-git-check", "release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check", "start": "tsdown --watch", "test": "vitest --passWithNoTests", "typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false" } }