package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "version": "2.0.0-alpha.1",
  3. "name": "@tldraw/react",
  4. "description": "A React library for creating spatial UIs.",
  5. "author": "@steveruizok",
  6. "repository": {
  7. "type": "git",
  8. "url": "git+https://github.com/tldraw/tldraw.git"
  9. },
  10. "license": "MIT",
  11. "keywords": [
  12. "react",
  13. "canvas",
  14. "zoom",
  15. "drawing",
  16. "whiteboard"
  17. ],
  18. "files": [
  19. "dist/**/*"
  20. ],
  21. "main": "./dist/cjs/index.js",
  22. "module": "./dist/esm/index.js",
  23. "types": "./dist/types/index.d.ts",
  24. "scripts": {
  25. "start:next": "yarn start",
  26. "start:packages": "yarn start",
  27. "start": "node scripts/dev & yarn types:dev",
  28. "build:next": "yarn build",
  29. "build:packages": "yarn build",
  30. "build": "node scripts/build && yarn types:build",
  31. "types:dev": "tsc -w --p tsconfig.build.json",
  32. "types:build": "tsc -p tsconfig.build.json && tsconfig-replace-paths -p tsconfig.build.json",
  33. "lint": "eslint src/ --ext .ts,.tsx",
  34. "clean": "rm -rf dist",
  35. "test": "jest",
  36. "test:ci": "jest --ci --runInBand --updateSnapshot",
  37. "test:watch": "jest --watchAll"
  38. },
  39. "dependencies": {
  40. "@tldraw/core": "2.0.0-alpha.1",
  41. "@tldraw/intersect": "2.0.0-alpha.1",
  42. "@tldraw/vec": "2.0.0-alpha.1",
  43. "@use-gesture/react": "^10.2.15",
  44. "hotkeys-js": "^3.9.4",
  45. "is-plain-object": "^5.0.0",
  46. "mobx": "^6.6.0",
  47. "mobx-react-lite": "^3.4.0",
  48. "mousetrap": "^1.6.5",
  49. "nanoid": "^3.1.30",
  50. "rbush": "^3.0.1"
  51. },
  52. "peerDependencies": {
  53. "react": ">=16.8",
  54. "react-dom": "^16.8 || ^17.0"
  55. },
  56. "devDependencies": {
  57. "@swc-node/jest": "^1.3.3",
  58. "@testing-library/jest-dom": "^5.14.1",
  59. "@testing-library/react": "^12.0.0",
  60. "@types/is-plain-object": "^2.0.4",
  61. "@types/jest": "^27.0.2",
  62. "@types/mousetrap": "^1.6.8",
  63. "@types/node": "^16.11.6",
  64. "@types/offscreencanvas": "^2019.6.4",
  65. "@types/rbush": "^3.0.0",
  66. "@types/react": "^17.0.0",
  67. "@types/react-dom": "^17.0.0",
  68. "tsconfig-replace-paths": "^0.0.11"
  69. },
  70. "jest": {
  71. "setupFilesAfterEnv": [
  72. "<rootDir>/../../setupTests.ts"
  73. ],
  74. "transform": {
  75. "^.+\\.(tsx|jsx|ts|js|mjs)?$": [
  76. "@swc-node/jest",
  77. {
  78. "dynamicImport": true,
  79. "experimentalDecorators": true,
  80. "emitDecoratorMetadata": true
  81. }
  82. ]
  83. },
  84. "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
  85. "moduleFileExtensions": [
  86. "ts",
  87. "tsx",
  88. "js",
  89. "jsx",
  90. "json",
  91. "node"
  92. ],
  93. "testEnvironment": "jsdom",
  94. "modulePathIgnorePatterns": [
  95. "<rootDir>/dist/",
  96. "<rootDir>/src/test/"
  97. ],
  98. "moduleNameMapper": {
  99. "@tldraw/react": "<rootDir>/src",
  100. "@tldraw/core": "<rootDir>/../core",
  101. "\\~(.*)": "<rootDir>/src/$1"
  102. }
  103. },
  104. "gitHead": "3ab5db27b9e83736fdae934474e80e90c854922c"
  105. }