UNPKG

react-hooks-worker

Version:
83 lines (82 loc) 2.71 kB
{ "name": "react-hooks-worker", "description": "React custom hooks for web workers", "version": "1.0.4", "author": "Daishi Kato", "repository": { "type": "git", "url": "https://github.com/dai-shi/react-hooks-worker.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.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map", "test": "npm run eslint && npm run tsc-test && npm run jest", "eslint": "eslint --ext .js,.ts,.tsx --ignore-pattern dist .", "jest": "jest --preset ts-jest/presets/js-with-ts", "tsc-test": "tsc --project . --noEmit", "apidoc": "documentation readme --section API --markdown-toc false --parse-extension ts src/exposeWorker.ts src/useWorker.ts", "examples:01_minimal": "DIR=01_minimal EXT=js webpack serve", "examples:02_typescript": "DIR=02_typescript webpack serve", "examples:03_comparison": "DIR=03_comparison webpack serve", "examples:04_inline": "DIR=04_inline webpack serve", "examples:05_generator": "DIR=05_generator webpack serve", "examples:06_async": "DIR=06_async webpack serve" }, "keywords": [ "react", "hooks", "worker", "web worker" ], "license": "MIT", "dependencies": {}, "devDependencies": { "@types/jest": "^27.4.1", "@types/react": "^17.0.39", "@types/react-dom": "^17.0.13", "@types/react-test-renderer": "^17.0.1", "@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/parser": "^5.13.0", "documentation": "^13.2.5", "eslint": "^8.10.0", "eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-react": "^7.29.3", "eslint-plugin-react-hooks": "^4.3.0", "html-webpack-plugin": "^5.5.0", "jest": "^27.5.1", "microbundle": "^0.14.2", "npm-run-all": "^4.1.5", "react": "^17.0.2", "react-dom": "^17.0.2", "react-test-renderer": "^17.0.2", "ts-jest": "^27.1.3", "ts-loader": "^9.2.7", "typescript": "^4.6.2", "webpack": "^5.70.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.7.4" }, "peerDependencies": { "react": ">=16.8.0" } }