package.json 3.4 KB

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