package.json 3.5 KB

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