package.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {
  2. "name": "katex",
  3. "version": "0.16.44",
  4. "description": "Fast math typesetting for the web.",
  5. "main": "dist/katex.js",
  6. "types": "types/katex.d.ts",
  7. "exports": {
  8. ".": {
  9. "require": {
  10. "types": "./types/katex.d.ts",
  11. "default": "./dist/katex.js"
  12. },
  13. "import": {
  14. "types": "./types/katex.d.ts",
  15. "default": "./dist/katex.mjs"
  16. }
  17. },
  18. "./contrib/auto-render": {
  19. "require": "./dist/contrib/auto-render.js",
  20. "import": "./dist/contrib/auto-render.mjs"
  21. },
  22. "./contrib/mhchem": {
  23. "require": "./dist/contrib/mhchem.js",
  24. "import": "./dist/contrib/mhchem.mjs"
  25. },
  26. "./contrib/copy-tex": {
  27. "require": "./dist/contrib/copy-tex.js",
  28. "import": "./dist/contrib/copy-tex.mjs"
  29. },
  30. "./contrib/mathtex-script-type": {
  31. "require": "./dist/contrib/mathtex-script-type.js",
  32. "import": "./dist/contrib/mathtex-script-type.mjs"
  33. },
  34. "./contrib/render-a11y-string": {
  35. "require": "./dist/contrib/render-a11y-string.js",
  36. "import": "./dist/contrib/render-a11y-string.mjs"
  37. },
  38. "./*": "./*"
  39. },
  40. "homepage": "https://katex.org",
  41. "repository": {
  42. "type": "git",
  43. "url": "https://github.com/KaTeX/KaTeX.git"
  44. },
  45. "funding": [
  46. "https://opencollective.com/katex",
  47. "https://github.com/sponsors/katex"
  48. ],
  49. "files": [
  50. "katex.ts",
  51. "cli.js",
  52. "src/",
  53. "contrib/",
  54. "dist/",
  55. "types/"
  56. ],
  57. "license": "MIT",
  58. "packageManager": "yarn@4.1.1",
  59. "devDependencies": {
  60. "@babel/core": "^7.29.0",
  61. "@babel/eslint-parser": "^7.28.6",
  62. "@babel/plugin-proposal-class-properties": "^7.18.6",
  63. "@babel/plugin-transform-react-jsx": "^7.28.6",
  64. "@babel/plugin-transform-runtime": "^7.29.0",
  65. "@babel/preset-env": "^7.29.0",
  66. "@babel/preset-react": "^7.28.5",
  67. "@babel/preset-typescript": "^7.28.5",
  68. "@babel/register": "^7.28.6",
  69. "@babel/runtime": "^7.28.6",
  70. "@rollup/plugin-babel": "^5.3.1",
  71. "@rollup/plugin-commonjs": "^28.0.9",
  72. "@rollup/plugin-typescript": "^12.3.0",
  73. "@semantic-release/changelog": "^6.0.1",
  74. "@semantic-release/git": "^10.0.1",
  75. "@typescript-eslint/eslint-plugin": "^8.56.0",
  76. "@typescript-eslint/parser": "^8.56.0",
  77. "babel-jest": "^30.2.0",
  78. "babel-loader": "^8.2.5",
  79. "babel-plugin-istanbul": "^6.1.1",
  80. "babel-plugin-preval": "^5.1.0",
  81. "babel-plugin-version-inline": "^1.0.0",
  82. "benchmark": "^2.1.4",
  83. "browserslist": "^4.21.3",
  84. "browserstack-local": "^1.5.1",
  85. "caniuse-lite": "^1.0.30001384",
  86. "css-loader": "^6.7.1",
  87. "cssnano": "^5.1.13",
  88. "eslint": "^8.23.0",
  89. "eslint-import-resolver-webpack": "^0.13.10",
  90. "eslint-plugin-actions": "^2.0.0",
  91. "eslint-plugin-import": "^2.26.0",
  92. "eslint-plugin-react": "^7.31.1",
  93. "fs-extra": "^10.1.0",
  94. "got": "^11.8.5",
  95. "husky": "^4.3.8",
  96. "istanbul-lib-coverage": "^3.2.0",
  97. "istanbul-lib-report": "^3.0.0",
  98. "istanbul-reports": "^3.1.5",
  99. "jest": "^30.2.0",
  100. "jest-diff": "^30.2.0",
  101. "jest-environment-jsdom": "^30.2.0",
  102. "jest-matcher-utils": "^30.2.0",
  103. "jest-message-util": "^30.2.0",
  104. "jest-serializer-html": "^7.1.0",
  105. "js-yaml": "^4.1.0",
  106. "json-stable-stringify": "^1.0.1",
  107. "jspngopt": "^0.2.0",
  108. "mini-css-extract-plugin": "^2.6.1",
  109. "mkdirp": "^1.0.4",
  110. "p-retry": "^4.6.2",
  111. "pako": "^2.0.4",
  112. "postcss": "^8.4.16",
  113. "postcss-loader": "^7.0.1",
  114. "postcss-preset-env": "^7.8.0",
  115. "postcss-scss": "^4.0.9",
  116. "prettier": "^2.7.1",
  117. "rimraf": "^3.0.2",
  118. "rollup": "^2.79.2",
  119. "sass": "^1.94.2",
  120. "sass-loader": "^16.0.6",
  121. "selenium-webdriver": "^4.4.0",
  122. "semantic-release": "^19.0.5",
  123. "sri-toolbox": "^0.2.0",
  124. "style-loader": "^3.3.1",
  125. "stylelint": "^14.11.0",
  126. "stylelint-config-standard": "^28.0.0",
  127. "stylelint-scss": "^6.3.2",
  128. "terser-webpack-plugin": "^5.3.6",
  129. "tslib": "^2.8.1",
  130. "typescript": "^5.9.3",
  131. "webpack": "^5.74.0",
  132. "webpack-bundle-analyzer": "^4.6.1",
  133. "webpack-cli": "^4.10.0",
  134. "webpack-dev-server": "^4.10.1",
  135. "webpack-remove-empty-scripts": "^1.0.4"
  136. },
  137. "bin": "cli.js",
  138. "scripts": {
  139. "test": "yarn test:lint && yarn test:ts && yarn test:jest",
  140. "test:lint": "yarn test:lint:js && yarn test:lint:css",
  141. "test:lint:js": "eslint .",
  142. "test:lint:css": "stylelint src/styles/katex.scss static/main.css website/static/**/*.css",
  143. "test:jest": "jest",
  144. "test:jest:watch": "jest --watch",
  145. "test:jest:update": "jest --updateSnapshot",
  146. "test:jest:coverage": "jest --coverage",
  147. "test:screenshots": "yarn test:screenshots:update --verify",
  148. "test:screenshots:update": "dockers/screenshotter/screenshotter.sh",
  149. "test:perf": "NODE_ENV=test node -e \"require('@babel/register')({extensions:['.js','.ts']}); require('./test/perf-test.ts')\"",
  150. "test:ts": "tsc --noEmit",
  151. "test:build": "node test/verify-build.js",
  152. "clean": "rm -rf dist/ node_modules/",
  153. "clean-install": "yarn clean && yarn",
  154. "start": "webpack serve --config webpack.dev.js",
  155. "analyze": "webpack --config webpack.analyze.js",
  156. "build": "rimraf dist/ && mkdirp dist && cp README.md dist && rollup -c --failAfterWarnings && webpack && node update-sri.js package dist/README.md",
  157. "build:fonts": "dockers/fonts/buildFonts.sh",
  158. "build:metrics": "dockers/fonts/buildMetrics.sh",
  159. "watch": "yarn build --watch",
  160. "postversion": "yarn dist && node update-sri.js package README.md contrib/*/README.md docs/*.md website/pages/index.html",
  161. "semantic-release": "semantic-release",
  162. "dist": "yarn build && yarn dist:zip",
  163. "dist:zip": "rimraf katex/ katex.tar.gz katex.zip && cp -R dist katex && tar czf katex.tar.gz katex && zip -rq katex.zip katex && rimraf katex/"
  164. },
  165. "dependencies": {
  166. "commander": "^8.3.0"
  167. },
  168. "husky": {
  169. "hooks": {
  170. "pre-commit": "yarn test:lint"
  171. }
  172. },
  173. "jest": {
  174. "collectCoverageFrom": [
  175. "src/**/*.{js,ts}",
  176. "contrib/**/*.{js,ts}",
  177. "!src/unicodeSymbols.{js,ts}",
  178. "!contrib/mhchem/**"
  179. ],
  180. "setupFilesAfterEnv": [
  181. "<rootDir>/test/setup.ts"
  182. ],
  183. "snapshotSerializers": [
  184. "jest-serializer-html"
  185. ],
  186. "testMatch": [
  187. "**/test/*-spec.ts"
  188. ],
  189. "testEnvironmentOptions": {
  190. "url": "http://localhost/"
  191. },
  192. "transform": {
  193. "^.+\\.(js|ts)$": "babel-jest"
  194. },
  195. "moduleNameMapper": {
  196. "^katex$": "<rootDir>/katex.ts"
  197. }
  198. }
  199. }