package.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "redux-thunk",
  3. "version": "2.4.1",
  4. "license": "MIT",
  5. "description": "Thunk middleware for Redux.",
  6. "repository": "github:reduxjs/redux-thunk",
  7. "bugs": "https://github.com/reduxjs/redux-thunk/issues",
  8. "homepage": "https://github.com/reduxjs/redux-thunk",
  9. "keywords": [
  10. "redux",
  11. "thunk",
  12. "middleware",
  13. "redux-middleware",
  14. "flux"
  15. ],
  16. "author": "Dan Abramov <dan.abramov@me.com>",
  17. "main": "lib/index.js",
  18. "module": "es/index.js",
  19. "types": "es/index.d.ts",
  20. "sideEffects": false,
  21. "files": [
  22. "lib",
  23. "es",
  24. "src",
  25. "dist",
  26. "extend-redux.d.ts"
  27. ],
  28. "scripts": {
  29. "clean": "rimraf lib dist es",
  30. "prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build",
  31. "format": "prettier --write {src,test,typescript_test}/**/*.{js,ts}",
  32. "format:check": "prettier --check {src,test,typescript_test}/**/*.{js,ts}",
  33. "lint": "eslint {src,test,typescript_test}/**/*.{js,ts}",
  34. "test": "jest",
  35. "test:cov": "jest --coverage",
  36. "test:typescript": "npm run test:typescript:main && npm run test:typescript:extended",
  37. "test:typescript:main": "tsc --noEmit -p typescript_test/tsconfig.json",
  38. "test:typescript:extended": "tsc --noEmit -p typescript_test/typescript_extended/tsconfig.json",
  39. "build:commonjs": "cross-env BABEL_ENV=commonjs babel src/*.ts --ignore src/types.ts --extensions .ts --out-dir lib ",
  40. "build:es": "babel src/*.ts --ignore src/types.ts --extensions .ts --out-dir es",
  41. "build:umd": "cross-env NODE_ENV=development rollup -c -o dist/redux-thunk.js",
  42. "build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/redux-thunk.min.js",
  43. "build:types": "tsc",
  44. "build": "rimraf dist lib es && npm run build:types && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
  45. "api-types": "api-extractor run --local"
  46. },
  47. "peerDependencies": {
  48. "redux": "^4"
  49. },
  50. "devDependencies": {
  51. "@babel/cli": "^7.15.7",
  52. "@babel/core": "^7.15.8",
  53. "@babel/preset-env": "^7.15.8",
  54. "@babel/preset-typescript": "^7.15.0",
  55. "@babel/register": "^7.15.3",
  56. "@microsoft/api-extractor": "^7.18.16",
  57. "@rollup/plugin-babel": "^5.3.0",
  58. "@rollup/plugin-commonjs": "^21.0.1",
  59. "@rollup/plugin-node-resolve": "^13.0.6",
  60. "@rollup/plugin-replace": "^3.0.0",
  61. "@types/jest": "^27.0.2",
  62. "@typescript-eslint/eslint-plugin": "^5.1.0",
  63. "@typescript-eslint/parser": "^5.1.0",
  64. "cross-env": "^7.0.3",
  65. "eslint": "^7.32.0",
  66. "eslint-config-prettier": "^8.3.0",
  67. "jest": "^27.3.1",
  68. "prettier": "^2.4.1",
  69. "redux": "^4",
  70. "rimraf": "^3.0.2",
  71. "rollup": "^2.58.1",
  72. "rollup-plugin-terser": "^7.0.2",
  73. "ts-jest": "27.0.7",
  74. "typescript": "^4.4"
  75. }
  76. }