package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "name": "markdown-to-jsx",
  3. "description": "Convert markdown to JSX with ease for React and React-like projects. Super lightweight and highly configurable.",
  4. "homepage": "https://markdown-to-jsx.quantizor.dev",
  5. "license": "MIT",
  6. "version": "7.4.1",
  7. "engines": {
  8. "node": ">= 10"
  9. },
  10. "keywords": [
  11. "markdown",
  12. "markdown converter",
  13. "react",
  14. "preact",
  15. "jsx",
  16. "html"
  17. ],
  18. "author": "Evan Jacobs <yo@quantizor.com>",
  19. "repository": "quantizor/markdown-to-jsx",
  20. "bugs": "https://github.com/quantizor/markdown-to-jsx/issues",
  21. "files": [
  22. "dist",
  23. "LICENSE",
  24. "README.md"
  25. ],
  26. "type": "module",
  27. "exports": {
  28. ".": {
  29. "import": {
  30. "types": "./dist/index.d.ts",
  31. "node": "./dist/index.module.js",
  32. "default": "./dist/index.modern.js"
  33. },
  34. "require": {
  35. "types": "./dist/index.cjs.d.ts",
  36. "default": "./dist/index.cjs"
  37. }
  38. }
  39. },
  40. "sideEffects": false,
  41. "main": "dist/index.cjs",
  42. "module": "dist/index.module.js",
  43. "source": "index.tsx",
  44. "unpkg": "./dist/index.umd.js",
  45. "types": "dist/index.d.ts",
  46. "devDependencies": {
  47. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
  48. "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
  49. "@babel/plugin-proposal-optional-chaining": "^7.21.0",
  50. "@babel/plugin-transform-typescript": "^7.23.6",
  51. "@matejmazur/react-katex": "^3.1.3",
  52. "@size-limit/preset-small-lib": "^11.0.1",
  53. "@types/jest": "^29.5.11",
  54. "@types/node": "^20.10.6",
  55. "@types/react": "^17.0.74",
  56. "benchtable": "^0.1.0",
  57. "cli-progress": "^3.12.0",
  58. "in-publish": "^2.0.1",
  59. "jest": "^29.7.0",
  60. "jest-environment-jsdom": "^29.7.0",
  61. "jest-serializer-html": "^7.1.0",
  62. "markdown-it": "^14.0.0",
  63. "microbundle": "^0.15.1",
  64. "microtime": "^3.1.1",
  65. "mkdirp": "^3.0.1",
  66. "preact": "^10.19.3",
  67. "prettier": "^3.1.1",
  68. "react": "^17.0.2",
  69. "react-dom": "^17.0.2",
  70. "rimraf": "^5.0.5",
  71. "simple-markdown": "^0.7.3",
  72. "size-limit": "^11.0.1",
  73. "styled-components": "^6.1.6",
  74. "theredoc": "^1.0.0",
  75. "ts-jest": "^29.1.1",
  76. "typescript": "^5.3.3"
  77. },
  78. "peerDependencies": {
  79. "react": ">= 0.14.0"
  80. },
  81. "scripts": {
  82. "prepublish": "in-publish && npm run build && npm run release || not-in-publish",
  83. "prebuild": "rimraf dist && mkdirp dist",
  84. "build": "microbundle --tsconfig tsconfig.json -f cjs,umd index.cjs.tsx --name MarkdownToJSX --define process.env.NODE_ENV=production --globals react=React && microbundle --tsconfig tsconfig.json -f es,modern --name MarkdownToJSX --define process.env.NODE_ENV=production",
  85. "release": "microbundle site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=production --jsx React.createElement --external react,react-dom,styled-components,katex --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
  86. "dev": "microbundle watch site.tsx -o docs -f iife --tsconfig tsconfig.site.json --define process.env.NODE_ENV=development --jsx React.createElement --external react,react-dom,styled-components --globals react=React,react-dom=ReactDOM,styled-components=styled --no-pkg-main",
  87. "test": "jest --verbose",
  88. "size": "size-limit",
  89. "benchmark": "node benchmark.js"
  90. },
  91. "size-limit": [
  92. {
  93. "path": "./dist/index.module.js",
  94. "limit": "6.1 kB"
  95. },
  96. {
  97. "path": "./dist/index.modern.js",
  98. "limit": "6.1 kB"
  99. }
  100. ],
  101. "jest": {
  102. "testEnvironment": "jsdom",
  103. "transform": {
  104. "^.+\\.[tj]sx?$": [
  105. "ts-jest",
  106. {
  107. "diagnostics": {
  108. "ignoreCodes": [
  109. "TS151001"
  110. ]
  111. }
  112. }
  113. ]
  114. },
  115. "snapshotSerializers": [
  116. "jest-serializer-html"
  117. ]
  118. },
  119. "packageManager": "yarn@4.0.2"
  120. }