react-singleton-hook
Version:
Share custom hook state across all components
95 lines (94 loc) • 3.04 kB
JSON
{
"name": "react-singleton-hook",
"version": "4.0.1",
"description": "Share custom hook state across all components",
"keywords": [
"react",
"hooks"
],
"license": "MIT",
"author": "Vadim Yanushkevich <vadik.ya@gmail.com> (https://github.com/Light-Keeper)",
"homepage": "https://github.com/Light-Keeper/react-singleton-hook",
"repository": "github:Light-Keeper/react-singleton-hook",
"bugs": "https://github.com/Light-Keeper/react-singleton-hook/issues",
"main": "./lib/index.js",
"unpkg": "dist/react-singleton-hook.js",
"module": "es/index.js",
"files": [
"index.d.ts",
"dist",
"lib",
"src",
"es"
],
"scripts": {
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "babel src --out-dir es",
"build:umd": "cross-env NODE_ENV=development rollup -c -o dist/react-singleton-hook.js",
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/react-singleton-hook.min.js",
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"clean": "rimraf lib dist es coverage",
"lint": "eslint src test",
"prepare": "npm run clean && npm run build",
"pretest": "npm run lint",
"test": "jest",
"ncu": "ncu --reject react",
"ncu:apply": "ncu --reject react -u"
},
"peerDependencies": {
"react": "18"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/plugin-transform-react-display-name": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@babel/preset-env": "^7.20.2",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^13.2.0",
"@rollup/plugin-replace": "^4.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/jest-native": "^5.2.0",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^11.4.0",
"babel-jest": "^29.3.1",
"cross-env": "^7.0.3",
"es3ify": "^0.2.2",
"eslint": "^8.27.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"glob": "^8.0.3",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"metro-babel-register": "^0.73.3",
"metro-react-native-babel-preset": "^0.73.3",
"npm-check-updates": "^16.3.18",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-native": "^0.70.5",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^7.0.2"
},
"browserify": {
"transform": [
"loose-envify"
]
}
}