package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "immer",
  3. "version": "9.0.21",
  4. "description": "Create your next immutable state by mutating the current one",
  5. "main": "dist/index.js",
  6. "module": "dist/immer.esm.js",
  7. "exports": {
  8. ".": {
  9. "types": "./dist/immer.d.ts",
  10. "import": "./dist/immer.esm.mjs",
  11. "require": "./dist/index.js"
  12. },
  13. "./*": "./*"
  14. },
  15. "umd:main": "dist/immer.umd.production.min.js",
  16. "unpkg": "dist/immer.umd.production.min.js",
  17. "jsdelivr": "dist/immer.umd.production.min.js",
  18. "jsnext:main": "dist/immer.esm.js",
  19. "react-native": "dist/immer.esm.js",
  20. "source": "src/immer.ts",
  21. "types": "./dist/immer.d.ts",
  22. "typesVersions": {
  23. ">=3.7": {
  24. "*": [
  25. "./*"
  26. ]
  27. },
  28. ">=3.1": {
  29. "*": [
  30. "compat/pre-3.7/*"
  31. ]
  32. }
  33. },
  34. "sideEffects": false,
  35. "scripts": {
  36. "test": "jest && yarn test:build && yarn test:flow",
  37. "test:perf": "cd __performance_tests__ && babel-node add-data.js && babel-node todo.js && babel-node incremental.js",
  38. "test:flow": "yarn flow check __tests__/flow",
  39. "test:build": "yarn build && NODE_ENV='production' yarn jest --config jest.config.build.js",
  40. "watch": "jest --watch",
  41. "coverage": "jest --coverage",
  42. "coveralls": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage",
  43. "build": "rimraf dist/ && tsdx build --name immer --format esm,cjs,umd && cp dist/immer.esm.js dist/immer.esm.mjs && yarn build:flow",
  44. "build:flow": "cpx 'src/types/index.js.flow' dist -v",
  45. "publish-docs": "cd website && GIT_USER=mweststrate USE_SSH=true yarn docusaurus deploy",
  46. "start": "cd website && yarn start",
  47. "test:size": "yarn build && yarn import-size --report . produce enableES5 enableMapSet enablePatches enableAllPlugins",
  48. "test:sizequick": "tsdx build --name immer --format esm && yarn import-size . produce"
  49. },
  50. "husky": {
  51. "hooks": {
  52. "pre-commit": "pretty-quick --staged"
  53. }
  54. },
  55. "repository": {
  56. "type": "git",
  57. "url": "https://github.com/immerjs/immer.git"
  58. },
  59. "keywords": [
  60. "immutable",
  61. "mutable",
  62. "copy-on-write"
  63. ],
  64. "author": "Michel Weststrate",
  65. "license": "MIT",
  66. "funding": {
  67. "type": "opencollective",
  68. "url": "https://opencollective.com/immer"
  69. },
  70. "bugs": {
  71. "url": "https://github.com/immerjs/immer/issues"
  72. },
  73. "homepage": "https://github.com/immerjs/immer#readme",
  74. "files": [
  75. "dist",
  76. "compat",
  77. "src"
  78. ],
  79. "devDependencies": {
  80. "@babel/core": "^7.8.4",
  81. "@babel/node": "^7.8.4",
  82. "@types/jest": "^25.1.2",
  83. "coveralls": "^3.0.0",
  84. "cpx2": "^3.0.0",
  85. "deep-freeze": "^0.0.1",
  86. "flow-bin": "^0.123.0",
  87. "husky": "^1.2.0",
  88. "immutable": "^3.8.2",
  89. "import-size": "^1.0.2",
  90. "jest": "^25.1.0",
  91. "lodash": "^4.17.4",
  92. "lodash.clonedeep": "^4.5.0",
  93. "prettier": "1.19.1",
  94. "pretty-quick": "^1.8.0",
  95. "redux": "^4.0.5",
  96. "rimraf": "^2.6.2",
  97. "seamless-immutable": "^7.1.3",
  98. "semantic-release": "^17.0.2",
  99. "spec.ts": "^1.1.0",
  100. "ts-jest": "^25.2.0",
  101. "tsdx": "^0.12.3",
  102. "typescript": "^4.2.3"
  103. }
  104. }