選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

package.json 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "version": "0.1.21",
  3. "name": "@tldraw/core",
  4. "description": "The tldraw core renderer and utilities.",
  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:core": "yarn start",
  26. "start:packages": "yarn start",
  27. "start": "node scripts/dev & yarn types:dev",
  28. "build:core": "yarn build",
  29. "build:packages": "yarn build",
  30. "build": "node scripts/build && yarn types:build && node scripts/copy-readme",
  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/intersect": "latest",
  41. "@tldraw/vec": "latest",
  42. "@use-gesture/react": "^10.1.3"
  43. },
  44. "peerDependencies": {
  45. "react": ">=16.8",
  46. "react-dom": "^16.8 || ^17.0"
  47. },
  48. "devDependencies": {
  49. "@swc-node/jest": "^1.3.3",
  50. "@testing-library/jest-dom": "^5.14.1",
  51. "@testing-library/react": "^12.0.0",
  52. "tsconfig-replace-paths": "^0.0.5",
  53. "@types/jest": "^27.0.2",
  54. "@types/node": "^16.11.6",
  55. "@types/react": "^17.0.33",
  56. "@types/react-dom": "^17.0.10"
  57. },
  58. "jest": {
  59. "setupFilesAfterEnv": [
  60. "<rootDir>/../../setupTests.ts"
  61. ],
  62. "transform": {
  63. "^.+\\.(tsx|jsx|ts|js|mjs)?$": "@swc-node/jest"
  64. },
  65. "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
  66. "moduleFileExtensions": [
  67. "ts",
  68. "tsx",
  69. "js",
  70. "jsx",
  71. "json",
  72. "node"
  73. ],
  74. "testEnvironment": "jsdom",
  75. "modulePathIgnorePatterns": [
  76. "<rootDir>/dist/",
  77. "<rootDir>/src/test/"
  78. ],
  79. "moduleNameMapper": {
  80. "@tldraw/core": "<rootDir>/src",
  81. "\\~(.*)": "<rootDir>/src/$1"
  82. }
  83. }
  84. }