package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "react-element-to-jsx-string",
  3. "version": "15.0.0",
  4. "description": "Turn a ReactElement into the corresponding JSX string.",
  5. "main": "dist/cjs/index.js",
  6. "module": "dist/esm/index.js",
  7. "browser": "dist/cjs/index.js",
  8. "types": "index.d.ts",
  9. "scripts": {
  10. "build": "rollup -c",
  11. "build:flow": "flow-copy-source -v --ignore=*.spec.js src/ dist/cjs",
  12. "prebuild": "rm -rf dist/",
  13. "postbuild": "npm run build:flow",
  14. "prepare": "npm run build",
  15. "lint": "eslint .",
  16. "lint:fix": "npm run lint -- --fix",
  17. "flow": "flow",
  18. "precommit": "lint-staged",
  19. "prepublishOnly": "npm run build",
  20. "prettier:fix": "prettier --write \"**/*.{js,json}\"",
  21. "test": "jest",
  22. "test:watch": "jest --watch",
  23. "release": "./release.sh",
  24. "smoke": "node tests/smoke/run"
  25. },
  26. "lint-staged": {
  27. "*.js": [
  28. "prettier --write \"**/*.{js,json}\"",
  29. "git add"
  30. ]
  31. },
  32. "author": {
  33. "name": "Algolia, Inc.",
  34. "url": "https://github.com/algolia"
  35. },
  36. "license": "MIT",
  37. "repository": "algolia/react-element-to-jsx-string",
  38. "devDependencies": {
  39. "@babel/cli": "7.17.6",
  40. "@babel/core": "7.17.9",
  41. "@babel/preset-env": "7.16.11",
  42. "@babel/preset-flow": "7.16.7",
  43. "@babel/preset-react": "7.16.7",
  44. "@commitlint/cli": "8.3.6",
  45. "@commitlint/config-angular": "8.3.6",
  46. "@testing-library/jest-dom": "^5.16.4",
  47. "@testing-library/react": "^13.2.0",
  48. "babel-eslint": "10.1.0",
  49. "babel-jest": "24.9.0",
  50. "babel-register": "6.26.0",
  51. "conventional-changelog-cli": "2.2.2",
  52. "doctoc": "1.4.0",
  53. "eslint": "6.8.0",
  54. "eslint-config-algolia": "14.0.1",
  55. "eslint-config-prettier": "6.15.0",
  56. "eslint-plugin-import": "2.26.0",
  57. "eslint-plugin-jest": "22.21.0",
  58. "eslint-plugin-prettier": "3.4.1",
  59. "eslint-plugin-react": "7.29.4",
  60. "esm": "3.2.25",
  61. "expect": "27.5.1",
  62. "flow-bin": "0.119.1",
  63. "flow-copy-source": "2.0.9",
  64. "husky": "3.1.0",
  65. "jest": "27.5.1",
  66. "json": "10.0.0",
  67. "lint-staged": "10.5.4",
  68. "mversion": "2.0.1",
  69. "prettier": "1.19.1",
  70. "react": "^18.1.0",
  71. "react-dom": "^18.1.0",
  72. "react-test-renderer": "^18.1.0",
  73. "rollup": "2.70.1",
  74. "rollup-plugin-babel": "4.4.0",
  75. "rollup-plugin-node-builtins": "2.1.2",
  76. "rollup-plugin-node-globals": "1.4.0",
  77. "rollup-plugin-node-resolve": "5.2.0",
  78. "rollup-plugin-sourcemaps": "0.6.3"
  79. },
  80. "peerDependencies": {
  81. "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0",
  82. "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0"
  83. },
  84. "dependencies": {
  85. "@base2/pretty-print-object": "1.0.1",
  86. "is-plain-object": "5.0.0",
  87. "react-is": "18.1.0"
  88. },
  89. "jest": {
  90. "setupFilesAfterEnv": [
  91. "<rootDir>tests/setupTests.js"
  92. ]
  93. }
  94. }