package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "name": "use-isomorphic-layout-effect",
  3. "version": "1.1.2",
  4. "description": "A React helper hook for scheduling a layout effect with a fallback to a regular effect for environments where layout effects should not be used (such as server-side rendering).",
  5. "main": "dist/use-isomorphic-layout-effect.cjs.js",
  6. "module": "dist/use-isomorphic-layout-effect.esm.js",
  7. "react-native": "./dist/use-isomorphic-layout-effect.native.esm.js",
  8. "browser": {
  9. "./dist/use-isomorphic-layout-effect.cjs.js": "./dist/use-isomorphic-layout-effect.browser.cjs.js",
  10. "./dist/use-isomorphic-layout-effect.esm.js": "./dist/use-isomorphic-layout-effect.browser.esm.js"
  11. },
  12. "files": [
  13. "dist"
  14. ],
  15. "scripts": {
  16. "test": "echo \"Warning: no test specified\"",
  17. "build": "preconstruct build",
  18. "postbuild": "cpy 'src/index.native.ts' . --rename=$npm_package_react_native",
  19. "prepare": "npm run build"
  20. },
  21. "repository": {
  22. "type": "git",
  23. "url": "git+https://github.com/Andarist/use-isomorphic-layout-effect.git"
  24. },
  25. "license": "MIT",
  26. "bugs": {
  27. "url": "https://github.com/Andarist/use-isomorphic-layout-effect/issues"
  28. },
  29. "homepage": "https://github.com/Andarist/use-isomorphic-layout-effect#readme",
  30. "peerDependencies": {
  31. "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
  32. },
  33. "peerDependenciesMeta": {
  34. "@types/react": {
  35. "optional": true
  36. }
  37. },
  38. "devDependencies": {
  39. "@babel/core": "^7.10.4",
  40. "@babel/preset-env": "^7.10.4",
  41. "@babel/preset-typescript": "^7.10.4",
  42. "@preconstruct/cli": "1.1.14",
  43. "@types/react": "^16.9.41",
  44. "cpy-cli": "^3.1.1",
  45. "husky": "^4.2.5",
  46. "lint-staged": "^10.2.11",
  47. "prettier": "^2.0.5",
  48. "react": "^16.13.1",
  49. "typescript": "^3.9.5"
  50. }
  51. }