UNPKG

graphql-codegen-plugin-typescript-swr

Version:

A GraphQL code generator plug-in that automatically generates utility functions for SWR.

85 lines (84 loc) 2.55 kB
{ "name": "graphql-codegen-plugin-typescript-swr", "version": "0.8.5", "description": "A GraphQL code generator plug-in that automatically generates utility functions for SWR.", "main": "build/main/index.js", "typings": "build/main/index.d.ts", "module": "build/module/index.js", "repository": "https://github.com/croutonn/graphql-codegen-plugin-typescript-swr", "license": "MIT", "engines": { "node": ">=14.0.0" }, "keywords": [ "graphql", "codegen", "typescript", "ts", "swr", "stale-while-revalidate", "react" ], "scripts": { "build": "run-p build:*", "build:main": "tsc -p tsconfig.main.json", "build:module": "tsc -p tsconfig.module.json", "fix": "run-s fix:*", "fix:prettier": "prettier \"src/**/*.ts\" --write", "fix:lint": "eslint src --ext .ts --fix", "test": "run-s build test:*", "test:lint": "eslint src --ext .ts", "test:prettier": "prettier \"src/**/*.ts\" --list-different", "test:integrate": "jest --no-watchman", "watch:build": "tsc -p tsconfig.json -w" }, "peerDependencies": { "graphql": "<17.0.0" }, "dependencies": { "@graphql-codegen/plugin-helpers": "^2.3.1", "@graphql-codegen/visitor-plugin-common": "^2.5.1", "@types/micromatch": "^4.0.1", "graphql-request": "^4.0.0", "micromatch": "^4.0.4", "pascal-case": "^3.1.2", "swr": "^1.0.0", "tslib": "^2.2.0" }, "devDependencies": { "@graphql-codegen/testing": "^1.17.7", "@graphql-codegen/typescript": "^2.0.0", "@graphql-codegen/typescript-graphql-request": "^4.0.0", "@graphql-codegen/typescript-operations": "^2.0.0", "@types/jest": "^29.0.0", "@types/node": "^18.0.0", "@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/parser": "^5.4.0", "eslint": "^8.0.0", "eslint-config-airbnb": "^19.0.0", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-prettier": "^8.3.0", "eslint-import-resolver-typescript": "^3.0.0", "eslint-plugin-import": "^2.23.3", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.23.2", "eslint-plugin-react-hooks": "^4.2.0", "graphql": "<17.0.0", "jest": "^29.0.0", "jest-docblock": "^29.0.0", "jest-junit": "^15.0.0", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "react": "^17.0.2", "ts-jest": "^29.0.0", "typescript": "^4.1.3" }, "files": [ "build/main", "build/module", "!**/*.spec.*", "!**/*.json", "LICENSE", "README.md" ] }