UNPKG

react-sweet-state

Version:

Global + local state combining the best of Redux and Context API

97 lines (96 loc) 3.23 kB
{ "name": "react-sweet-state", "version": "2.7.2", "description": "Global + local state combining the best of Redux and Context API", "keywords": [ "React", "React Context", "state management", "Redux" ], "types": "./types/index.d.ts", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "repository": { "type": "git", "url": "git+https://git@github.com/atlassian/react-sweet-state.git" }, "author": "Alberto Gasparin", "license": "MIT", "bugs": { "url": "https://github.com/atlassian/react-sweet-state/issues" }, "homepage": "https://github.com/atlassian/react-sweet-state#readme", "scripts": { "clean:build": "rm -rf ./lib", "build:cjs": "babel src/ -d lib/cjs --ignore \"src/**/__tests__\" --presets @babel/env", "build:esm": "babel src/ -d lib/esm --ignore \"src/**/__tests__\"", "build:flow": "echo lib/cjs lib/esm | xargs -n 1 cp src/index.js.flow", "build": "npm run clean:build -s && npm run build:cjs -s && npm run build:esm -s && npm run build:flow -s", "test": "jest", "types": "dtslint --expectOnly --localTs node_modules/typescript/lib ./types && tsc && flow --max-warnings=0", "lint": "eslint ./src", "preversion": "npm run lint -s && npm run types -s && npm run test -s", "prepack": "npm run preversion -s && npm run build -s", "docs": "npx docsify-cli serve docs", "start": "webpack-dev-server", "perf:start": "webpack-dev-server --config ./webpack.config.perf.js" }, "dependencies": { "use-sync-external-store": "^1.0.0" }, "peerDependencies": { "prop-types": "^15.0.0", "react": "^16.9.0 || ^17.0.0 || ^18.0.0", "scheduler": "*" }, "peerDependenciesMeta": { "react-dom": { "optional": true }, "react-native": { "optional": true } }, "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.17.7", "@babel/eslint-parser": "^7.17.0", "@babel/plugin-proposal-class-properties": "^7.16.7", "@babel/plugin-proposal-export-namespace-from": "^7.16.7", "@babel/plugin-transform-runtime": "^7.17.0", "@babel/preset-env": "^7.16.11", "@babel/preset-flow": "^7.16.7", "@babel/preset-react": "^7.16.7", "@babel/preset-typescript": "^7.16.7", "@babel/runtime": "^7.17.7", "@testing-library/react": "^16.0.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^5.15.0", "@typescript-eslint/parser": "^5.15.0", "babel-jest": "^27.5.1", "babel-loader": "^8.2.3", "dtslint": "^4.2.1", "eslint": "^8.11.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^26.1.1", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.29.4", "eslint-plugin-react-hooks": "^4.3.0", "flow-bin": "^0.173.0", "flow-copy-source": "^2.0.9", "jest": "^27.5.1", "prettier": "^2.6.0", "prop-types": "^15.8.1", "react": "^18.3.1", "react-dom": "^18.3.1", "typescript": "^4.6.2", "webpack": "^5.70.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.7.4" }, "sideEffects": false }