package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "name": "@reduxjs/toolkit",
  3. "version": "2.0.1",
  4. "description": "The official, opinionated, batteries-included toolset for efficient Redux development",
  5. "author": "Mark Erikson <mark@isquaredsoftware.com>",
  6. "license": "MIT",
  7. "repository": {
  8. "type": "git",
  9. "url": "git+https://github.com/reduxjs/redux-toolkit.git"
  10. },
  11. "keywords": [
  12. "redux",
  13. "react",
  14. "starter",
  15. "toolkit",
  16. "reducer",
  17. "slice",
  18. "immer",
  19. "immutable",
  20. "redux-toolkit"
  21. ],
  22. "publishConfig": {
  23. "access": "public"
  24. },
  25. "module": "dist/redux-toolkit.legacy-esm.js",
  26. "main": "dist/cjs/index.js",
  27. "types": "dist/index.d.ts",
  28. "exports": {
  29. "./package.json": "./package.json",
  30. ".": {
  31. "types": "./dist/index.d.ts",
  32. "import": "./dist/redux-toolkit.modern.mjs",
  33. "default": "./dist/cjs/index.js"
  34. },
  35. "./react": {
  36. "types": "./dist/react/index.d.ts",
  37. "import": "./dist/react/redux-toolkit-react.modern.mjs",
  38. "default": "./dist/react/cjs/index.js"
  39. },
  40. "./query": {
  41. "types": "./dist/query/index.d.ts",
  42. "import": "./dist/query/rtk-query.modern.mjs",
  43. "default": "./dist/query/cjs/index.js"
  44. },
  45. "./query/react": {
  46. "types": "./dist/query/react/index.d.ts",
  47. "import": "./dist/query/react/rtk-query-react.modern.mjs",
  48. "default": "./dist/query/react/cjs/index.js"
  49. }
  50. },
  51. "devDependencies": {
  52. "@arethetypeswrong/cli": "^0.13.1",
  53. "@microsoft/api-extractor": "^7.13.2",
  54. "@phryneas/ts-version": "^1.0.2",
  55. "@size-limit/preset-small-lib": "^4.11.0",
  56. "@testing-library/react": "^13.3.0",
  57. "@testing-library/user-event": "^13.1.5",
  58. "@types/json-stringify-safe": "^5.0.0",
  59. "@types/nanoid": "^2.1.0",
  60. "@types/node": "^10.14.4",
  61. "@types/query-string": "^6.3.0",
  62. "@types/react": "^18.0.12",
  63. "@types/react-dom": "^18.0.5",
  64. "@types/yargs": "^16.0.1",
  65. "@typescript-eslint/eslint-plugin": "^6",
  66. "@typescript-eslint/parser": "^6",
  67. "axios": "^0.19.2",
  68. "console-testing-library": "0.6.1",
  69. "esbuild-extra": "^0.3.1",
  70. "eslint": "^7.25.0",
  71. "eslint-config-prettier": "^8.3.0",
  72. "eslint-config-react-app": "^7.0.1",
  73. "eslint-plugin-flowtype": "^5.7.2",
  74. "eslint-plugin-import": "^2.22.1",
  75. "eslint-plugin-jsx-a11y": "^6.4.1",
  76. "eslint-plugin-prettier": "^3.4.0",
  77. "eslint-plugin-react": "^7.23.2",
  78. "eslint-plugin-react-hooks": "^4.2.0",
  79. "fs-extra": "^9.1.0",
  80. "invariant": "^2.2.4",
  81. "jsdom": "^21.0.0",
  82. "json-stringify-safe": "^5.0.1",
  83. "msw": "^0.40.2",
  84. "node-fetch": "^2.6.1",
  85. "prettier": "^2.2.1",
  86. "query-string": "^7.0.1",
  87. "rimraf": "^3.0.2",
  88. "size-limit": "^4.11.0",
  89. "tslib": "^1.10.0",
  90. "tsup": "^7.2.0",
  91. "tsx": "^3.12.2",
  92. "typescript": "5.2",
  93. "vitest": "^0.30.1",
  94. "yargs": "^15.3.1"
  95. },
  96. "scripts": {
  97. "run-build": "tsup",
  98. "build": "yarn rimraf dist && echo Compiling TS... && yarn tsc && yarn run-build",
  99. "build-only": "yarn rimraf dist && yarn run-build",
  100. "format": "prettier --write \"(src|examples)/**/*.{ts,tsx}\" \"**/*.md\"",
  101. "format:check": "prettier --list-different \"(src|examples)/**/*.{ts,tsx}\" \"docs/*/**.md\"",
  102. "lint": "eslint src examples",
  103. "test": "vitest",
  104. "type-tests": "yarn tsc -p src/tests/tsconfig.typetests.json && yarn tsc -p src/query/tests/tsconfig.typetests.json",
  105. "prepack": "yarn build"
  106. },
  107. "files": [
  108. "dist/",
  109. "src/",
  110. "query",
  111. "react"
  112. ],
  113. "dependencies": {
  114. "immer": "^10.0.3",
  115. "redux": "^5.0.0",
  116. "redux-thunk": "^3.1.0",
  117. "reselect": "^5.0.1"
  118. },
  119. "peerDependencies": {
  120. "react": "^16.9.0 || ^17.0.0 || ^18",
  121. "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0"
  122. },
  123. "peerDependenciesMeta": {
  124. "react": {
  125. "optional": true
  126. },
  127. "react-redux": {
  128. "optional": true
  129. }
  130. },
  131. "sideEffects": false,
  132. "bugs": {
  133. "url": "https://github.com/reduxjs/redux-toolkit/issues"
  134. },
  135. "homepage": "https://redux-toolkit.js.org"
  136. }