package.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. {
  2. "name": "@mastodon/mastodon",
  3. "license": "AGPL-3.0-or-later",
  4. "packageManager": "yarn@4.2.2",
  5. "engines": {
  6. "node": ">=18"
  7. },
  8. "workspaces": [
  9. ".",
  10. "streaming"
  11. ],
  12. "scripts": {
  13. "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
  14. "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
  15. "fix:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives --fix",
  16. "fix:css": "stylelint --fix \"**/*.{css,scss}\"",
  17. "fix": "yarn fix:js && yarn fix:css",
  18. "format": "prettier --write --log-level warn .",
  19. "format:check": "prettier --check --ignore-unknown .",
  20. "i18n:extract": "formatjs extract 'app/javascript/**/*.{js,jsx,ts,tsx}' --ignore '**/*.d.ts' --out-file app/javascript/mastodon/locales/en.json --format config/formatjs-formatter.js",
  21. "jest": "cross-env NODE_ENV=test jest",
  22. "lint:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives",
  23. "lint:css": "stylelint \"**/*.{css,scss}\"",
  24. "lint": "yarn lint:js && yarn lint:css",
  25. "postversion": "git push --tags",
  26. "prepare": "husky",
  27. "start": "node ./streaming/index.js",
  28. "test": "yarn lint && yarn run typecheck && yarn jest",
  29. "typecheck": "tsc --noEmit"
  30. },
  31. "repository": {
  32. "type": "git",
  33. "url": "https://github.com/mastodon/mastodon.git"
  34. },
  35. "private": true,
  36. "dependencies": {
  37. "@babel/core": "^7.22.1",
  38. "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3",
  39. "@babel/plugin-transform-react-inline-elements": "^7.21.0",
  40. "@babel/plugin-transform-runtime": "^7.22.4",
  41. "@babel/preset-env": "^7.22.4",
  42. "@babel/preset-react": "^7.22.3",
  43. "@babel/preset-typescript": "^7.21.5",
  44. "@babel/runtime": "^7.22.3",
  45. "@formatjs/intl-pluralrules": "^5.2.2",
  46. "@gamestdio/websocket": "^0.3.2",
  47. "@github/webauthn-json": "^2.1.1",
  48. "@rails/ujs": "7.1.3",
  49. "@reduxjs/toolkit": "^2.0.1",
  50. "@svgr/webpack": "^5.5.0",
  51. "arrow-key-navigation": "^1.2.0",
  52. "async-mutex": "^0.5.0",
  53. "autoprefixer": "^10.4.14",
  54. "axios": "^1.4.0",
  55. "babel-loader": "^8.3.0",
  56. "babel-plugin-formatjs": "^10.5.1",
  57. "babel-plugin-lodash": "patch:babel-plugin-lodash@npm%3A3.3.4#~/.yarn/patches/babel-plugin-lodash-npm-3.3.4-c7161075b6.patch",
  58. "babel-plugin-preval": "^5.1.0",
  59. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  60. "blurhash": "^2.0.5",
  61. "circular-dependency-plugin": "^5.2.2",
  62. "classnames": "^2.3.2",
  63. "cocoon-js-vanilla": "^1.3.0",
  64. "color-blend": "^4.0.0",
  65. "compression-webpack-plugin": "^6.1.2",
  66. "core-js": "^3.30.2",
  67. "cross-env": "^7.0.3",
  68. "css-loader": "^5.2.7",
  69. "cssnano": "^7.0.0",
  70. "detect-passive-events": "^2.0.3",
  71. "emoji-mart": "npm:emoji-mart-lazyload@latest",
  72. "escape-html": "^1.0.3",
  73. "file-loader": "^6.2.0",
  74. "font-awesome": "^4.7.0",
  75. "fuzzysort": "^2.0.4",
  76. "glob": "^10.2.6",
  77. "history": "^4.10.1",
  78. "hoist-non-react-statics": "^3.3.2",
  79. "http-link-header": "^1.1.1",
  80. "immutable": "^4.3.0",
  81. "imports-loader": "^1.2.0",
  82. "intl-messageformat": "^10.3.5",
  83. "js-yaml": "^4.1.0",
  84. "lodash": "^4.17.21",
  85. "mark-loader": "^0.1.6",
  86. "marky": "^1.2.5",
  87. "mini-css-extract-plugin": "^1.6.2",
  88. "path-complete-extname": "^1.0.0",
  89. "postcss": "^8.4.24",
  90. "postcss-loader": "^4.3.0",
  91. "postcss-preset-env": "^9.5.2",
  92. "prop-types": "^15.8.1",
  93. "punycode": "^2.3.0",
  94. "react": "^18.2.0",
  95. "react-dom": "^18.2.0",
  96. "react-helmet": "^6.1.0",
  97. "react-hotkeys": "^1.1.4",
  98. "react-immutable-proptypes": "^2.2.0",
  99. "react-immutable-pure-component": "^2.2.2",
  100. "react-intl": "^6.4.2",
  101. "react-motion": "^0.5.2",
  102. "react-notification": "^6.8.5",
  103. "react-overlays": "^5.2.1",
  104. "react-redux": "^9.0.4",
  105. "react-redux-loading-bar": "^5.0.8",
  106. "react-router": "^5.3.4",
  107. "react-router-dom": "^5.3.4",
  108. "react-router-scroll-4": "^1.0.0-beta.1",
  109. "react-select": "^5.7.3",
  110. "react-sparklines": "^1.7.0",
  111. "react-swipeable-views": "^0.14.0",
  112. "react-textarea-autosize": "^8.4.1",
  113. "react-toggle": "^4.1.3",
  114. "redux-immutable": "^4.0.0",
  115. "regenerator-runtime": "^0.14.0",
  116. "requestidlecallback": "^0.3.0",
  117. "sass": "^1.62.1",
  118. "sass-loader": "^10.2.0",
  119. "stacktrace-js": "^2.0.2",
  120. "stringz": "^2.1.0",
  121. "substring-trie": "^1.0.2",
  122. "terser-webpack-plugin": "^4.2.3",
  123. "tesseract.js": "^2.1.5",
  124. "tiny-queue": "^0.2.1",
  125. "twitter-text": "3.1.0",
  126. "webpack": "^4.47.0",
  127. "webpack-assets-manifest": "^4.0.6",
  128. "webpack-bundle-analyzer": "^4.8.0",
  129. "webpack-cli": "^3.3.12",
  130. "webpack-merge": "^5.9.0",
  131. "wicg-inert": "^3.1.2",
  132. "workbox-expiration": "^7.0.0",
  133. "workbox-precaching": "^7.0.0",
  134. "workbox-routing": "^7.0.0",
  135. "workbox-strategies": "^7.0.0",
  136. "workbox-webpack-plugin": "^7.0.0",
  137. "workbox-window": "^7.0.0"
  138. },
  139. "devDependencies": {
  140. "@formatjs/cli": "^6.1.1",
  141. "@testing-library/jest-dom": "^6.0.0",
  142. "@testing-library/react": "^15.0.0",
  143. "@types/babel__core": "^7.20.1",
  144. "@types/emoji-mart": "^3.0.9",
  145. "@types/escape-html": "^1.0.2",
  146. "@types/hoist-non-react-statics": "^3.3.1",
  147. "@types/http-link-header": "^1.0.3",
  148. "@types/intl": "^1.2.0",
  149. "@types/jest": "^29.5.2",
  150. "@types/js-yaml": "^4.0.5",
  151. "@types/lodash": "^4.14.195",
  152. "@types/object-assign": "^4.0.30",
  153. "@types/prop-types": "^15.7.5",
  154. "@types/punycode": "^2.1.0",
  155. "@types/rails__ujs": "^6.0.4",
  156. "@types/react": "^18.2.7",
  157. "@types/react-dom": "^18.2.4",
  158. "@types/react-helmet": "^6.1.6",
  159. "@types/react-immutable-proptypes": "^2.1.0",
  160. "@types/react-motion": "^0.0.40",
  161. "@types/react-router": "^5.1.20",
  162. "@types/react-router-dom": "^5.3.3",
  163. "@types/react-sparklines": "^1.7.2",
  164. "@types/react-swipeable-views": "^0.13.1",
  165. "@types/react-test-renderer": "^18.0.0",
  166. "@types/react-toggle": "^4.0.3",
  167. "@types/redux-immutable": "^4.0.3",
  168. "@types/requestidlecallback": "^0.3.5",
  169. "@types/webpack": "^4.41.33",
  170. "@types/webpack-env": "^1.18.4",
  171. "@typescript-eslint/eslint-plugin": "^7.0.0",
  172. "@typescript-eslint/parser": "^7.0.0",
  173. "babel-jest": "^29.5.0",
  174. "eslint": "^8.41.0",
  175. "eslint-define-config": "^2.0.0",
  176. "eslint-import-resolver-typescript": "^3.5.5",
  177. "eslint-plugin-formatjs": "^4.10.1",
  178. "eslint-plugin-import": "~2.29.0",
  179. "eslint-plugin-jsdoc": "^48.0.0",
  180. "eslint-plugin-jsx-a11y": "~6.8.0",
  181. "eslint-plugin-promise": "~6.1.1",
  182. "eslint-plugin-react": "^7.33.2",
  183. "eslint-plugin-react-hooks": "^4.6.0",
  184. "husky": "^9.0.11",
  185. "jest": "^29.5.0",
  186. "jest-environment-jsdom": "^29.5.0",
  187. "lint-staged": "^15.0.0",
  188. "prettier": "^3.0.0",
  189. "react-test-renderer": "^18.2.0",
  190. "stylelint": "^16.0.2",
  191. "stylelint-config-standard-scss": "^13.0.0",
  192. "typescript": "^5.0.4",
  193. "webpack-dev-server": "^3.11.3"
  194. },
  195. "resolutions": {
  196. "kind-of": "^6.0.3",
  197. "webpack/terser-webpack-plugin": "^4.2.3"
  198. },
  199. "peerDependenciesMeta": {
  200. "react": {
  201. "optional": true
  202. },
  203. "react-dom": {
  204. "optional": true
  205. },
  206. "react-router-dom": {
  207. "optional": true
  208. }
  209. }
  210. }