@nhost/react
Version:
Nhost React library
80 lines • 2.29 kB
JSON
{
"name": "@nhost/react",
"version": "3.11.1",
"description": "Nhost React library",
"license": "MIT",
"keywords": [
"nhost",
"hasura",
"storage",
"auth",
"authentication",
"graphql",
"postgresql",
"realtime",
"react"
],
"author": "Nhost",
"homepage": "https://nhost.io",
"bugs": "https://github.com/nhost/nhost/issues",
"repository": {
"type": "git",
"url": "https://github.com/nhost/nhost.git"
},
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
"dist",
"umd",
"README.md"
],
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/index.d.ts",
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@xstate/react": "^3.2.2",
"jwt-decode": "^4.0.0",
"react-dom": "^18.2.0",
"xstate": "^4.38.3",
"@nhost/nhost-js": "3.3.0"
},
"devDependencies": {
"@types/react": "^18.2.73",
"react": "^18.2.0",
"@nhost/docgen": "0.3.0"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.1.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.1.0 || ^19.0.0"
},
"scripts": {
"dev": "vite build --config ../../config/vite.react.dev.config.js",
"build": "run-p build:lib build:umd",
"build:lib": "vite build --config ../../config/vite.react.config.js",
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
"test": "vitest run --config ../../config/vite.react.config.js",
"test:watch": "vitest --config ../../config/vite.react.config.js",
"test:coverage": "vitest run --coverage --config ../../config/vite.lib.config.js",
"prettier": "prettier --check src/",
"prettier:fix": "prettier --write src/",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"verify": "run-p prettier lint",
"verify:fix": "run-p prettier:fix lint:fix",
"typedoc": "typedoc --options ./react.typedoc.json --tsconfig ./typedoc.tsconfig.json",
"docgen": "pnpm typedoc && docgen --config ./react.docgen.json"
}
}