2
0

package.json 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "private": true,
  3. "name": "excalidraw-monorepo",
  4. "packageManager": "[email protected]",
  5. "workspaces": [
  6. "excalidraw-app",
  7. "packages/*",
  8. "examples/*"
  9. ],
  10. "devDependencies": {
  11. "@babel/preset-env": "7.26.9",
  12. "@excalidraw/eslint-config": "1.0.3",
  13. "@excalidraw/prettier-config": "1.0.2",
  14. "@types/chai": "4.3.0",
  15. "@types/jest": "27.4.0",
  16. "@types/lodash.throttle": "4.1.7",
  17. "@types/react": "19.0.10",
  18. "@types/react-dom": "19.0.4",
  19. "@types/socket.io-client": "3.0.0",
  20. "@vitejs/plugin-react": "3.1.0",
  21. "@vitest/coverage-v8": "3.0.7",
  22. "@vitest/ui": "2.0.5",
  23. "chai": "4.3.6",
  24. "dotenv": "16.0.1",
  25. "eslint-config-prettier": "8.5.0",
  26. "eslint-config-react-app": "7.0.1",
  27. "eslint-plugin-import": "2.31.0",
  28. "eslint-plugin-prettier": "3.3.1",
  29. "http-server": "14.1.1",
  30. "husky": "7.0.4",
  31. "jsdom": "22.1.0",
  32. "lint-staged": "12.3.7",
  33. "pepjs": "0.5.3",
  34. "prettier": "2.6.2",
  35. "rewire": "6.0.0",
  36. "rimraf": "^5.0.0",
  37. "typescript": "4.9.4",
  38. "vite": "5.0.12",
  39. "vite-plugin-checker": "0.7.2",
  40. "vite-plugin-ejs": "1.7.0",
  41. "vite-plugin-pwa": "0.21.1",
  42. "vite-plugin-svgr": "4.2.0",
  43. "vitest": "3.0.6",
  44. "vitest-canvas-mock": "0.3.3"
  45. },
  46. "engines": {
  47. "node": "18.0.0 - 22.x.x"
  48. },
  49. "homepage": ".",
  50. "prettier": "@excalidraw/prettier-config",
  51. "scripts": {
  52. "build-node": "node ./scripts/build-node.js",
  53. "build:app:docker": "yarn --cwd ./excalidraw-app build:app:docker",
  54. "build:app": "yarn --cwd ./excalidraw-app build:app",
  55. "build:common": "yarn --cwd ./packages/common build:esm",
  56. "build:element": "yarn --cwd ./packages/element build:esm",
  57. "build:excalidraw": "yarn --cwd ./packages/excalidraw build:esm",
  58. "build:math": "yarn --cwd ./packages/math build:esm",
  59. "build:packages": "yarn build:common && yarn build:math && yarn build:element && yarn build:excalidraw",
  60. "build:version": "yarn --cwd ./excalidraw-app build:version",
  61. "build": "yarn --cwd ./excalidraw-app build",
  62. "build:preview": "yarn --cwd ./excalidraw-app build:preview",
  63. "start": "yarn --cwd ./excalidraw-app start",
  64. "start:production": "yarn --cwd ./excalidraw-app start:production",
  65. "start:example": "yarn build:packages && yarn --cwd ./examples/with-script-in-browser start",
  66. "test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watch=false",
  67. "test:app": "vitest",
  68. "test:code": "eslint --max-warnings=0 --ext .js,.ts,.tsx .",
  69. "test:other": "yarn prettier --list-different",
  70. "test:typecheck": "tsc",
  71. "test:update": "yarn test:app --update --watch=false",
  72. "test": "yarn test:app",
  73. "test:coverage": "vitest --coverage",
  74. "test:coverage:watch": "vitest --coverage --watch",
  75. "test:ui": "yarn test --ui --coverage.enabled=true",
  76. "fix:code": "yarn test:code --fix",
  77. "fix:other": "yarn prettier --write",
  78. "fix": "yarn fix:other && yarn fix:code",
  79. "locales-coverage": "node scripts/build-locales-coverage.js",
  80. "locales-coverage:description": "node scripts/locales-coverage-description.js",
  81. "prepare": "husky install",
  82. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  83. "release": "node scripts/release.js",
  84. "release:test": "node scripts/release.js --tag=test",
  85. "release:next": "node scripts/release.js --tag=next",
  86. "release:latest": "node scripts/release.js --tag=latest",
  87. "rm:build": "rimraf --glob excalidraw-app/build excalidraw-app/dist excalidraw-app/dev-dist packages/*/dist packages/*/build examples/*/build examples/*/dist",
  88. "rm:node_modules": "rimraf --glob node_modules excalidraw-app/node_modules packages/*/node_modules",
  89. "clean-install": "yarn rm:node_modules && yarn install"
  90. },
  91. "resolutions": {
  92. "strip-ansi": "6.0.1"
  93. }
  94. }