package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "browserslist": {
  3. "production": [
  4. ">0.2%",
  5. "not dead",
  6. "not ie <= 11",
  7. "not op_mini all",
  8. "not safari < 12",
  9. "not kaios <= 2.5",
  10. "not edge < 79",
  11. "not chrome < 70",
  12. "not and_uc < 13",
  13. "not samsung < 10"
  14. ],
  15. "development": [
  16. "last 1 chrome version",
  17. "last 1 firefox version",
  18. "last 1 safari version"
  19. ]
  20. },
  21. "dependencies": {
  22. "@sentry/browser": "6.2.5",
  23. "@sentry/integrations": "6.2.5",
  24. "@testing-library/jest-dom": "5.16.2",
  25. "@testing-library/react": "12.1.2",
  26. "@tldraw/vec": "1.4.3",
  27. "@types/jest": "27.4.0",
  28. "@types/pica": "5.1.3",
  29. "@types/react": "17.0.39",
  30. "@types/react-dom": "17.0.11",
  31. "@types/socket.io-client": "1.4.36",
  32. "aws-sdk": "2.1373.0",
  33. "browser-fs-access": "0.23.0",
  34. "canvas": "2.9.0",
  35. "clsx": "1.1.1",
  36. "fake-indexeddb": "3.1.7",
  37. "firebase": "8.3.3",
  38. "i18next-browser-languagedetector": "6.1.2",
  39. "idb-keyval": "6.0.3",
  40. "image-blob-reduce": "3.0.1",
  41. "lodash.throttle": "4.1.1",
  42. "nanoid": "3.1.32",
  43. "open-color": "1.9.1",
  44. "pako": "1.0.11",
  45. "perfect-freehand": "1.0.16",
  46. "png-chunk-text": "1.0.0",
  47. "png-chunks-encode": "1.0.0",
  48. "png-chunks-extract": "1.0.0",
  49. "points-on-curve": "0.2.0",
  50. "pwacompat": "2.0.17",
  51. "react": "17.0.2",
  52. "react-dom": "17.0.2",
  53. "react-scripts": "4.0.3",
  54. "roughjs": "4.5.2",
  55. "sass": "1.49.7",
  56. "socket.io-client": "2.3.1",
  57. "typescript": "4.5.5"
  58. },
  59. "devDependencies": {
  60. "@excalidraw/eslint-config": "1.0.0",
  61. "@excalidraw/prettier-config": "1.0.2",
  62. "@types/chai": "4.3.0",
  63. "@types/lodash.throttle": "4.1.6",
  64. "@types/pako": "1.0.3",
  65. "@types/resize-observer-browser": "0.1.6",
  66. "chai": "4.3.6",
  67. "dotenv": "10.0.0",
  68. "eslint-config-prettier": "8.3.0",
  69. "eslint-plugin-prettier": "3.3.1",
  70. "firebase-tools": "9.23.0",
  71. "husky": "7.0.4",
  72. "jest-canvas-mock": "2.3.1",
  73. "lint-staged": "12.3.3",
  74. "pepjs": "0.5.3",
  75. "prettier": "2.5.1",
  76. "rewire": "5.0.0"
  77. },
  78. "resolutions": {
  79. "@typescript-eslint/typescript-estree": "5.10.2"
  80. },
  81. "engines": {
  82. "node": ">=14.0.0"
  83. },
  84. "homepage": ".",
  85. "jest": {
  86. "transformIgnorePatterns": [
  87. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
  88. ],
  89. "resetMocks": false
  90. },
  91. "name": "excalidraw",
  92. "prettier": "@excalidraw/prettier-config",
  93. "private": true,
  94. "scripts": {
  95. "build-node": "node ./scripts/build-node.js",
  96. "build:app:docker": "REACT_APP_DISABLE_SENTRY=true react-scripts build",
  97. "build:app": "REACT_APP_GIT_SHA=$VERCEL_GIT_COMMIT_SHA react-scripts build",
  98. "build:version": "node ./scripts/build-version.js",
  99. "build": "yarn build:app && yarn build:version",
  100. "eject": "react-scripts eject",
  101. "fix:code": "yarn test:code --fix",
  102. "fix:other": "yarn prettier --write",
  103. "fix": "yarn fix:other && yarn fix:code",
  104. "locales-coverage": "node scripts/build-locales-coverage.js",
  105. "locales-coverage:description": "node scripts/locales-coverage-description.js",
  106. "prepare": "husky install",
  107. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  108. "start": "react-scripts start",
  109. "test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watchAll=false",
  110. "test:app": "react-scripts test --passWithNoTests",
  111. "test:code": "eslint --ext .js,.ts,.tsx .",
  112. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  113. "test:other": "yarn prettier --list-different",
  114. "test:typecheck": "tsc",
  115. "test:update": "yarn test:app --updateSnapshot --watchAll=false",
  116. "test": "yarn test:app",
  117. "autorelease": "node scripts/autorelease.js"
  118. }
  119. }