UNPKG

@dr.pogodin/react-global-state

Version:
79 lines (78 loc) 2.57 kB
{ "name": "@dr.pogodin/react-global-state", "version": "0.19.2", "description": "Hook-based global state for React", "main": "./build/code/index.js", "types": "./build/types/index.d.ts", "exports": { "require": "./build/cjs/index.js", "default": "./build/code/index.js" }, "scripts": { "build": "rimraf build && npm run build:types && npm run build:code && npm run build:cjs", "build:cjs": "rimraf buidl/cjs && babel src -x .ts,.tsx --out-dir build/cjs --source-maps", "build:code": "rimraf build/code && babel src -x .ts,.tsx --out-dir build/code --source-maps --config-file ./babel.module.config.js", "build:types": "rimraf build/types && tsc --project tsconfig.types.json", "jest": "npm run jest:types && npm run jest:logic", "jest:logic": "jest --config jest/config.json -w 1", "jest:types": "tstyche", "lint": "eslint", "test": "npm run lint && npm run typecheck && npm run jest", "typecheck": "tsc --project __tests__/tsconfig.json" }, "repository": "github:birdofpreyru/react-global-state", "keywords": [ "react", "reactjs", "state", "hooks", "hook", "global", "typescript" ], "author": "Dr. Sergey Pogodin <doc@pogodin.studio> (https://dr.pogodin.studio)", "license": "MIT", "bugs": { "url": "https://github.com/birdofpreyru/react-global-state.git/issues" }, "homepage": "https://dr.pogodin.studio/docs/react-global-state/index.html", "engines": { "node": ">=18" }, "dependencies": { "@babel/runtime": "^7.27.1", "@dr.pogodin/js-utils": "^0.0.18", "@types/lodash": "^4.17.16", "lodash": "^4.17.21", "uuid": "^11.1.0" }, "devDependencies": { "@babel/cli": "^7.27.2", "@babel/core": "^7.27.1", "@babel/node": "^7.27.1", "@babel/plugin-transform-runtime": "^7.27.1", "@babel/preset-env": "^7.27.2", "@babel/preset-react": "^7.27.1", "@babel/preset-typescript": "^7.27.1", "@dr.pogodin/eslint-configs": "^0.0.6", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.3.0", "@tsconfig/recommended": "^1.0.8", "@types/jest": "^29.5.14", "@types/pretty": "^2.0.3", "@types/react": "^19.1.3", "@types/react-dom": "^19.1.3", "babel-jest": "^29.7.0", "babel-plugin-module-resolver": "^5.0.2", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "mockdate": "^3.0.5", "rimraf": "^6.0.1", "tstyche": "^3.5.0", "typescript": "^5.8.3" }, "peerDependencies": { "react": "^19.1.0", "react-dom": "^19.1.0" } }