1
0

package.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. {
  2. "name": "@mastodon/mastodon",
  3. "license": "AGPL-3.0-or-later",
  4. "packageManager": "yarn@4.5.1",
  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. "postinstall": "test -d node_modules/husky && husky || echo \"husky is not installed\"",
  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. "@dnd-kit/core": "^6.1.0",
  46. "@dnd-kit/sortable": "^8.0.0",
  47. "@dnd-kit/utilities": "^3.2.2",
  48. "@formatjs/intl-pluralrules": "^5.2.2",
  49. "@gamestdio/websocket": "^0.3.2",
  50. "@github/webauthn-json": "^2.1.1",
  51. "@rails/ujs": "7.1.402",
  52. "@reduxjs/toolkit": "^2.0.1",
  53. "@svgr/webpack": "^5.5.0",
  54. "arrow-key-navigation": "^1.2.0",
  55. "async-mutex": "^0.5.0",
  56. "axios": "^1.4.0",
  57. "babel-loader": "^8.3.0",
  58. "babel-plugin-formatjs": "^10.5.1",
  59. "babel-plugin-lodash": "patch:babel-plugin-lodash@npm%3A3.3.4#~/.yarn/patches/babel-plugin-lodash-npm-3.3.4-c7161075b6.patch",
  60. "babel-plugin-preval": "^5.1.0",
  61. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  62. "blurhash": "^2.0.5",
  63. "circular-dependency-plugin": "^5.2.2",
  64. "classnames": "^2.3.2",
  65. "cocoon-js-vanilla": "^1.3.0",
  66. "color-blend": "^4.0.0",
  67. "compression-webpack-plugin": "^6.1.2",
  68. "core-js": "^3.30.2",
  69. "cross-env": "^7.0.3",
  70. "css-loader": "^5.2.7",
  71. "cssnano": "^7.0.0",
  72. "detect-passive-events": "^2.0.3",
  73. "emoji-mart": "npm:emoji-mart-lazyload@latest",
  74. "escape-html": "^1.0.3",
  75. "file-loader": "^6.2.0",
  76. "fuzzysort": "^3.0.0",
  77. "glob": "^10.2.6",
  78. "history": "^4.10.1",
  79. "hoist-non-react-statics": "^3.3.2",
  80. "http-link-header": "^1.1.1",
  81. "immutable": "^4.3.0",
  82. "imports-loader": "^1.2.0",
  83. "intl-messageformat": "^10.3.5",
  84. "js-yaml": "^4.1.0",
  85. "lodash": "^4.17.21",
  86. "mark-loader": "^0.1.6",
  87. "marky": "^1.2.5",
  88. "mini-css-extract-plugin": "^1.6.2",
  89. "path-complete-extname": "^1.0.0",
  90. "postcss": "^8.4.24",
  91. "postcss-loader": "^4.3.0",
  92. "postcss-preset-env": "^10.0.0",
  93. "prop-types": "^15.8.1",
  94. "punycode": "^2.3.0",
  95. "react": "^18.2.0",
  96. "react-dom": "^18.2.0",
  97. "react-helmet": "^6.1.0",
  98. "react-hotkeys": "^1.1.4",
  99. "react-immutable-proptypes": "^2.2.0",
  100. "react-immutable-pure-component": "^2.2.2",
  101. "react-intl": "^6.4.2",
  102. "react-motion": "^0.5.2",
  103. "react-notification": "^6.8.5",
  104. "react-overlays": "^5.2.1",
  105. "react-redux": "^9.0.4",
  106. "react-redux-loading-bar": "^5.0.8",
  107. "react-router": "^5.3.4",
  108. "react-router-dom": "^5.3.4",
  109. "react-router-scroll-4": "^1.0.0-beta.1",
  110. "react-select": "^5.7.3",
  111. "react-sparklines": "^1.7.0",
  112. "react-swipeable-views": "^0.14.0",
  113. "react-textarea-autosize": "^8.4.1",
  114. "react-toggle": "^4.1.3",
  115. "redux-immutable": "^4.0.0",
  116. "regenerator-runtime": "^0.14.0",
  117. "requestidlecallback": "^0.3.0",
  118. "sass": "^1.62.1",
  119. "sass-loader": "^10.2.0",
  120. "stacktrace-js": "^2.0.2",
  121. "stringz": "^2.1.0",
  122. "substring-trie": "^1.0.2",
  123. "terser-webpack-plugin": "^4.2.3",
  124. "tesseract.js": "^2.1.5",
  125. "tiny-queue": "^0.2.1",
  126. "twitter-text": "3.1.0",
  127. "use-debounce": "^10.0.0",
  128. "webpack": "^4.47.0",
  129. "webpack-assets-manifest": "^4.0.6",
  130. "webpack-bundle-analyzer": "^4.8.0",
  131. "webpack-cli": "^3.3.12",
  132. "webpack-merge": "^6.0.0",
  133. "wicg-inert": "^3.1.2",
  134. "workbox-expiration": "^7.0.0",
  135. "workbox-precaching": "^7.0.0",
  136. "workbox-routing": "^7.0.0",
  137. "workbox-strategies": "^7.0.0",
  138. "workbox-webpack-plugin": "^7.0.0",
  139. "workbox-window": "^7.0.0"
  140. },
  141. "devDependencies": {
  142. "@formatjs/cli": "^6.1.1",
  143. "@testing-library/dom": "^10.2.0",
  144. "@testing-library/jest-dom": "^6.0.0",
  145. "@testing-library/react": "^16.0.0",
  146. "@types/babel__core": "^7.20.1",
  147. "@types/emoji-mart": "^3.0.9",
  148. "@types/escape-html": "^1.0.2",
  149. "@types/hoist-non-react-statics": "^3.3.1",
  150. "@types/http-link-header": "^1.0.3",
  151. "@types/intl": "^1.2.0",
  152. "@types/jest": "^29.5.2",
  153. "@types/js-yaml": "^4.0.5",
  154. "@types/lodash": "^4.14.195",
  155. "@types/object-assign": "^4.0.30",
  156. "@types/prop-types": "^15.7.5",
  157. "@types/punycode": "^2.1.0",
  158. "@types/rails__ujs": "^6.0.4",
  159. "@types/react": "^18.2.7",
  160. "@types/react-dom": "^18.2.4",
  161. "@types/react-helmet": "^6.1.6",
  162. "@types/react-immutable-proptypes": "^2.1.0",
  163. "@types/react-motion": "^0.0.40",
  164. "@types/react-router": "^5.1.20",
  165. "@types/react-router-dom": "^5.3.3",
  166. "@types/react-sparklines": "^1.7.2",
  167. "@types/react-swipeable-views": "^0.13.1",
  168. "@types/react-test-renderer": "^18.0.0",
  169. "@types/react-toggle": "^4.0.3",
  170. "@types/redux-immutable": "^4.0.3",
  171. "@types/requestidlecallback": "^0.3.5",
  172. "@types/webpack": "^4.41.33",
  173. "@types/webpack-env": "^1.18.4",
  174. "@typescript-eslint/eslint-plugin": "^8.0.0",
  175. "@typescript-eslint/parser": "^8.0.0",
  176. "babel-jest": "^29.5.0",
  177. "eslint": "^8.41.0",
  178. "eslint-define-config": "^2.0.0",
  179. "eslint-import-resolver-typescript": "^3.5.5",
  180. "eslint-plugin-formatjs": "^5.0.0",
  181. "eslint-plugin-import": "~2.30.0",
  182. "eslint-plugin-jsdoc": "^50.0.0",
  183. "eslint-plugin-jsx-a11y": "~6.10.0",
  184. "eslint-plugin-promise": "~7.1.0",
  185. "eslint-plugin-react": "^7.33.2",
  186. "eslint-plugin-react-hooks": "^5.0.0",
  187. "husky": "^9.0.11",
  188. "jest": "^29.5.0",
  189. "jest-environment-jsdom": "^29.5.0",
  190. "lint-staged": "^15.0.0",
  191. "prettier": "^3.3.3",
  192. "react-test-renderer": "^18.2.0",
  193. "stylelint": "^16.0.2",
  194. "stylelint-config-prettier-scss": "^1.0.0",
  195. "stylelint-config-standard-scss": "^13.0.0",
  196. "typescript": "^5.0.4",
  197. "webpack-dev-server": "^3.11.3"
  198. },
  199. "resolutions": {
  200. "kind-of": "^6.0.3",
  201. "webpack/terser-webpack-plugin": "^4.2.3"
  202. },
  203. "peerDependenciesMeta": {
  204. "react": {
  205. "optional": true
  206. },
  207. "react-dom": {
  208. "optional": true
  209. },
  210. "react-router-dom": {
  211. "optional": true
  212. }
  213. }
  214. }