package.json 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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:package": "yarn --cwd ./packages/excalidraw build:esm",
  56. "build:version": "yarn --cwd ./excalidraw-app build:version",
  57. "build": "yarn --cwd ./excalidraw-app build",
  58. "build:preview": "yarn --cwd ./excalidraw-app build:preview",
  59. "start": "yarn --cwd ./excalidraw-app start",
  60. "start:production": "yarn --cwd ./excalidraw-app start:production",
  61. "start:example": "yarn build:package && yarn --cwd ./examples/with-script-in-browser start",
  62. "test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watch=false",
  63. "test:app": "vitest",
  64. "test:code": "eslint --max-warnings=0 --ext .js,.ts,.tsx .",
  65. "test:other": "yarn prettier --list-different",
  66. "test:typecheck": "tsc",
  67. "test:update": "yarn test:app --update --watch=false",
  68. "test": "yarn test:app",
  69. "test:coverage": "vitest --coverage",
  70. "test:coverage:watch": "vitest --coverage --watch",
  71. "test:ui": "yarn test --ui --coverage.enabled=true",
  72. "fix:code": "yarn test:code --fix",
  73. "fix:other": "yarn prettier --write",
  74. "fix": "yarn fix:other && yarn fix:code",
  75. "locales-coverage": "node scripts/build-locales-coverage.js",
  76. "locales-coverage:description": "node scripts/locales-coverage-description.js",
  77. "prepare": "husky install",
  78. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  79. "autorelease": "node scripts/autorelease.js",
  80. "prerelease:excalidraw": "node scripts/prerelease.js",
  81. "release:excalidraw": "node scripts/release.js",
  82. "rm:build": "rimraf --glob excalidraw-app/build excalidraw-app/dist excalidraw-app/dev-dist packages/*/dist packages/*/build examples/*/build examples/*/dist",
  83. "rm:node_modules": "rimraf --glob node_modules excalidraw-app/node_modules packages/*/node_modules",
  84. "clean-install": "yarn rm:node_modules && yarn install"
  85. },
  86. "resolutions": {
  87. "strip-ansi": "6.0.1"
  88. }
  89. }