package.json 8.1 KB

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