You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "@tldraw/monorepo",
  3. "private": true,
  4. "version": "1.0.0",
  5. "description": "A tiny little drawing app.",
  6. "author": "@steveruizok",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/tldraw/tldraw.git"
  10. },
  11. "license": "MIT",
  12. "workspaces": [
  13. "packages/curve",
  14. "packages/vec",
  15. "packages/intersect",
  16. "packages/core",
  17. "packages/tldraw",
  18. "apps/www",
  19. "apps/electron",
  20. "apps/vscode/editor",
  21. "apps/vscode/extension",
  22. "examples/tldraw-example",
  23. "examples/core-example",
  24. "examples/core-example-advanced"
  25. ],
  26. "scripts": {
  27. "build": "lerna run build --stream",
  28. "build:www": "yarn build:packages && cd apps/www && yarn build",
  29. "build:core": "lerna run build:core",
  30. "build:packages": "lerna run build:packages --stream",
  31. "build:apps": "lerna run build:apps",
  32. "start": "yarn build:packages && lerna run start --stream --parallel",
  33. "start:all": "yarn build:packages && lerna run start:all --stream --parallel",
  34. "start:core": "lerna run start:core --stream --parallel",
  35. "start:www": "yarn build:packages && lerna run start --parallel & cd apps/www && yarn dev",
  36. "start:electron": "lerna run start:electron --stream --parallel",
  37. "start:vscode": "code apps/vscode/extension & lerna run start:vscode --parallel; ",
  38. "publish:patch": "yarn build:packages && yarn test && lerna publish",
  39. "fix:style": "yarn run prettier ./packages/core/src --write && yarn run prettier ./packages/tldraw/src --write",
  40. "lerna": "lerna",
  41. "test": "lerna run test --stream",
  42. "test:ci": "lerna run test:ci --stream",
  43. "test:watch": "lerna run test:watch --stream",
  44. "docs": "lerna run typedoc",
  45. "docs:watch": "lerna run typedoc --watch",
  46. "postinstall": "husky install",
  47. "pretty-quick": "pretty-quick"
  48. },
  49. "devDependencies": {
  50. "@swc-node/jest": "^1.3.3",
  51. "@testing-library/jest-dom": "^5.14.1",
  52. "@testing-library/react": "^12.0.0",
  53. "@types/jest": "^27.0.2",
  54. "@types/node": "^15.0.1",
  55. "@types/react": "^17.0.33",
  56. "@types/react-dom": "^17.0.10",
  57. "@types/vscode": "^1.59.0",
  58. "@typescript-eslint/eslint-plugin": "^4.19.0",
  59. "@typescript-eslint/parser": "^4.19.0",
  60. "eslint": "^7.32.0",
  61. "fake-indexeddb": "^3.1.3",
  62. "husky": "^7.0.4",
  63. "init-package-json": "^2.0.4",
  64. "jest": "^27.3.1",
  65. "lerna": "^3.22.1",
  66. "lint-staged": "^11.2.6",
  67. "prettier": "^2.4.1",
  68. "resize-observer-polyfill": "^1.5.1",
  69. "tslib": "^2.3.0",
  70. "typedoc": "^0.22.3",
  71. "typescript": "^4.5.2",
  72. "pretty-quick": "^3.1.2"
  73. },
  74. "husky": {
  75. "hooks": {
  76. "pre-commit": "pretty-quick --staged",
  77. "pre-push": "fix:style && eslint && test"
  78. }
  79. }
  80. }