react-atomic-state
Version:
Dead simple React global state management based on use-sync-external-store
67 lines (66 loc) • 1.63 kB
JSON
{
"name": "react-atomic-state",
"version": "2.0.0",
"license": "MIT",
"description": "Dead simple React global state management based on use-sync-external-store",
"author": "Mathieu Acthernoene <zoontek@gmail.com>",
"homepage": "https://github.com/zoontek/react-atomic-state#readme",
"repository": {
"type": "git",
"url": "https://github.com/zoontek/react-atomic-state.git"
},
"sideEffects": false,
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"keywords": [
"global",
"react",
"recoil",
"redux",
"state",
"store",
"zustand"
],
"scripts": {
"build": "yarn clean && microbundle -f cjs,es",
"clean": "rm -rf dist",
"dev": "microbundle watch",
"format": "prettier '**/*' -u -w",
"test": "vitest --run",
"test:watch": "vitest --watch",
"typecheck": "tsc --noEmit",
"prepack": "yarn typecheck && yarn test && yarn build"
},
"browserslist": [
">0.2%",
"not op_mini all",
"not dead"
],
"prettier": {
"trailingComma": "all"
},
"peerDependencies": {
"react": ">=18.0.0"
},
"dependencies": {
"use-sync-external-store": "^1.2.0"
},
"devDependencies": {
"@testing-library/react": "^14.1.2",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"@types/use-sync-external-store": "^0.0.6",
"jsdom": "^23.0.1",
"microbundle": "^0.15.1",
"prettier": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.3.3",
"vitest": "^1.0.4"
}
}