UNPKG

@liuyunjs/constate

Version:

Yet another React state management library that lets you work with local state and scale up to global state with ease

103 lines (102 loc) 3.14 kB
{ "name": "@liuyunjs/constate", "version": "3.4.0", "description": "Yet another React state management library that lets you work with local state and scale up to global state with ease", "license": "MIT", "repository": "liuyunjs/constate", "main": "dist/constate.cjs.js", "module": "dist/constate.es.js", "jsnext:main": "dist/constate.es.js", "unpkg": "dist/constate.min.js", "types": "dist/ts/src", "sideEffects": false, "author": { "name": "Diego Haz", "email": "hazdiego@gmail.com", "url": "https://github.com/diegohaz" }, "files": [ "dist", "src" ], "scripts": { "test": "jest", "test:all": "yarn lint && yarn build && yarn type-check && yarn test && yarn examples:build && yarn clean", "coverage": "npm test -- --coverage", "postcoverage": "open-cli coverage/lcov-report/index.html", "type-check": "tsc --noEmit", "lint": "eslint . --ext js,ts,tsx", "clean": "rimraf dist", "prebuild": "npm run clean", "build": "tsc --emitDeclarationOnly && rollup -c", "prerelease": "npm run lint && npm test && npm run build", "release": "standard-version", "postpublish": "git push origin HEAD --follow-tags", "prepare": "npm run examples:install", "examples": "npm run start --prefix examples", "examples:install": "yarn --cwd examples", "examples:build": "npm run build --prefix examples", "examples:upgrade": "yarn upgrade-interactive --latest --cwd examples" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,ts,tsx}": [ "eslint --ext js,ts,tsx --fix" ] }, "keywords": [ "constate" ], "devDependencies": { "@babel/cli": "7.13.0", "@babel/core": "7.13.8", "@babel/preset-env": "7.13.8", "@babel/preset-react": "7.12.13", "@babel/preset-typescript": "7.13.0", "@rollup/plugin-babel": "5.3.0", "@rollup/plugin-commonjs": "15.1.0", "@rollup/plugin-node-resolve": "9.0.0", "@rollup/plugin-replace": "2.4.1", "@testing-library/react": "11.2.5", "@types/jest": "26.0.20", "@types/prop-types": "15.7.3", "@types/react": "16.9.53", "@types/react-dom": "16.9.8", "@typescript-eslint/eslint-plugin": "4.15.2", "@typescript-eslint/parser": "4.15.2", "babel-eslint": "10.1.0", "babel-jest": "26.6.3", "eslint": "7.21.0", "eslint-config-airbnb": "18.2.1", "eslint-config-prettier": "6.14.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-jsx-a11y": "6.4.1", "eslint-plugin-prettier": "3.3.1", "eslint-plugin-react": "7.22.0", "husky": "4.3.0", "jest": "26.6.3", "lint-staged": "10.5.4", "open-cli": "6.0.1", "prettier": "2.3.0", "raf": "3.4.1", "react": "17.0.1", "react-dom": "17.0.1", "react-test-renderer": "17.0.1", "rimraf": "3.0.2", "rollup": "2.40.0", "rollup-plugin-ignore": "1.0.9", "rollup-plugin-terser": "7.0.2", "standard-version": "9.1.1", "typescript": "4.2.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0" }, "dependencies": { "tslib": "2.2.0" } }