UNPKG

use-reducer-async

Version:
84 lines (83 loc) 2.57 kB
{ "name": "use-reducer-async", "description": "React useReducer with async actions", "version": "2.1.2", "author": "Daishi Kato", "repository": { "type": "git", "url": "https://github.com/dai-shi/use-reducer-async.git" }, "source": "./src/index.ts", "main": "./dist/index.umd.js", "module": "./dist/index.modern.js", "types": "./dist/src/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "types": "./dist/src/index.d.ts", "module": "./dist/index.modern.js", "import": "./dist/index.modern.mjs", "default": "./dist/index.umd.js" } }, "sideEffects": false, "files": [ "src", "dist" ], "scripts": { "compile": "microbundle build -f modern,umd --globals react=React", "postcompile": "cp dist/index.modern.js dist/index.modern.mjs && cp dist/index.modern.js.map dist/index.modern.mjs.map", "test": "run-s eslint tsc-test jest", "eslint": "eslint --ext .js,.ts,.tsx --ignore-pattern dist .", "jest": "jest", "tsc-test": "tsc --project . --noEmit", "apidoc": "documentation readme --section API --markdown-toc false --parse-extension ts src/*.ts", "examples:01_minimal": "DIR=01_minimal EXT=js webpack serve", "examples:02_typescript": "DIR=02_typescript webpack serve", "examples:03_getstate": "DIR=03_getstate webpack serve", "examples:04_abort": "DIR=04_abort webpack serve" }, "jest": { "testEnvironment": "jsdom", "preset": "ts-jest/presets/js-with-ts" }, "keywords": [ "react", "reducer", "async" ], "license": "MIT", "dependencies": {}, "devDependencies": { "@testing-library/react": "^13.2.0", "@types/jest": "^27.5.1", "@types/react": "^18.0.9", "@types/react-dom": "^18.0.5", "@typescript-eslint/eslint-plugin": "^5.26.0", "@typescript-eslint/parser": "^5.26.0", "documentation": "^13.2.5", "eslint": "^8.16.0", "eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-react": "^7.30.0", "eslint-plugin-react-hooks": "^4.5.0", "html-webpack-plugin": "^5.5.0", "jest": "^28.1.0", "jest-environment-jsdom": "^28.1.0", "microbundle": "^0.15.0", "npm-run-all": "^4.1.5", "react": "^18.1.0", "react-dom": "^18.1.0", "ts-jest": "^28.0.3", "ts-loader": "^9.3.0", "typescript": "^4.6.4", "webpack": "^5.72.1", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.9.0" }, "peerDependencies": { "react": ">=16.8.0" } }