package.json 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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/rails__ujs": "^6.0.4",
  165. "@types/react": "^18.2.7",
  166. "@types/react-dom": "^18.2.4",
  167. "@types/react-helmet": "^6.1.6",
  168. "@types/react-immutable-proptypes": "^2.1.0",
  169. "@types/react-motion": "^0.0.39",
  170. "@types/react-overlays": "^3.1.0",
  171. "@types/react-router": "^5.1.20",
  172. "@types/react-router-dom": "^5.3.3",
  173. "@types/react-select": "^5.0.1",
  174. "@types/react-sparklines": "^1.7.2",
  175. "@types/react-swipeable-views": "^0.13.1",
  176. "@types/react-test-renderer": "^18.0.0",
  177. "@types/react-textarea-autosize": "^8.0.0",
  178. "@types/react-toggle": "^4.0.3",
  179. "@types/redux-immutable": "^4.0.3",
  180. "@types/requestidlecallback": "^0.3.5",
  181. "@types/webpack": "^4.41.33",
  182. "@types/yargs": "^17.0.24",
  183. "@typescript-eslint/eslint-plugin": "^6.0.0",
  184. "@typescript-eslint/parser": "^6.0.0",
  185. "babel-jest": "^29.5.0",
  186. "eslint": "^8.41.0",
  187. "eslint-config-prettier": "^9.0.0",
  188. "eslint-define-config": "^2.0.0",
  189. "eslint-import-resolver-typescript": "^3.5.5",
  190. "eslint-plugin-formatjs": "^4.10.1",
  191. "eslint-plugin-import": "~2.29.0",
  192. "eslint-plugin-jsdoc": "^46.1.0",
  193. "eslint-plugin-jsx-a11y": "~6.8.0",
  194. "eslint-plugin-prettier": "^5.0.0",
  195. "eslint-plugin-promise": "~6.1.1",
  196. "eslint-plugin-react": "^7.33.2",
  197. "eslint-plugin-react-hooks": "^4.6.0",
  198. "husky": "^8.0.3",
  199. "jest": "^29.5.0",
  200. "jest-environment-jsdom": "^29.5.0",
  201. "lint-staged": "^15.0.0",
  202. "prettier": "^3.0.0",
  203. "react-test-renderer": "^18.2.0",
  204. "stylelint": "^16.0.2",
  205. "stylelint-config-standard-scss": "^12.0.0",
  206. "typescript": "^5.0.4",
  207. "webpack-dev-server": "^3.11.3",
  208. "yargs": "^17.7.2"
  209. },
  210. "resolutions": {
  211. "kind-of": "^6.0.3",
  212. "webpack/terser-webpack-plugin": "^4.2.3"
  213. },
  214. "peerDependenciesMeta": {
  215. "react": {
  216. "optional": true
  217. },
  218. "react-dom": {
  219. "optional": true
  220. },
  221. "react-router-dom": {
  222. "optional": true
  223. }
  224. },
  225. "lint-staged": {
  226. "*": "prettier --ignore-unknown --write",
  227. "Capfile|Gemfile|*.{rb,ruby,ru,rake}": "bundle exec rubocop --force-exclusion -a",
  228. "*.{js,jsx,ts,tsx}": "eslint --fix",
  229. "*.{css,scss}": "stylelint --fix"
  230. }
  231. }